Files
Iris/src/scss/components/_dropdown-field.scss

135 lines
2.4 KiB
SCSS
Raw Normal View History

2016-11-21 10:06:25 +13:00
.dropdown-field {
2018-05-09 14:09:20 +12:00
@include noselect();
2017-06-19 07:38:23 +12:00
font-size: 13px;
font-weight: 800;
2017-06-19 07:38:23 +12:00
font-family: "Overpass";
2016-11-21 10:06:25 +13:00
position: relative;
2016-11-21 16:26:47 +13:00
display: inline-block;
2016-11-21 10:06:25 +13:00
2018-05-16 16:50:46 +12:00
.label {
.icon {
padding-right: 6px;
}
2018-05-16 16:50:46 +12:00
&:not(.button) {
@include animate();
padding: 14px 10px;
cursor: pointer;
.notouch &:hover {
color: $blue;
}
}
2016-11-21 10:06:25 +13:00
}
&.expanded {
2018-01-23 11:34:03 +13:00
.label:not(.button) {
2017-06-19 07:38:23 +12:00
color: $blue;
2016-11-21 10:06:25 +13:00
}
.options {
display: block;
}
}
&.no-status-icon {
.options {
.option {
padding-left: 12px;
}
}
}
2018-04-29 21:10:57 +12:00
&.no-label {
.label > .text {
display: none;
}
}
2016-11-21 10:06:25 +13:00
.options {
position: absolute;
2017-06-19 07:38:23 +12:00
top: 46px;
2017-06-19 09:04:27 +12:00
right: 10px;
2016-11-21 10:06:25 +13:00
z-index: 97;
display: none;
2017-06-19 09:04:27 +12:00
box-shadow: 2px 3px 6px rgba(0,0,0,0.2);
&:before {
content: '';
display: block;
position: absolute;
top: -6px;
right: 10px;
background: $white;
width: 0;
height: 0;
2017-07-24 06:03:09 +12:00
border-left: 5px solid $darkest_grey;
border-right: 5px solid $darkest_grey;
border-bottom: 6px solid $white;
2017-06-19 09:04:27 +12:00
}
2016-11-21 10:06:25 +13:00
2018-05-09 14:09:20 +12:00
& > .liner {
color: $black;
background: $white;
min-width: 120px;
max-height: 70vh;
overflow-y: auto;
border-radius: 3px;
2017-06-19 09:04:27 +12:00
&:before {
content: '';
display: block;
position: absolute;
2018-05-09 14:09:20 +12:00
top: -6px;
right: 10px;
background: $white;
width: 0;
height: 0;
border-left: 5px solid $darkest_grey;
border-right: 5px solid $darkest_grey;
border-bottom: 6px solid $white;
2017-06-19 09:04:27 +12:00
}
2016-11-21 10:06:25 +13:00
2018-05-09 14:09:20 +12:00
.option {
@include animate();
position: relative;
padding: 9px 12px 8px 24px;
cursor: pointer;
&:before {
@include animate();
content: '';
display: block;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
opacity: 0;
z-index: 9;
background: -webkit-linear-gradient(to bottom right, rgba(255,255,255,1), rgba(0,0,0,0.5));
background: -moz-linear-gradient(to bottom right, rgba(255,255,255,1), rgba(0,0,0,0.5));
background: -o-linear-gradient(to bottom right, rgba(255,255,255,1), rgba(0,0,0,0.5));
background: linear-gradient(to bottom right, rgba(255,255,255,1), rgba(0,0,0,0.5));
}
2016-11-21 10:06:25 +13:00
2018-05-16 16:50:46 +12:00
.icon {
2018-05-09 14:09:20 +12:00
position: absolute;
2018-05-16 16:50:46 +12:00
top: 8px;
left: 6px;
font-size: 16px;
2018-05-09 14:09:20 +12:00
}
2017-06-19 09:04:27 +12:00
2018-05-09 14:09:20 +12:00
.notouch &:hover {
color: $black;
&:before {
opacity: 0.15;
}
2017-06-19 09:04:27 +12:00
}
2016-11-21 10:06:25 +13:00
}
}
}
}