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

61 lines
1.1 KiB
SCSS
Raw Normal View History

2018-05-31 11:34:48 +00:00
@import "effects";
2018-03-09 13:15:30 +00:00
vn-autocomplete > div > .mdl-textfield {
position: relative;
width: 100%;
& > input {
cursor: pointer;
2018-04-18 12:44:07 +00:00
height: 30px;
2018-03-09 13:15:30 +00:00
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
& > .icons {
display: none;
position: absolute;
right: 0;
top: 1.3em;
height: 1em;
color: $secondary-font-color;
2018-03-09 13:15:30 +00:00
border-radius: .2em;
& > vn-icon {
cursor: pointer;
font-size: 18px;
&:hover {
color: $main-font-color;
2018-03-09 13:15:30 +00:00
}
}
}
&:hover > .icons,
& > input:focus + .icons {
display: block;
}
}
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;
}
}
}