BetterDiscordApp-v2/client/src/styles/partials/generic/forms/sliders.scss

128 lines
2.9 KiB
SCSS
Raw Normal View History

2018-08-15 04:03:56 +02:00
.bd-formSlider {
2018-02-21 11:46:13 +01:00
h3 + .bd-slider {
margin-left: 15px;
}
2018-08-15 04:03:56 +02:00
.bd-formItemFullwidth & {
2018-02-21 11:46:13 +01:00
.bd-title {
flex-direction: column;
}
h3 + .bd-slider {
margin-top: 15px;
margin-left: 0;
}
}
}
2018-02-05 01:34:22 +01:00
.bd-slider {
2018-02-05 14:36:17 +01:00
min-height: 24px;
min-width: 180px;
2018-02-05 01:34:22 +01:00
2018-08-15 04:03:56 +02:00
.bd-sliderContainer {
2018-02-05 14:36:17 +01:00
padding-top: 8px;
padding-bottom: 8px;
}
2018-02-05 11:45:59 +01:00
2018-08-15 04:03:56 +02:00
.bd-sliderPoints {
2018-02-05 14:36:17 +01:00
padding: 0 5px;
2018-08-15 04:03:56 +02:00
.bd-sliderPoint {
2018-02-05 14:36:17 +01:00
left: 0;
margin-left: -12px;
2018-02-05 11:45:59 +01:00
position: relative;
2018-02-05 14:36:17 +01:00
top: -6px;
width: 24px;
color: #72767d;
font-size: 10px;
font-weight: 700;
margin-bottom: -26px;
text-align: center;
&::after {
2018-08-15 11:42:43 +02:00
content: '';
2018-02-05 14:36:17 +01:00
background-color: #4f545c;
height: 24px;
width: 2px;
position: relative;
display: block;
top: 4px;
margin-bottom: -22px;
margin-left: 11px;
}
2018-08-15 04:03:56 +02:00
+ .bd-sliderPoint {
2018-02-05 14:36:17 +01:00
top: -14px;
}
2018-02-05 11:45:59 +01:00
}
2018-02-05 01:34:22 +01:00
}
2018-08-15 04:03:56 +02:00
.bd-sliderBar {
2018-02-05 01:34:22 +01:00
background-color: #4f545c;
height: 8px;
border-radius: 4px;
2018-02-05 14:36:17 +01:00
padding: 0 5px;
overflow: hidden;
&::before {
2018-08-15 11:42:43 +02:00
content: '';
2018-08-15 09:45:10 +02:00
background-color: $colbdgreen;
2018-02-05 14:36:17 +01:00
height: 8px;
width: 5px;
display: block;
margin-left: -5px;
}
2018-02-05 01:34:22 +01:00
2018-08-15 04:03:56 +02:00
.bd-sliderBarFilled {
2018-08-15 09:45:10 +02:00
background-color: $colbdgreen;
2018-02-05 01:34:22 +01:00
height: 8px;
width: 100%;
2018-02-05 14:36:17 +01:00
margin-top: -8px;
}
}
2018-08-15 04:03:56 +02:00
.bd-sliderThumbWrap {
2018-02-05 14:36:17 +01:00
margin: -16px 0;
padding: 0 5px;
2018-08-15 04:03:56 +02:00
.bd-sliderThumb {
2018-02-05 14:36:17 +01:00
width: 10px;
height: 24px;
position: relative;
pointer-events: none;
2018-08-15 11:42:43 +02:00
background: #fff;
2018-02-05 14:36:17 +01:00
border: 1px solid #dcddde;
2018-08-15 11:42:43 +02:00
box-shadow: 0 3px 1px 0 rgba(0, 0, 0, .05), 0 2px 2px 0 rgba(0, 0, 0, .1), 0 3px 3px 0 rgba(0, 0, 0, .05);
2018-02-05 14:36:17 +01:00
margin-left: -5px;
border-radius: 3px;
box-sizing: border-box;
2018-02-05 01:34:22 +01:00
}
}
input {
border-radius: 4px;
display: block;
2018-02-05 14:36:17 +01:00
height: 24px;
2018-02-05 01:34:22 +01:00
background-color: transparent;
outline: none;
2018-02-05 14:36:17 +01:00
width: 100%;
margin: -24px 0 0;
2018-02-05 01:34:22 +01:00
-webkit-appearance: none;
appearance: none;
&::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
background-color: #fff;
2018-02-05 11:45:59 +01:00
border: 1px solid transparent;
2018-02-05 01:34:22 +01:00
border-radius: 3px;
cursor: ew-resize;
height: 24px;
width: 10px;
2018-02-05 11:45:59 +01:00
background: transparent;
box-sizing: border-box;
2018-02-05 14:36:17 +01:00
position: relative;
2018-02-05 01:34:22 +01:00
}
}
}