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

81 lines
2.1 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";
vn-drop-down {
.dropdown {
2018-03-09 13:15:30 +00:00
display: flex;
flex-direction: column;
2018-07-03 11:24:42 +00:00
height: inherit;
2018-03-09 13:15:30 +00:00
& > .filter {
position: relative;
& > .search {
display: block;
width: 100%;
box-sizing: border-box;
2018-03-09 13:53:31 +00:00
border: none;
font-size: inherit;
2018-03-09 13:59:08 +00:00
padding: .6em;
2018-06-28 13:56:09 +00:00
margin: 0!important;
&.not-empty label{
display: none;
}
& .selected label {
font-size: inherit;
bottom: 2px;
color: $secondary-font-color;
}
}
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 {
2018-05-31 11:57:48 +00:00
@extend %clickable;
2018-03-09 13:15:30 +00:00
padding: .6em;
white-space: nowrap;
2018-03-09 13:15:30 +00:00
display: flex;
& > input[type=checkbox] {
margin: 0;
margin-right: .6em;
}
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
}