redoc/lib/components/Search/redoc-search.scss

74 lines
1.3 KiB
SCSS
Raw Normal View History

2017-01-28 19:47:12 +03:00
@import '../../shared/styles/variables';
2016-12-29 20:20:29 +03:00
:host {
display: block;
2017-01-28 19:47:12 +03:00
margin: 10px 0;
}
.search-input-wrap {
padding: 0 20px;
2017-01-29 21:59:21 +03:00
> svg {
width: 13px;
height: 27px;
display: inline-block;
position: absolute;
path {
fill: lighten($text-color, 20%);
}
}
2017-01-24 00:29:52 +03:00
}
input {
width: 100%;
box-sizing: border-box;
2017-01-29 21:59:21 +03:00
padding: 5px 5px 5px 20px;
2017-01-28 19:47:12 +03:00
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;
2017-01-24 00:29:52 +03:00
}
.search-results {
margin: 10px 0 0;
list-style: none;
2017-01-28 19:47:12 +03:00
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;
2017-01-28 19:47:12 +03:00
min-height: 150px;
max-height: 250px;
2017-01-24 00:29:52 +03:00
> li {
display: block;
cursor: pointer;
2017-01-28 19:47:12 +03:00
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;
2017-01-28 19:47:12 +03:00
text-transform: uppercase;
}
> li.disabled {
cursor: default;
color: lighten($text-color, 60%);
2017-01-24 00:29:52 +03:00
}
2016-12-29 20:20:29 +03:00
}