aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Cuppens <[email protected]>2018-08-21 20:51:34 +0200
committerXhmikosR <[email protected]>2018-08-25 15:04:53 +0300
commit8073e10fb31abe58340897dcb9819831b3fe72d2 (patch)
tree94bb50e3e3ddf32d2b3d5328f34014f1d99ead0c
parentda717b03e6e72d7a61c007acb9223b9626ae5ee5 (diff)
downloadbootstrap-8073e10fb31abe58340897dcb9819831b3fe72d2.tar.xz
bootstrap-8073e10fb31abe58340897dcb9819831b3fe72d2.zip
#23389: Add breadbrumb in docs search results
-rw-r--r--site/docs/4.1/assets/scss/_algolia.scss24
1 files changed, 19 insertions, 5 deletions
diff --git a/site/docs/4.1/assets/scss/_algolia.scss b/site/docs/4.1/assets/scss/_algolia.scss
index c17f4760f..ca1bccc57 100644
--- a/site/docs/4.1/assets/scss/_algolia.scss
+++ b/site/docs/4.1/assets/scss/_algolia.scss
@@ -66,10 +66,23 @@
text-align: left !important;
}
+ .algolia-docsearch-suggestion--subcategory-inline {
+ display: block !important;
+ font-size: .875rem;
+ color: $gray-700;
+
+ &::after {
+ padding: 0 .25rem;
+ content: "/";
+ }
+ }
+
.algolia-docsearch-suggestion--content {
+ display: flex;
+ flex-wrap: wrap;
float: none !important;
width: 100% !important;
- padding: 0 !important;
+ padding: .25rem 1rem !important;
// Vertical divider between column header and content
&::before {
@@ -93,18 +106,19 @@
.algolia-docsearch-suggestion--title {
display: block;
- padding: .25rem 1rem !important;
margin-bottom: 0 !important;
font-size: .875rem !important;
font-weight: 400 !important;
}
.algolia-docsearch-suggestion--text {
- padding: 0 1rem .5rem !important;
- margin-top: -.25rem;
- font-size: .875rem !important;
+ flex: 0 0 100%;
+ max-width: 100%;
+ padding: .2rem 0;
+ font-size: .8125rem !important;
font-weight: 400;
line-height: 1.25 !important;
+ color: $gray-600;
}
.algolia-docsearch-footer {