mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-20 09:38:37 +08:00
Add: Settings range
This commit is contained in:
@@ -12,16 +12,16 @@
|
||||
color: $gray-dark;
|
||||
font-size: 12px;
|
||||
}
|
||||
.select {
|
||||
.select, .range {
|
||||
cursor: pointer;
|
||||
}
|
||||
.select .head, .switch {
|
||||
.select .head, .switch, .range .head {
|
||||
padding: $padding;
|
||||
background: #fff;
|
||||
font-size: $font-size;
|
||||
border-bottom: 1px solid $gray-light;
|
||||
}
|
||||
.select .head {
|
||||
.select .head, .range .head {
|
||||
transition: background $anim-duration, color $anim-duration;
|
||||
span {
|
||||
float: right;
|
||||
@@ -46,6 +46,34 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
.range .input-container {
|
||||
display: none;
|
||||
padding: $padding;
|
||||
background: $gray-light;
|
||||
&.open {
|
||||
display: block;
|
||||
}
|
||||
input {
|
||||
-webkit-appearance: none;
|
||||
background: $gray;
|
||||
height: 4px;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
top: -3px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
input::-webkit-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
position: relative;
|
||||
top: 0px;
|
||||
z-index: 1;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
border-radius: 10px;
|
||||
background-color: #FFF;
|
||||
box-shadow: $box-shadow;
|
||||
}
|
||||
}
|
||||
.switch {
|
||||
.checkbox {
|
||||
float: right;
|
||||
|
||||
Reference in New Issue
Block a user