0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-14 02:24:00 +01:00
Bootstrap/docs/assets/less/algolia.less

142 lines
3.3 KiB
Plaintext
Raw Normal View History

// stylelint-disable declaration-no-important
2017-11-26 03:06:34 +01:00
2017-07-04 22:24:51 +02:00
// Docsearch overrides
//
// `!important` indicates overridden properties.
.algolia-autocomplete {
display: block !important;
// Menu container
.ds-dropdown-menu {
width: 100%;
min-width: 0 !important;
max-width: none !important;
2017-07-05 02:16:29 +02:00
padding: 10px 0 !important;
2017-07-04 22:24:51 +02:00
background-color: #fff;
background-clip: padding-box;
2017-11-26 03:06:34 +01:00
border: 1px solid #ddd;
border: 1px solid rgba(0, 0, 0, .1);
box-shadow: 0 8px 15px rgba(0, 0, 0, .175);
2017-07-04 22:24:51 +02:00
2018-09-22 14:22:49 +02:00
@media (min-width: @screen-sm-min) {
2017-07-04 22:24:51 +02:00
width: 175%;
}
// Caret
&:before {
2017-07-04 22:24:51 +02:00
display: none !important;
}
[class^="ds-dataset-"] {
2017-07-04 22:24:51 +02:00
padding: 0 !important;
overflow: visible !important;
background-color: transparent !important;
border: 0 !important;
}
.ds-suggestions {
margin-top: 0 !important;
}
}
.algolia-docsearch-suggestion {
padding: 0 !important;
overflow: visible !important;
}
.algolia-docsearch-suggestion--category-header {
2017-07-05 02:16:29 +02:00
padding: 2px 15px !important;
2017-07-04 22:24:51 +02:00
margin-top: 0 !important;
2017-07-05 02:16:29 +02:00
font-size: 13px !important;
2017-07-04 22:24:51 +02:00
font-weight: 500 !important;
color: #7952b3 !important;
border-bottom: 0 !important;
}
.algolia-docsearch-suggestion--wrapper {
float: none !important;
padding-top: 0 !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 {
2017-07-04 22:24:51 +02:00
display: none !important;
}
}
.ds-suggestion {
&:not(:first-child) {
.algolia-docsearch-suggestion--category-header {
2017-07-05 02:16:29 +02:00
padding-top: 10px !important;
margin-top: 10px !important;
2017-11-26 03:06:34 +01:00
border-top: 1px solid #eee;
2017-07-04 22:24:51 +02:00
}
}
.algolia-docsearch-suggestion--subcategory-column {
display: none !important;
}
}
.algolia-docsearch-suggestion--title {
display: block;
2017-07-05 02:16:29 +02:00
padding: 4px 15px !important;
2017-07-04 22:24:51 +02:00
margin-bottom: 0 !important;
2017-07-05 02:16:29 +02:00
font-size: 13px !important;
2017-07-04 22:24:51 +02:00
font-weight: 400 !important;
}
.algolia-docsearch-suggestion--text {
2017-07-05 02:16:29 +02:00
padding: 0 15px 8px !important;
margin-top: -4px;
font-size: 13px !important;
2017-11-26 03:06:34 +01:00
font-weight: 400;
2017-07-04 22:24:51 +02:00
line-height: 1.25 !important;
}
.algolia-docsearch-footer {
float: none !important;
width: auto !important;
height: auto !important;
2017-07-05 02:16:29 +02:00
padding: 10px 15px 0;
font-size: 10px !important;
2017-07-04 22:24:51 +02:00
line-height: 1 !important;
color: #767676 !important;
2017-11-26 03:06:34 +01:00
border-top: 1px solid #eee;
2017-07-04 22:24:51 +02:00
}
.algolia-docsearch-footer--logo {
display: inline !important;
overflow: visible !important;
color: inherit !important;
text-indent: 0 !important;
background: none !important;
}
.algolia-docsearch-suggestion--highlight {
color: #5f2dab;
2017-11-26 03:06:34 +01:00
background-color: #eee;
2017-07-04 22:24:51 +02:00
}
.algolia-docsearch-suggestion--text .algolia-docsearch-suggestion--highlight {
2017-11-26 03:06:34 +01:00
box-shadow: inset 0 -2px 0 0 rgba(95, 45, 171, .5) !important;
2017-07-04 22:24:51 +02:00
}
.ds-suggestion.ds-cursor .algolia-docsearch-suggestion--content {
2017-11-26 03:06:34 +01:00
background-color: #e5e5e5 !important;
2017-07-04 22:24:51 +02:00
}
}