X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/fff5bbcee458992443e3732fbcbbbe34f765fcc3..refs/pull/743/head:/resources/assets/sass/_header.scss diff --git a/resources/assets/sass/_header.scss b/resources/assets/sass/_header.scss index 12bd17076..a3c59495e 100644 --- a/resources/assets/sass/_header.scss +++ b/resources/assets/sass/_header.scss @@ -8,11 +8,11 @@ header { top: 0; background-color: $primary-dark; color: #fff; + fill: #fff; .padded { padding: $-m; } border-bottom: 1px solid #DDD; - //margin-bottom: $-l; .links { display: inline-block; vertical-align: top; @@ -23,39 +23,39 @@ header { } .links a { display: inline-block; - padding: $-l; + padding: $-m $-l; color: #FFF; + fill: #FFF; &:last-child { padding-right: 0; } @include smaller-than($screen-md) { - padding: $-l $-s; + padding: $-m $-s; } } .avatar, .user-name { display: inline-block; } .avatar { - //margin-top: (45px/2); width: 30px; height: 30px; } .user-name { vertical-align: top; - padding-top: $-l; + padding-top: $-m; + position: relative; + top: -3px; display: inline-block; cursor: pointer; > * { vertical-align: top; } - > span, > i { + > span { padding-left: $-xs; display: inline-block; - } - > span { padding-top: $-xxs; } - > i { + > svg { padding-top: 4px; font-size: 18px; } @@ -66,53 +66,58 @@ header { } } } - @include smaller-than($screen-md) { + @include smaller-than($screen-sm) { text-align: center; .float.right { float: none; } - } - @include smaller-than($screen-sm) { .links a { padding: $-s; } - form.search-box { - margin-top: 0; - } .user-name { padding-top: $-s; } } - .dropdown-container { - font-size: 0.9em; - } } -form.search-box { - margin-top: $-l *0.9; +.header-search { display: inline-block; - position: relative; - text-align: left; +} +header .search-box { + display: inline-block; + margin-top: 10px; input { - background-color: transparent; - border-radius: 24px; - border: 2px solid #EEE; + background-color: rgba(0, 0, 0, 0.2); + border: 1px solid rgba(255, 255, 255, 0.3); color: #EEE; - padding-left: $-m; - padding-right: $-l; - outline: 0; } button { - vertical-align: top; - margin-left: -$-l; - color: #FFF; - top: 6px; - right: 4px; - display: inline-block; - position: absolute; - &:hover { - color: #FFF; - } + color: #EEE; + fill: #EEE; + } + ::-webkit-input-placeholder { /* Chrome/Opera/Safari */ + color: #DDD; + } + ::-moz-placeholder { /* Firefox 19+ */ + color: #DDD; + } + :-ms-input-placeholder { /* IE 10+ */ + color: #DDD; + } + :-moz-placeholder { /* Firefox 18- */ + color: #DDD; + } + @include smaller-than($screen-lg) { + max-width: 250px; + } + @include smaller-than($l) { + max-width: 200px; + } +} + +@include smaller-than($s) { + .header-search { + display: block; } } @@ -128,12 +133,12 @@ form.search-box { font-size: 1.8em; color: #fff; font-weight: 400; - padding: $-l $-l $-l 0; + padding: 14px $-l 14px 0; vertical-align: top; line-height: 1; } .logo-image { - margin: $-m $-s $-m 0; + margin: $-xs $-s $-xs 0; vertical-align: top; height: 43px; } @@ -142,10 +147,10 @@ form.search-box { color: #aaa; padding: 0 $-xs; } - .faded { a, button, span, span > div { color: #666; + fill: #666; } .text-button { opacity: 0.5; @@ -155,7 +160,6 @@ form.search-box { text-decoration: none; } } - } .faded span.faded-text { @@ -165,16 +169,30 @@ form.search-box { .faded-small { color: #000; + fill: #000; font-size: 0.9em; background-color: $primary-faded; } +.toolbar-container { + background-color: #FFF; +} + .breadcrumbs .text-button, .action-buttons .text-button { display: inline-block; padding: $-s; &:last-child { padding-right: 0; } + &:first-child { + padding-left: 0; + } +} + + +.action-buttons .dropdown-container:last-child a { + padding-right: 0; + padding-left: $-s; } .action-buttons { text-align: right; @@ -190,15 +208,38 @@ form.search-box { } } +@include smaller-than($m) { + .breadcrumbs .text-button, .action-buttons .text-button { + padding: $-s $-xs; + } + .action-buttons .dropdown-container:last-child a { + padding-left: $-xs; + } + .breadcrumbs .text-button { + font-size: 0; + } + .breadcrumbs a i { + font-size: $fs-m; + padding-right: 0; + } + .breadcrumbs span.sep { + padding: 0 $-xxs; + } +} + .nav-tabs { text-align: center; a, .tab-item { padding: $-m; display: inline-block; color: #666; + fill: #666; cursor: pointer; &.selected { border-bottom: 2px solid $primary; } } +} +.faded-small .nav-tabs a { + padding: $-s $-m; } \ No newline at end of file