redoc/lib/shared/components/DropDown/drop-down.scss

73 lines
1.6 KiB
SCSS
Raw Normal View History

2016-04-19 18:50:01 +03:00
@import '../../styles/variables';
:host {
.dk-select {
max-width: 100%;
font-family: $headers-font, $headers-font-family;
font-size: .929em;
min-width: 100px;
width: auto;
2016-04-19 18:50:01 +03:00
}
.dk-selected:after {
display: none;
}
// button
.dk-selected {
color: $secondary-color;
border-color: rgba($secondary-color, .5);
padding: 0.15em 0.6em 0.2em 0.5em;
border-radius: $border-radius;
2016-04-19 18:50:01 +03:00
}
.dk-select-open-down .dk-selected, .dk-selected:focus, .dk-selected:hover {
border-color: $primary-color;
color: $primary-color;
}
// tick
.dk-selected:before {
border-top-color: $secondary-color;
2016-04-19 18:50:01 +03:00
border-width: .35em .35em 0;
}
.dk-select-open-down .dk-selected:before,
.dk-select-open-up .dk-selected:before {
border-bottom-color: $primary-color;
}
// items
.dk-select-multi:focus .dk-select-options,
.dk-select-open-down .dk-select-options,
.dk-select-open-up .dk-select-options {
border-color: rgba($secondary-color, .2);
}
.dk-select-options .dk-option-highlight {
background: #ffffff;
2016-04-19 18:50:01 +03:00
}
.dk-select-options {
margin-top: 0.2em;
padding: 0;
border-radius: $border-radius;
box-shadow: 0px 2px 4px 0px rgba(34, 36, 38, 0.12), 0px 2px 10px 0px rgba(34, 36, 38, 0.08) !important
2016-04-19 18:50:01 +03:00
}
.dk-option {
color: $secondary-color;
padding: 0.16em 0.6em 0.2em 0.5em;
2016-04-19 18:50:01 +03:00
&:hover {
background-color: rgba($secondary-color, .12);
}
&:focus {
background-color: rgba($secondary-color, .12);
2016-04-19 18:50:01 +03:00
}
}
.dk-option-selected {
background-color: rgba(0, 0, 0, 0.05)!important;
2016-04-19 18:50:01 +03:00
}
}