salix/client/core/src/components/autocomplete/style.scss

62 lines
1.2 KiB
SCSS
Raw Normal View History

@import "colors";
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 {
display: block;
padding: .8em;
margin: 0;
cursor: pointer;
&.active,
&:hover {
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;
}
}
}