salix/front/core/components/drop-down/style.scss

78 lines
1.7 KiB
SCSS
Raw Normal View History

2018-05-31 11:57:48 +00:00
@import "effects";
2019-02-06 10:24:29 +00:00
@import "variables";
2019-09-30 09:30:54 +00:00
.vn-drop-down {
display: flex;
flex-direction: column;
height: inherit;
2018-03-09 13:15:30 +00:00
2019-09-30 09:30:54 +00:00
& > .filter {
position: relative;
2018-03-09 13:15:30 +00:00
2019-09-30 09:30:54 +00:00
& > .search {
display: block;
width: 100%;
box-sizing: border-box;
border: none;
font-size: inherit;
padding: .6em;
margin: 0!important;
&.not-empty label{
2018-03-09 13:15:30 +00:00
display: none;
2017-06-21 11:16:37 +00:00
}
2019-09-30 09:30:54 +00:00
& .selected label {
font-size: inherit;
bottom: 2px;
color: $color-font-secondary;
2018-03-09 13:15:30 +00:00
}
}
2019-09-30 09:30:54 +00:00
& > vn-icon[icon=clear] {
display: none;
cursor: pointer;
position: absolute;
right: .5em;
top: .6em;
height: 1em;
color: #888;
border-radius: 50%;
background-color: rgba(255, 255, 255, .8);
font-size: 18px;
&:hover {
color: $color-font;
2018-03-09 13:15:30 +00:00
}
2019-09-30 09:30:54 +00:00
}
&:hover > vn-icon[icon=clear] {
display: block;
}
}
& > .list {
max-height: 20em;
overflow: auto;
ul {
padding: 0;
margin: 0;
list-style-type: none;
}
li, .status {
@extend %clickable;
padding: .6em;
white-space: nowrap;
display: flex;
2018-03-09 13:15:30 +00:00
2019-09-30 09:30:54 +00:00
& > input[type=checkbox] {
margin: 0;
margin-right: .6em;
}
2019-09-30 09:30:54 +00:00
&.active {
@extend %active;
2017-06-21 11:16:37 +00:00
}
}
2019-09-30 09:30:54 +00:00
.status {
color: $color-main;
font-weight: bold;
}
}
2018-03-09 13:15:30 +00:00
}