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

66 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;
2019-02-08 16:49:51 +00:00
color: $color-font-secondary;
2019-01-27 23:26:01 +00:00
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 {
2019-02-08 16:49:51 +00:00
color: $color-font;
2019-01-27 23:26:01 +00:00
}
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
}
2019-06-17 06:14:48 +00:00
label span:nth-child(2) {
color: $color-alert
}
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;
&.load-more {
2019-02-08 16:49:51 +00:00
color: $color-main;
2017-11-22 06:56:31 +00:00
font-family: vn-font-bold;
2017-09-13 12:59:58 +00:00
padding: .4em .8em;
}
}
}