fleet/website/assets/styles/docsearch.less

584 lines
22 KiB
Plaintext
Raw Normal View History

.algolia-autocomplete {
width: 100% !important; //lesshint-disable-line importantRule
height: 100% !important; //lesshint-disable-line importantRule
border: none;
}&:focus-visible &:active {
border: none;
}
.searchbox {
display: inline-block;
position: relative;
width: 200px;
height: 32px !important; //lesshint-disable-line importantRule
white-space: nowrap;
box-sizing: border-box;
visibility: visible !important; //lesshint-disable-line importantRule
}
.searchbox .algolia-autocomplete {
display: block;
width: 100%;
height: 100%;
}
.searchbox__wrapper {
width: 100%;
height: 100%;
z-index: 999;
position: relative;
}
.searchbox__input {
display: inline-block;
box-sizing: border-box;
transition: box-shadow 0.4s ease, background 0.4s ease;
border: 0;
border-radius: 16px;
box-shadow: inset 0 0 0 1px #cccccc;
background: #ffffff !important; //lesshint-disable-line importantRule
padding: 0;
padding-right: 26px;
padding-left: 32px;
width: 100%;
height: 100%;
vertical-align: middle;
white-space: normal;
font-size: 12px;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
.searchbox__input::-webkit-search-decoration, .searchbox__input::-webkit-search-cancel-button, .searchbox__input::-webkit-search-results-button, .searchbox__input::-webkit-search-results-decoration {
display: none;
}
.searchbox__input:hover {
// box-shadow: inset 0 0 0 1px #b3b3b3;
}
.searchbox__input:focus, .searchbox__input:active {
outline: 0;
box-shadow: inset 0 0 0 1px #aaaaaa;
background: #ffffff;
}
.searchbox__input::-webkit-input-placeholder {
color: #aaaaaa;
}
.searchbox__input:-ms-input-placeholder {
color: #aaaaaa;
}
.searchbox__input::-ms-input-placeholder {
color: #aaaaaa;
}
.searchbox__input::placeholder {
color: #aaaaaa;
}
.searchbox__submit {
position: absolute;
top: 0;
margin: 0;
border: 0;
border-radius: 16px 0 0 16px;
background-color: rgba(69, 142, 225, 0);
padding: 0;
width: 32px;
height: 100%;
vertical-align: middle;
text-align: center;
font-size: inherit;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
right: inherit;
left: 0;
}
.searchbox__submit::before {
display: inline-block;
margin-right: -4px;
height: 100%;
vertical-align: middle;
content: '';
}
.searchbox__submit:hover, .searchbox__submit:active {
cursor: pointer;
}
.searchbox__submit:focus {
outline: 0;
}
.searchbox__submit svg {
width: 14px;
height: 14px;
vertical-align: middle;
fill: #6d7e96;
}
.searchbox__reset {
display: block;
position: absolute;
top: 8px;
right: 8px;
margin: 0;
border: 0;
background: none;
cursor: pointer;
padding: 0;
font-size: inherit;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
fill: rgba(0, 0, 0, 0.5);
}
.searchbox__reset.hide {
display: none;
}
.searchbox__reset:focus {
outline: 0;
}
.searchbox__reset svg {
display: block;
margin: 4px;
width: 8px;
height: 8px;
}
.searchbox__input:valid ~ .searchbox__reset {
display: block;
-webkit-animation-name: sbx-reset-in;
animation-name: sbx-reset-in;
-webkit-animation-duration: 0.15s;
animation-duration: 0.15s;
}
@-webkit-keyframes sbx-reset-in {
0% {
-webkit-transform: translate3d(-20%, 0, 0);
transform: translate3d(-20%, 0, 0);
opacity: 0;
}
100% {
-webkit-transform: none;
transform: none;
opacity: 1;
}
}
@keyframes sbx-reset-in {
0% {
-webkit-transform: translate3d(-20%, 0, 0);
transform: translate3d(-20%, 0, 0);
opacity: 0;
}
100% {
-webkit-transform: none;
transform: none;
opacity: 1;
}
}
.ds-dropdown-menu {
right: -2px !important; //lesshint-disable-line importantRule
left: initial !important; //lesshint-disable-line importantRule
}
.algolia-autocomplete.algolia-autocomplete-right {
right: 0 !important; //lesshint-disable-line importantRule
left: inherit !important; //lesshint-disable-line importantRule
}
.algolia-autocomplete.algolia-autocomplete-right .ds-dropdown-menu:before {
right: 48px;
}
.algolia-autocomplete.algolia-autocomplete-left .ds-dropdown-menu {
left: 0 !important; //lesshint-disable-line importantRule
right: inherit !important; //lesshint-disable-line importantRule
}
.algolia-autocomplete.algolia-autocomplete-left .ds-dropdown-menu:before {
left: 48px;
}
.algolia-autocomplete .ds-dropdown-menu {
position: relative;
top: 18px;
border-radius: 8px;
margin: 6px 0 0;
padding: 0;
text-align: left;
height: auto;
background: transparent;
border: none;
z-index: 999;
max-width: 600px;
min-width: 600px;
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
}
.algolia-autocomplete .ds-dropdown-menu:before {
display: block;
position: absolute;
content: '';
width: 14px;
height: 14px;
background: #fff;
z-index: 1000;
top: -7px;
border-top: 1px solid #C5C7D1;
border-right: 1px solid #C5C7D1;
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
border-radius: 2px;
}
.algolia-autocomplete .ds-dropdown-menu .ds-suggestions {
position: relative;
z-index: 1000;
margin-top: 8px;
}
.algolia-autocomplete .ds-dropdown-menu .ds-suggestions a:hover {
text-decoration: none;
}
.algolia-autocomplete .ds-dropdown-menu .ds-suggestion {
cursor: pointer;
}
.algolia-autocomplete .ds-dropdown-menu .ds-suggestion.ds-cursor .algolia-docsearch-suggestion.suggestion-layout-simple {
// background-color: rgba(69, 142, 225, 0.05);
}
.algolia-autocomplete .ds-dropdown-menu .ds-suggestion.ds-cursor .algolia-docsearch-suggestion:not(.suggestion-layout-simple) .algolia-docsearch-suggestion--content {
// background-color: rgba(69, 142, 225, 0.05);
}
.algolia-autocomplete .ds-dropdown-menu [class^='ds-dataset-'] {
position: relative;
border: 1px solid #C5C7D1;
background: #fff;
border-radius: 8px;
overflow: auto;
padding: 0 8px 8px;
}
// lesshint-disable
.algolia-autocomplete .ds-dropdown-menu * {
box-sizing: border-box;
}
// lesshint-enable
.algolia-autocomplete .algolia-docsearch-suggestion {
display: block;
position: relative;
padding: 0 8px;
background: #fff;
color: #02060c;
overflow: hidden;
}
.algolia-autocomplete .algolia-docsearch-suggestion--highlight {
color: #6A67FE;
}
.algolia-autocomplete .algolia-docsearch-suggestion--category-header .algolia-docsearch-suggestion--category-header-lvl0
.algolia-docsearch-suggestion--highlight, .algolia-autocomplete
.algolia-docsearch-suggestion--category-header .algolia-docsearch-suggestion--category-header-lvl1
.algolia-docsearch-suggestion--highlight {
padding: 0 0 1px;
background: inherit;
color: inherit;
}
.algolia-autocomplete .algolia-docsearch-suggestion--text .algolia-docsearch-suggestion--highlight {
padding: 0 0 1px;
background: inherit;
// box-shadow: inset 0 -2px 0 0 rgba(69, 142, 225, 0.8);
color: inherit;
}
.algolia-autocomplete .algolia-docsearch-suggestion--content {
display: block;
float: right;
width: 70%;
position: relative;
padding: 5.33333px 0 5.33333px 10.66667px;
cursor: pointer;
}
.algolia-autocomplete .algolia-docsearch-suggestion--content:before {
content: '';
position: absolute;
display: block;
top: 0;
height: 100%;
width: 1px;
background: #ddd;
left: -1px;
}
.algolia-autocomplete .algolia-docsearch-suggestion--category-header {
position: relative;
border-bottom: 1px solid #ddd;
display: none;
margin-top: 8px;
padding: 4px 0;
font-size: 1em;
font-weight: 700;
color: #192147;
}
.algolia-autocomplete .algolia-docsearch-suggestion--wrapper {
width: 100%;
float: left;
padding: 8px 0 0 0;
}
.algolia-autocomplete .algolia-docsearch-suggestion--subcategory-column {
float: left;
width: 30%;
padding-left: 0;
position: relative;
padding: 5.33333px 10.66667px;
color: #192147;
font-size: 0.9em;
word-wrap: break-word;
}
.algolia-autocomplete .algolia-docsearch-suggestion--subcategory-column:before {
content: '';
position: absolute;
display: block;
top: 0;
height: 100%;
width: 1px;
background: #ddd;
right: 0;
}
.algolia-autocomplete .algolia-docsearch-suggestion--subcategory-inline {
display: none;
}
.algolia-autocomplete .algolia-docsearch-suggestion--title {
margin-bottom: 4px;
font-weight: 700;
color: #192147;
font-size: 0.9em;
}
.algolia-autocomplete .algolia-docsearch-suggestion--text {
display: block;
line-height: 1.2em;
font-size: 0.85em;
color: #63676d;
}
.algolia-autocomplete .algolia-docsearch-suggestion--no-results {
width: 100%;
padding: 8px 0;
text-align: center;
font-size: 1.2em;
}
.algolia-autocomplete .algolia-docsearch-suggestion--no-results::before {
display: none;
}
.algolia-autocomplete .algolia-docsearch-suggestion code {
padding: 1px 5px;
font-size: 90%;
border: none;
color: #222222;
background-color: #ebebeb;
border-radius: 3px;
font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
}
.algolia-autocomplete .algolia-docsearch-suggestion code .algolia-docsearch-suggestion--highlight {
background: none;
}
.algolia-autocomplete .algolia-docsearch-suggestion.algolia-docsearch-suggestion__main .algolia-docsearch-suggestion--category-header {
display: block;
}
.algolia-autocomplete .algolia-docsearch-suggestion.algolia-docsearch-suggestion__secondary {
display: block;
}
@media all and (min-width: 768px) {
.algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--subcategory-column {
display: block;
}
}
@media all and (max-width: 768px) {
.algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--subcategory-column {
display: inline-block;
width: auto;
text-align: left;
float: left;
padding: 0;
color: #02060c;
font-size: 0.9em;
font-weight: bold;
opacity: 0.5;
}
.algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--subcategory-column:before {
display: none;
}
.algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--subcategory-column:after {
content: '|';
}
.algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--content {
display: inline-block;
width: auto;
text-align: left;
float: left;
padding: 0;
}
.algolia-autocomplete .algolia-docsearch-suggestion .algolia-docsearch-suggestion--content:before {
display: none;
}
}
.algolia-autocomplete .suggestion-layout-simple.algolia-docsearch-suggestion {
border-bottom: solid 1px #eee;
padding: 8px;
margin: 0;
}
.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--content {
width: 100%;
padding: 0;
}
.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--content::before {
display: none;
}
.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--category-header {
margin: 0;
padding: 0;
display: block;
width: 100%;
border: none;
}
.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--category-header-lvl0 {
opacity: 0.6;
font-size: 0.85em;
}
.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--category-header-lvl1 {
opacity: 0.6;
font-size: 0.85em;
}
.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--category-header-lvl1::before {
background-image: url('data:image/svg+xml;utf8,<svg width="10" height="10" viewBox="0 0 20 38" xmlns="http://www.w3.org/2000/svg"><path d="M1.49 4.31l14 16.126.002-2.624-14 16.074-1.314 1.51 3.017 2.626 1.313-1.508 14-16.075 1.142-1.313-1.14-1.313-14-16.125L3.2.18.18 2.8l1.31 1.51z" fill-rule="evenodd" fill="%231D3657" /></svg>');
content: '';
width: 10px;
height: 10px;
display: inline-block;
}
.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--wrapper {
width: 100%;
float: left;
margin: 0;
padding: 0;
}
.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--duplicate-content, .algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--subcategory-inline {
display: none !important; //lesshint-disable-line importantRule
}
.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--title {
margin: 0;
color: #458ee1;
font-size: 0.9em;
font-weight: normal;
}
.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--title::before {
content: '#';
font-weight: bold;
color: #458ee1;
display: inline-block;
}
.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--text {
margin: 4px 0 0;
display: block;
line-height: 1.4em;
padding: 5.33333px 8px;
background: #f8f8f8;
font-size: 0.85em;
opacity: 0.8;
}
.algolia-autocomplete .suggestion-layout-simple .algolia-docsearch-suggestion--text .algolia-docsearch-suggestion--highlight {
color: #3f4145;
font-weight: bold;
box-shadow: none;
}
.algolia-autocomplete .algolia-docsearch-footer {
width: 134px;
height: 20px;
z-index: 2000;
margin-top: 10.66667px;
float: right;
font-size: 0;
line-height: 0;
}
.algolia-autocomplete .algolia-docsearch-footer--logo {
background-image: url("data:image/svg+xml,%3Csvg width='168' height='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M78.988.938h16.594a2.968 2.968 0 0 1 2.966 2.966V20.5a2.967 2.967 0 0 1-2.966 2.964H78.988a2.967 2.967 0 0 1-2.966-2.964V3.897A2.961 2.961 0 0 1 78.988.938zm41.937 17.866c-4.386.02-4.386-3.54-4.386-4.106l-.007-13.336 2.675-.424v13.254c0 .322 0 2.358 1.718 2.364v2.248zm-10.846-2.18c.821 0 1.43-.047 1.855-.129v-2.719a6.334 6.334 0 0 0-1.574-.199c-.295 0-.596.021-.897.069a2.699 2.699 0 0 0-.814.24c-.24.116-.439.28-.582.491-.15.212-.219.335-.219.656 0 .628.219.991.616 1.23s.938.362 1.615.362zm-.233-9.7c.883 0 1.629.109 2.231.328.602.218 1.088.525 1.444.915.363.396.609.922.76 1.483.157.56.232 1.175.232 1.85v6.874c-.41.089-1.034.19-1.868.314-.834.123-1.772.185-2.813.185-.69 0-1.327-.069-1.895-.198a4.001 4.001 0 0 1-1.471-.636 3.085 3.085 0 0 1-.951-1.134c-.226-.465-.343-1.12-.343-1.803 0-.656.13-1.073.384-1.525.26-.45.608-.819 1.047-1.106.445-.287.95-.492 1.532-.615a8.8 8.8 0 0 1 1.82-.185 8.404 8.404 0 0 1 1.972.24v-.438c0-.307-.035-.6-.11-.874a1.88 1.88 0 0 0-.384-.73 1.784 1.784 0 0 0-.724-.493 3.164 3.164 0 0 0-1.143-.205c-.616 0-1.177.075-1.69.164a7.735 7.735 0 0 0-1.26.307l-.321-2.192c.335-.117.834-.233 1.478-.349a10.98 10.98 0 0 1 2.073-.178zm52.842 9.626c.822 0 1.43-.048 1.854-.13V13.7a6.347 6.347 0 0 0-1.574-.199c-.294 0-.595.021-.896.069a2.7 2.7 0 0 0-.814.24 1.46 1.46 0 0 0-.582.491c-.15.212-.218.335-.218.656 0 .628.218.991.615 1.23.404.245.938.362 1.615.362zm-.226-9.694c.883 0 1.629.108 2.231.327.602.219 1.088.526 1.444.915.355.39.609.923.759 1.483.158.56.233 1.175.233 1.852v6.873c-.41.088-1.034.19-1.868.314-.834.123-1.772.184-2.813.184-.69 0-1.327-.068-1.895-.198a4.001 4.001 0 0 1-1.471-.635 3.085 3.085 0 0 1-.951-1.134c-.226-.465-.343-1.12-.343-1.804 0-.656.13-1.073.384-1.524.26-.45.608-.82 1.047-1.107.445-.286.95-.491 1.532-.614a8.803 8.803 0 0 1 2.751-.13c.329.034.671.096 1.04.185v-.437a3.3 3.3 0 0 0-.109-.875 1.873 1.873 0 0 0-.384-.731 1.784 1.784 0 0 0-.724-.492 3.165 3.165 0 0 0-1.143-.205c-.616 0-1.177.075-1.69.164-.514.089-.938.191-1.26.307l-.321-2.193c.335-.116.834-.232 1.478-.348a11.633 11.633 0 0 1 2.073-.177zm-8.034-1.271a1.626 1.626 0 0 1-1.628-1.62c0-.895.725-1.62 1.628-1.62.904 0 1.63.725 1.63 1.62 0 .895-.733 1.62-1.63 1.62zm1.348 13.22h-2.689V7.27l2.69-.423v11.956zm-4.714 0c-4.386.02-4.386-3.54-4.386-4.107l-.008-13.336 2.676-.424v13.254c0 .322 0 2.358 1.718 2.364v2.248zm-8.698-5.903c0-1.156-.253-2.119-.746-2.788-.493-.677-1.183-1.01-2.067-1.01-.882 0-1.574.333-2.065 1.01-.493.676-.733 1.632-.733 2.788 0 1.168.246 1.953.74 2.63.492.683 1.183 1.018 2.066 1.018.882 0 1.574-.342 2.067-1.019.492-.683.738-1.46.738-2.63zm2.737-.007c0 .902-.13 1.584-.397 2.33a5.52 5.52 0 0 1-1.128 1.906 4.986 4.986 0 0 1-1.752 1.223c-.685.286-1.739.45-2.265.45-.528-.006-1.574-.157-2.252-.45a5.096 5.096 0 0 1-1.744-1.223c-.487-.527-.863-1.162-1.137-1.906a6.345 6.345 0 0 1-.41-2.33c0-.902.123-1.77.397-2.508a5.554 5.554 0 0 1 1.15-1.892 5.133 5.133 0 0 1 1.75-1.216c.679-.287 1.425-.423 2.232-.423.808 0 1.553.142 2.237.423.685.286 1.274.69 1.753 1.216a5.644 5.644 0 0 1 1.135 1.892c.287.738.431 1.606.431 2.508zm-20.138 0c0 1.12.246 2.363.738 2.882.493.52 1.13.78 1.91.78.424 0 .828-.062 1.204-.178.377-.116.677-.253.917-.417V9.33a10.476 10.476 0 0 0-1.766-.226c-.971-.028-1.71.37-2.23 1.004-.513.636-.773 1.75-.773 2.788zm7.438 5.274c0 1.824-.466 3.156-1.404 4.004-.936.846-2.367 1.27-4.296 1.27-.705 0-2.17-.137-3.34-.396l.431-2.118c.98.205 2.272.26 2.95.26 1.074 0 1.84-.219 2.299-.656.459-.437.684-1.086.684-1.948v-.437a8.07 8.07 0 0 1-1.047.397c-.43.13-.93.198-1.492.198-.739 0-1.41-.116-2.018-.349a4.206 4.206 0 0 1-1.567-1.025c-.431-.45-.774-1.017-1.013-1.694-.24-.677-.363-1.885-.363-2.773 0-.834.13-1.88.384-2.577.26-.696.629-1.298 1.129-1.796.493-.498 1.095-.881 1.8-1.162a6.605 6.605 0 0 1 2.428-.457c.87 0 1.67.109 2.45.24.78.129 1.444.265 1.985.415V18.17z' fill='%235468FF'/%3E%3Cpath d='M6.972 6.677v1.627c-.712-.446-1.52-.67-2.425-.67-.585 0-1.045.13-1.38.391a1.24 1.2
background-repeat: no-repeat;
background-position: center;
background-size: 100%;
overflow: hidden;
text-indent: -9000px;
padding: 0 !important; //lesshint-disable-line importantRule
width: 100%;
height: 100%;
display: block;
}
@media (max-width: 768px) {
.algolia-autocomplete .ds-dropdown-menu {
max-width: calc(100vw - 32px) !important; //lesshint-disable-line importantRule
min-width: calc(100vw - 32px) !important; //lesshint-disable-line importantRule
width: calc(100vw - 32px) !important; //lesshint-disable-line importantRule
margin-left: 16px !important; //lesshint-disable-line importantRule
}
.algolia-autocomplete .algolia-docsearch-suggestion--content {
width: 100% !important; //lesshint-disable-line importantRule
padding-left: 0 !important; //lesshint-disable-line importantRule
}
.algolia-autocomplete .algolia-docsearch-suggestion--content:before {
display: none !important; //lesshint-disable-line importantRule
}
.algolia-autocomplete .algolia-docsearch-suggestion--subcategory-column {
display: none !important; //lesshint-disable-line importantRule
}
}