Replaced the selectbox with native HTML <select>

This commit is contained in:
rcmainak 2018-03-13 18:43:07 +05:30 committed by Danny Coates
parent 0ed5c7f1e7
commit 77e3b5a3e6
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
2 changed files with 35 additions and 71 deletions

View file

@ -1,36 +1,27 @@
.selectbox {
display: inline-block;
position: relative;
cursor: pointer;
}
.selectbox__options {
display: none;
}
.selectbox__options--active {
display: block;
position: absolute;
top: 0;
left: 0;
padding: 0;
margin: 40px 0;
.select {
background-color: var(--pageBGColor);
border: 1px solid rgba(12, 12, 13, 0.3);
border-radius: 4px;
box-shadow: 1px 2px 4px rgba(12, 12, 13, 0.3);
overflow: hidden;
}
.selectbox__option {
color: var(--lightTextColor);
font-size: 12pt;
list-style: none;
user-select: none;
white-space: nowrap;
padding: 0 60px;
border-bottom: 1px solid rgba(12, 12, 13, 0.3);
select {
appearance: none;
outline: 0;
box-shadow: none;
border: 0;
background: #fff;
background-image: none;
font-size: 1em;
margin: 0;
color: #0094fb;
cursor: pointer;
border-color: none;
}
.selectbox__option:hover {
background-color: #f4f4f4;
select:active {
background-color: var(--pageBGColor);
border: 0;
}
#arrow {
position: relative;
}