From 66011fb74c360965b73fd2675f9098aa3ef72adb Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 28 May 2017 21:21:50 -0700 Subject: [PATCH] more algolia design tweaks --- docs/assets/scss/_sidebar.scss | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/docs/assets/scss/_sidebar.scss b/docs/assets/scss/_sidebar.scss index 234f58e7bc..4c2c6a7a13 100644 --- a/docs/assets/scss/_sidebar.scss +++ b/docs/assets/scss/_sidebar.scss @@ -92,14 +92,35 @@ width: 100%; min-width: 0 !important; max-width: none !important; + background-color: #fff; + background-clip: padding-box; + border: 1px solid rgba(0,0,0,.1); box-shadow: 0 .5rem 1rem rgba(0,0,0,.175); // Caret &::before { - left: 1rem !important; + display: none !important; + } + + [class^=ds-dataset-] { + background-color: transparent !important; + border: 0 !important; } } + .algolia-docsearch-suggestion--category-header { + padding: .125rem 0 !important; + margin-top: 0 !important; + font-size: .75rem !important; + font-weight: 500 !important; + color: #767676 !important; + border-bottom: 0 !important; + } + + .algolia-docsearch-suggestion--wrapper { + padding-top: 0 !important; + } + // Section header .algolia-docsearch-suggestion--subcategory-column { float: none !important; @@ -120,11 +141,22 @@ } .ds-suggestion { + &:not(:first-child) { + .algolia-docsearch-suggestion--category-header { + margin-top: .5rem !important; + } + } + .algolia-docsearch-suggestion--subcategory-column { display: none !important; } } + .algolia-docsearch-suggestion--title { + font-size: .875rem !important; + font-weight: 400 !important; + } + .algolia-docsearch-footer { display: none !important; } -- 2.47.2