salix/front/core/components/autocomplete/style.scss

65 lines
1.3 KiB
SCSS
Raw Normal View History

2018-05-31 11:34:48 +00:00
@import "effects";
2018-03-09 13:15:30 +00:00
2019-01-27 23:26:01 +00:00
vn-autocomplete {
overflow: hidden;
& > div > .mdl-textfield {
position: relative;
width: 100%;
& > input {
2018-03-09 13:15:30 +00:00
cursor: pointer;
2019-01-27 23:26:01 +00:00
height: 30px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
& > .icons {
display: none;
position: absolute;
right: 0;
top: 1.3em;
height: 1em;
color: $secondary-font-color;
border-radius: .2em;
2018-03-09 13:15:30 +00:00
2019-01-27 23:26:01 +00:00
& > vn-icon {
cursor: pointer;
font-size: 18px;
&:hover {
color: $main-font-color;
}
2018-03-09 13:15:30 +00:00
}
}
2019-01-27 23:26:01 +00:00
&:hover > .icons,
& > input:focus + .icons {
display: block;
}
2018-03-09 13:15:30 +00:00
}
}
2017-09-13 12:59:58 +00:00
ul.vn-autocomplete {
list-style-type: none;
padding: 1em;
margin: 0;
padding: 0;
overflow: auto;
max-height: 300px;
li {
2018-05-31 11:34:48 +00:00
@extend %clickable;
2017-09-13 12:59:58 +00:00
display: block;
padding: .8em;
margin: 0;
2018-05-31 11:34:48 +00:00
&.active {
background-color: $hover;
2017-09-13 12:59:58 +00:00
}
&.load-more {
color: $main-01;
2017-11-22 06:56:31 +00:00
font-family: vn-font-bold;
2017-09-13 12:59:58 +00:00
padding: .4em .8em;
}
}
}