]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
new styles for docsearch
authorMark Otto <markdotto@gmail.com>
Sun, 28 May 2017 23:16:13 +0000 (16:16 -0700)
committerMark Otto <markdotto@gmail.com>
Sun, 28 May 2017 23:16:13 +0000 (16:16 -0700)
docs/assets/scss/_sidebar.scss

index e2465e805aade3b468b39d4ce35d97b157355640..1c541b66e578eb3e9ebf30a86cf07b8cb3056323 100644 (file)
   padding-bottom: 1rem;
 }
 
+// Docsearch overrides
+//
+// `!important` indicates overridden properties.
+.algolia-autocomplete {
+  // Menu container
+  .ds-dropdown-menu {
+    width: 100%;
+    min-width: 0 !important;
+    max-width: none !important;
+    box-shadow: 0 .5rem 1rem rgba(0,0,0,.175);
+
+    // Caret
+    &::before {
+      left: 1rem !important;
+    }
+  }
+
+  // Section header
+  .algolia-docsearch-suggestion--subcategory-column {
+    float: none !important;
+    width: auto !important;
+    padding: 0 !important;
+    text-align: left !important;
+  }
+
+  .algolia-docsearch-suggestion--content {
+    float: none !important;
+    width: auto !important;
+    padding: 0 !important;
+
+    // Vertical divider between column header and content
+    &::before {
+      display: none !important;
+    }
+  }
+
+  .ds-suggestion {
+    .algolia-docsearch-suggestion--subcategory-column {
+      display: none !important;
+    }
+  }
+
+  .algolia-docsearch-footer {
+    display: none !important;
+  }
+
+  .algolia-docsearch-suggestion--highlight {
+    color: #5f2dab;
+    background-color: rgba(154, 132, 187, .12);
+  }
+
+  .algolia-docsearch-suggestion--text .algolia-docsearch-suggestion--highlight {
+    box-shadow: inset 0 -2px 0 0 rgba(95, 45, 171, .8) !important;
+  }
+
+  .ds-suggestion.ds-cursor .algolia-docsearch-suggestion--content {
+    background-color: rgba(208, 189, 236, .12) !important;
+  }
+}
+
 .bd-sidenav {
   display: none;
 }