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

89 lines
1.6 KiB
SCSS
Raw Normal View History

2016-11-21 10:06:25 +13:00
.dropdown-field {
2017-06-19 07:38:23 +12:00
font-size: 13px;
2016-11-21 10:06:25 +13:00
font-weight: 600;
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
.label {
padding: 14px 10px;
2016-11-21 10:06:25 +13:00
cursor: pointer;
}
&.expanded {
.label {
2017-06-19 07:38:23 +12:00
color: $blue;
2016-11-21 10:06:25 +13:00
}
.options {
display: block;
}
}
.options {
2017-06-19 09:04:27 +12:00
color: $grey;
2016-11-21 10:06:25 +13:00
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;
2017-06-19 07:38:23 +12:00
background: $white;
2016-11-21 10:06:25 +13:00
display: none;
2017-06-19 09:04:27 +12:00
box-shadow: 2px 3px 6px rgba(0,0,0,0.2);
border-radius: 3px;
&:before {
content: '';
display: block;
position: absolute;
top: -6px;
right: 10px;
background: $white;
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 6px solid $light_grey;
}
2016-11-21 10:06:25 +13:00
.option {
2017-06-19 09:04:27 +12:00
@include animate();
2016-11-21 10:06:25 +13:00
position: relative;
2017-06-19 09:04:27 +12:00
padding: 9px 12px 8px 24px;
2016-11-21 10:06:25 +13:00
cursor: pointer;
2017-06-19 09:04:27 +12:00
&: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
.fa {
position: absolute;
2017-06-19 09:04:27 +12:00
top: 9px;
left: 8px;
2017-06-19 07:38:23 +12:00
font-size: 10px;
2016-11-21 10:06:25 +13:00
}
&:hover {
2017-06-19 07:38:23 +12:00
color: $black;
2017-06-19 09:04:27 +12:00
&:before {
opacity: 0.15;
}
2016-11-21 10:06:25 +13:00
}
}
}
}