diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2018-03-30 08:22:05 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2018-03-30 08:22:05 +0300 |
commit | 4d305607e0301c39f7908e379e0b088c7ad462ea (patch) | |
tree | f2cd0842ff4dcfe24b118a7327129fa6c943622c | |
parent | 03a8c09e098e3758f04af0eff93577b8c27de480 (diff) | |
parent | 1c69841de5e654045914e2c3b866cf0860227883 (diff) |
Merge branch 'improve-search-results-styles' into 'master'
Improve search results styles
See merge request gitlab-com/gitlab-docs!233
-rw-r--r-- | content/assets/stylesheets/instantsearch.scss | 50 | ||||
-rw-r--r-- | layouts/header_search_page.html | 4 |
2 files changed, 31 insertions, 23 deletions
diff --git a/content/assets/stylesheets/instantsearch.scss b/content/assets/stylesheets/instantsearch.scss index 3e693678..4c22009a 100644 --- a/content/assets/stylesheets/instantsearch.scss +++ b/content/assets/stylesheets/instantsearch.scss @@ -1,5 +1,5 @@ --- -version: 4 +version: 5 --- @import "variables"; @@ -8,8 +8,8 @@ version: 4 // original CSS customized and converted to SCSS with http://sebastianpontow.de/css2compass/ //colors -$color0: rgba(180, 162, 231, .2); -$color1: rgba(180, 162, 231, .4); +$color0: rgba(180, 162, 231, .1); +$color1: rgba(180, 162, 231, .2); $color2: rgba(180, 162, 231, .1); $color3: rgba(79, 171, 225, .2); $color4: #eee; @@ -19,6 +19,10 @@ $color7: #868686; $color8: #fff; $color9: #383838; $color10: rgb(117, 117, 117); +$color11: transparent; +// link-color: rgb(32, 139, 196); +$color12: rgba(32, 139, 196, .2); //link color lighter + //scss-lint:disable ImportantRule .ais-search-box { @@ -36,31 +40,31 @@ $color10: rgb(117, 117, 117); .hit-content { display: block; - border: 1px solid; - border-color: $color0; - padding: 1px 20px; - padding-top: 10px; - margin: 5px; - margin-left: 0 !important; - border-radius: 5px; + border-top: 2px solid $color0; + padding: 30px 5px; + margin: 0; font-size: 13px; font-weight: 300; width: 100%; // was 81% position: relative; color: $color10; + transition: .3s ease; + word-wrap: break-word; &:hover { - border-color: $color1; - box-shadow: 1px 1px 3px $color2; - - .lvl0, - .lvl1, - .lvl2, - .hit-text { - color: $link-color-hover; + border-top: 2px solid $color12; + box-shadow: 0 10px 6px -6px $color12; + + .hit-tag { + color: $link-color; + border-color: $color3; } } + @media all and (max-width: $mobile-width) { + padding: 25px 5px; + } + .lvl0 { color: $black; } @@ -98,8 +102,8 @@ $color10: rgb(117, 117, 117); padding: 3px; border: 1px solid $color0; border-top: 0; - border-right: 0; - border-bottom-left-radius: 5px; + border-bottom-left-radius: 2px; + border-bottom-right-radius: 2px; right: 0; top: 0; width: 70px; @@ -119,7 +123,7 @@ $color10: rgb(117, 117, 117); @media all and (max-width: $mobile-width) { .hit-tag { width: 60px; - height: 20px; + height: 23px; font-size: 10px; } @@ -162,14 +166,16 @@ $color10: rgb(117, 117, 117); .ais-infinite-hits--showmore { display: block; margin: auto; + margin-top: 10px; button { - border-radius: 5px; padding: 20px 10px; cursor: pointer; width: 100%; background-color: $color8; border-color: $color3; + border-right: 0; + border-left: 0; &:hover { background-color: $color3; diff --git a/layouts/header_search_page.html b/layouts/header_search_page.html index fdec71d3..55133a87 100644 --- a/layouts/header_search_page.html +++ b/layouts/header_search_page.html @@ -4,7 +4,9 @@ <p>GitLab Documentation</p> </a> <div class="nav-container"> - <a class="nav-toggle" id="docs-nav-toggle">Menu</a> + <a class="nav-toggle" id="docs-nav-toggle"> + <i class="fa fa-bars" aria-hidden="true"></i> + </a> <ul class="nav"> <% if ENV['NANOC_ENV'] == 'production' %> <% @config[:products].each do |name, product| %> |