Dropdown field; preliminary

This commit is contained in:
James Barnsley
2016-11-21 10:06:25 +13:00
parent ff8f3427e1
commit 8d1436996c
9 changed files with 189 additions and 8 deletions

View File

@ -0,0 +1,51 @@
.dropdown-field {
font-size: 14px;
font-weight: 600;
text-transform: uppercase;
position: relative;
.label {
padding: 18px 10px;
cursor: pointer;
}
&.expanded {
.label {
background: $dark_grey;
color: #FFFFFF;
}
.options {
display: block;
}
}
.options {
color: #FFFFFF;
position: absolute;
top: 54px;
right: 0px;
z-index: 97;
background: $dark_grey;
display: none;
.option {
position: relative;
padding: 10px 16px 10px 34px;
border-top: 1px solid lighten($dark_grey, 10%);
cursor: pointer;
.fa {
position: absolute;
top: 13px;
left: 12px;
font-size: 12px;
}
&:hover {
background: lighten($dark_grey, 10%);
}
}
}
}