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

82 lines
1.2 KiB
SCSS
Raw Normal View History

2016-11-21 10:06:25 +13:00
.dropdown-field {
font-size: 14px;
font-weight: 600;
text-transform: uppercase;
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 {
background: $dark_grey;
color: #FFFFFF;
}
.options {
display: block;
}
}
.options {
color: #FFFFFF;
position: absolute;
top: 52px;
2016-11-21 10:06:25 +13:00
right: 0px;
z-index: 97;
background: $dark_grey;
display: none;
.option {
position: relative;
2016-12-22 08:21:19 +13:00
padding: 6px 14px 6px 30px;
2016-11-21 10:06:25 +13:00
border-top: 1px solid lighten($dark_grey, 10%);
cursor: pointer;
.fa {
position: absolute;
2016-12-22 08:21:19 +13:00
top: 12px;
left: 10px;
2016-11-21 10:06:25 +13:00
font-size: 12px;
}
&:hover {
background: lighten($dark_grey, 10%);
}
}
}
2017-02-22 08:36:17 +13:00
@include responsive( $bp_medium ){
&.expanded {
background: none !important;
color: inherit !important;
}
.label {
background: none !important;
color: inherit !important;
.fa {
display: none;
}
}
.options {
display: block;
position: relative;
top: 0;
background: lighten($light_grey,5%);
.option {
color: #000000;
border-color: $light_grey;
background: none !important;
}
}
}
2016-11-21 10:06:25 +13:00
}