salix/client/core/src/components/drop-down/style.scss

75 lines
1.9 KiB
SCSS
Raw Normal View History

@import "colors";
vn-drop-down {
.dropdown {
2018-03-09 13:15:30 +00:00
display: flex;
flex-direction: column;
& > .filter {
position: relative;
& > .search {
display: block;
width: 100%;
box-sizing: border-box;
2018-03-09 13:53:31 +00:00
border: none;
border-bottom: 1px solid #ccc;
font-size: inherit;
2018-03-09 13:59:08 +00:00
padding: .6em;
}
2018-03-09 13:15:30 +00:00
& > vn-icon[icon=clear] {
display: none;
cursor: pointer;
2018-03-09 13:15:30 +00:00
position: absolute;
2018-03-09 13:53:31 +00:00
right: .5em;
2018-03-09 13:59:08 +00:00
top: .6em;
2018-03-09 13:15:30 +00:00
height: 1em;
color: #888;
2018-03-09 13:53:31 +00:00
border-radius: 50%;
2018-03-09 13:15:30 +00:00
background-color: rgba(255, 255, 255, .8);
font-size: 18px;
&:hover {
color: $main-font-color;
2017-06-21 11:16:37 +00:00
}
}
2018-03-09 13:15:30 +00:00
&:hover > vn-icon[icon=clear] {
display: block;
}
}
2018-03-09 13:15:30 +00:00
& > .list {
2018-03-09 14:04:25 +00:00
max-height: 12.8em;
2018-03-09 13:15:30 +00:00
overflow: auto;
ul {
padding: 0;
margin: 0;
list-style-type: none;
2018-03-09 13:15:30 +00:00
}
li, .status {
padding: .6em;
cursor: pointer;
white-space: nowrap;
2018-03-09 13:15:30 +00:00
transition: background-color 250ms ease-out;
display: flex;
& > input[type=checkbox] {
margin: 0;
margin-right: .6em;
}
2018-03-09 13:15:30 +00:00
&:hover {
background-color: rgba(0, 0, 0, .1);
}
2018-03-09 13:15:30 +00:00
&.active {
background-color: #3D3A3B;
color: white;
2017-09-20 11:52:53 +00:00
}
}
2018-03-09 13:15:30 +00:00
.status {
color: $main-01;
2018-03-09 13:15:30 +00:00
font-weight: bold;
2017-06-21 11:16:37 +00:00
}
}
}
2018-03-09 13:15:30 +00:00
}