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

95 lines
2.4 KiB
SCSS
Raw Normal View History

vn-drop-down {
z-index: 10;
2018-03-09 13:15:30 +00:00
position: fixed;
display: none;
top: 0;
left: 0;
right: 0;
bottom: 0;
&.shown {
& > .body {
transform: translateY(0);
opacity: 1;
}
}
& > .body {
position: fixed;
box-shadow: 0 .1em .4em rgba(1, 1, 1, .4);
border-radius: .1em;
background-color: white;
display: flex;
flex-direction: column;
transform: translateY(-.4em);
opacity: 0;
transition-property: opacity, transform;
transition-duration: 250ms;
transition-timing-function: ease-in-out;
& > .filter {
position: relative;
padding: .4em;
& > .search {
height: 26px;
display: block;
width: 100%;
box-sizing: border-box;
}
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;
right: .6em;
top: .8em;
height: 1em;
color: #888;
border-radius: .2em;
background-color: rgba(255, 255, 255, .8);
font-size: 18px;
&:hover {
color: #333;
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 {
max-height: 12.2em;
overflow: auto;
ul {
padding: 0;
margin: 0;
}
li, .status {
2017-09-20 11:52:53 +00:00
outline: none;
list-style-type: none;
2018-03-09 13:15:30 +00:00
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: rgb(255,171,64);
font-weight: bold;
2017-06-21 11:16:37 +00:00
}
}
}
2018-03-09 13:15:30 +00:00
}