mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-30 12:33:43 +03:00
86 lines
1.5 KiB
SCSS
86 lines
1.5 KiB
SCSS
@import '../../shared/styles/variables';
|
|
|
|
:host {
|
|
display: block;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.search-input-wrap {
|
|
padding: 0 20px;
|
|
|
|
> svg {
|
|
width: 13px;
|
|
height: 27px;
|
|
display: inline-block;
|
|
position: absolute;
|
|
|
|
path {
|
|
fill: lighten($text-color, 20%);
|
|
}
|
|
}
|
|
|
|
.clear-button {
|
|
position: absolute;
|
|
display: inline-block;
|
|
width: 13px;
|
|
text-align: center;
|
|
right: 20px;
|
|
height: 28px;
|
|
line-height: 28px;
|
|
vertical-align: middle;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
input {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
padding: 5px 20px 5px 20px;
|
|
|
|
border: 0;
|
|
border-bottom: 1px solid darken($side-bar-bg-color, 10%);
|
|
font-weight: bold;
|
|
|
|
font-size: 13px;
|
|
color: $text-color;
|
|
background-color: transparent;
|
|
outline: none;
|
|
}
|
|
|
|
.search-results {
|
|
margin: 10px 0 0;
|
|
list-style: none;
|
|
padding: 10px 0;
|
|
background-color: darken($side-bar-bg-color, 5%);
|
|
max-height: 100px;
|
|
overflow-y: auto;
|
|
border-bottom: 1px solid darken($side-bar-bg-color, 10%);
|
|
border-top: 1px solid darken($side-bar-bg-color, 10%);
|
|
line-height: 1.2;
|
|
|
|
min-height: 150px;
|
|
max-height: 250px;
|
|
|
|
> li {
|
|
display: block;
|
|
cursor: pointer;
|
|
font-family: Montserrat, sans-serif;
|
|
font-size: 13px;
|
|
padding: 5px 20px;
|
|
|
|
&:hover {
|
|
background-color: darken($side-bar-bg-color, 10%);
|
|
}
|
|
}
|
|
|
|
li.menu-item-depth-1 {
|
|
color: $primary-color;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
> li.disabled {
|
|
cursor: default;
|
|
color: lighten($text-color, 60%);
|
|
}
|
|
}
|