X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/067cb9c5b7b020da6dda398773cd7236fa3b51f2..refs/pull/2487/head:/resources/sass/_header.scss diff --git a/resources/sass/_header.scss b/resources/sass/_header.scss index 1c4bf948f..246ef4b5b 100644 --- a/resources/sass/_header.scss +++ b/resources/sass/_header.scss @@ -24,7 +24,7 @@ header { padding: $-xxs 0; @include lightDark(border-bottom-color, #DDD, #000); @include whenDark { - filter: saturate(0.6) brightness(0.8); + filter: saturate(0.8) brightness(0.8); } .links { display: inline-block; @@ -98,6 +98,7 @@ header .search-box { button { z-index: 1; left: 16px; + @include lightDark(color, rgba(255, 255, 255, 0.8), #AAA); @include rtl { left: auto; right: 16px; @@ -166,8 +167,8 @@ header .search-box { @include smaller-than($l) { header .header-links { + @include lightDark(background-color, #fff, #333); display: none; - background-color: #FFF; z-index: 10; right: $-m; border-radius: 4px; @@ -179,19 +180,18 @@ header .search-box { display: block; } } - header .links a, header .dropdown-container ul li a { + header .links a, header .dropdown-container ul li a, header .dropdown-container ul li button { text-align: start; display: block; padding: $-s $-m; color: $text-dark; - fill: $text-dark; + @include lightDark(color, $text-dark, #eee); svg { margin-inline-end: $-s; } &:hover { - background-color: #EEE; - color: #444; - fill: #444; + @include lightDark(background-color, #eee, #333); + @include lightDark(color, #000, #fff); text-decoration: none; } } @@ -264,14 +264,14 @@ header .search-box { display: none; } > span:first-child { - margin-block-end: 0; + margin-inline-end: 0; } } } -.breadcrumb-listing { +.dropdown-search { position: relative; - .breadcrumb-listing-toggle { + .dropdown-search-toggle { padding: 6px; border: 1px solid transparent; border-radius: 4px; @@ -280,55 +280,7 @@ header .search-box { } } .svg-icon { - margin-block-end: 0; - } -} - -.breadcrumb-listing-dropdown { - box-shadow: $bs-med; - overflow: hidden; - min-height: 100px; - width: 240px; - display: none; - position: absolute; - z-index: 80; - right: -$-m; - @include rtl { - right: auto; - left: -$-m; - } - .breadcrumb-listing-search .svg-icon { - position: absolute; - left: $-s; - @include rtl { - right: $-s; - left: auto; - } - top: 11px; - fill: #888; - pointer-events: none; - } - .breadcrumb-listing-entity-list { - max-height: 400px; - overflow-y: scroll; - text-align: start; - } - input { - padding-inline-start: $-xl; - border-radius: 0; - border: 0; - border-bottom: 1px solid #DDD; - } -} - -@include smaller-than($m) { - .breadcrumb-listing-dropdown { - position: fixed; - right: auto; - left: $-m; - } - .breadcrumb-listing-dropdown .breadcrumb-listing-entity-list { - max-height: 240px; + margin-inline-end: 0; } }