244 lines
6.5 KiB
CSS
244 lines
6.5 KiB
CSS
.pure-material-slider {
|
|
--pure-material-safari-helper1: var(--accent-color-opacity1);
|
|
--pure-material-safari-helper2: var(--accent-color-opacity2);
|
|
--pure-material-safari-helper3: var(--accent-color-opacity3);
|
|
--pure-material-safari-helper4: var(--accent-color-opacity4);
|
|
display: inline-block;
|
|
width: 220px;
|
|
color: rgba(var(--primary-text-color), 0.87);
|
|
font-family: var(--pure-material-font, "Roboto", "Segoe UI", BlinkMacSystemFont, system-ui, -apple-system);
|
|
font-size: 16px;
|
|
line-height: 1.5;
|
|
padding: 5px;
|
|
}
|
|
|
|
/* Input */
|
|
.pure-material-slider > input {
|
|
-webkit-appearance: none;
|
|
position: relative;
|
|
top: 24px;
|
|
display: block;
|
|
margin: 0 0 -36px;
|
|
width: 100%;
|
|
height: 36px;
|
|
background-color: transparent;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Without Span */
|
|
.pure-material-slider > input:last-child {
|
|
position: static;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Span */
|
|
.pure-material-slider > span {
|
|
display: inline-block;
|
|
margin-bottom: 36px;
|
|
}
|
|
|
|
/* Focus */
|
|
.pure-material-slider > input:focus {
|
|
outline: none;
|
|
}
|
|
|
|
/* Disabled */
|
|
.pure-material-slider > input:disabled {
|
|
cursor: default;
|
|
opacity: 0.38;
|
|
}
|
|
|
|
.pure-material-slider > input:disabled + span {
|
|
color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38);
|
|
}
|
|
|
|
/* Webkit | Track */
|
|
.pure-material-slider > input::-webkit-slider-runnable-track {
|
|
margin: 17px 0;
|
|
border-radius: 1px;
|
|
width: 100%;
|
|
height: 2px;
|
|
background-color: var(--accent-color-opacity4);
|
|
}
|
|
|
|
/* Webkit | Thumb */
|
|
.pure-material-slider > input::-webkit-slider-thumb {
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
border: none;
|
|
border-radius: 50%;
|
|
height: 2px;
|
|
width: 2px;
|
|
background-color: var(--accent-color);
|
|
transform: scale(6, 6);
|
|
transition: box-shadow 0.2s;
|
|
}
|
|
|
|
/* Webkit | Hover, Focus */
|
|
.pure-material-slider:hover > input::-webkit-slider-thumb {
|
|
box-shadow: 0 0 0 2px var(--pure-material-safari-helper1);
|
|
}
|
|
|
|
.pure-material-slider > input:focus::-webkit-slider-thumb {
|
|
box-shadow: 0 0 0 2px var(--pure-material-safari-helper2);
|
|
}
|
|
|
|
.pure-material-slider:hover > input:focus::-webkit-slider-thumb {
|
|
box-shadow: 0 0 0 2px var(--pure-material-safari-helper3);
|
|
}
|
|
|
|
/* Webkit | Active */
|
|
.pure-material-slider > input:active::-webkit-slider-thumb {
|
|
box-shadow: 0 0 0 2px var(--pure-material-safari-helper4) !important;
|
|
}
|
|
|
|
/* Webkit | Disabled */
|
|
.pure-material-slider > input:disabled::-webkit-slider-runnable-track {
|
|
background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38);
|
|
}
|
|
|
|
.pure-material-slider > input:disabled::-webkit-slider-thumb {
|
|
background-color: rgb(var(--pure-material-onsurface-rgb, 0, 0, 0));
|
|
color: rgb(var(--pure-material-surface-rgb, 255, 255, 255)); /* Safari */
|
|
box-shadow: 0 0 0 1px rgb(var(--pure-material-surface-rgb, 255, 255, 255)) !important;
|
|
transform: scale(4, 4);
|
|
}
|
|
|
|
/* Moz | Track */
|
|
.pure-material-slider > input::-moz-range-track {
|
|
margin: 17px 0;
|
|
border-radius: 1px;
|
|
width: 100%;
|
|
height: 2px;
|
|
background-color: var(--accent-color-opacity4);
|
|
}
|
|
|
|
/* Moz | Thumb */
|
|
.pure-material-slider > input::-moz-range-thumb {
|
|
appearance: none;
|
|
-moz-appearance: none;
|
|
border: none;
|
|
border-radius: 50%;
|
|
height: 2px;
|
|
width: 2px;
|
|
background-color: var(--accent-color);
|
|
transform: scale(6, 6);
|
|
transition: box-shadow 0.2s;
|
|
}
|
|
|
|
/* Moz | Progress */
|
|
.pure-material-slider > input::-moz-range-progress {
|
|
border-radius: 1px;
|
|
height: 2px;
|
|
background-color: var(--accent-color);
|
|
}
|
|
|
|
/* Moz | Hover, Focus */
|
|
.pure-material-slider:hover > input:hover::-moz-range-thumb {
|
|
box-shadow: 0 0 0 2px var(--accent-color-opacity1);
|
|
}
|
|
|
|
.pure-material-slider > input:focus::-moz-range-thumb {
|
|
box-shadow: 0 0 0 2px var(--accent-color-opacity2);
|
|
}
|
|
|
|
.pure-material-slider:hover > input:focus::-moz-range-thumb {
|
|
box-shadow: 0 0 0 2px var(--accent-color-opacity3);
|
|
}
|
|
|
|
/* Moz | Active */
|
|
.pure-material-slider > input:active::-moz-range-thumb {
|
|
box-shadow: 0 0 0 2px var(--accent-color-opacity4) !important;
|
|
}
|
|
|
|
/* Moz | Disabled */
|
|
.pure-material-slider > input:disabled::-moz-range-track {
|
|
background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38);
|
|
}
|
|
|
|
.pure-material-slider > input:disabled::-moz-range-progress {
|
|
background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.87);
|
|
}
|
|
|
|
.pure-material-slider > input:disabled::-moz-range-thumb {
|
|
background-color: rgb(var(--pure-material-onsurface-rgb, 0, 0, 0));
|
|
box-shadow: 0 0 0 1px rgb(var(--pure-material-surface-rgb, 255, 255, 255)) !important;
|
|
transform: scale(4, 4);
|
|
}
|
|
|
|
.pure-material-slider > input::-moz-focus-outer {
|
|
border: none;
|
|
}
|
|
|
|
/* MS | Track */
|
|
.pure-material-slider > input::-ms-track {
|
|
box-sizing: border-box;
|
|
margin: 17px 0;
|
|
border: none;
|
|
border-radius: 1px;
|
|
padding: 0 17px;
|
|
width: 100%;
|
|
height: 2px;
|
|
background-color: transparent;
|
|
}
|
|
|
|
.pure-material-slider > input::-ms-fill-lower {
|
|
border-radius: 1px;
|
|
height: 2px;
|
|
background-color: var(--accent-color);
|
|
}
|
|
|
|
/* MS | Progress */
|
|
.pure-material-slider > input::-ms-fill-upper {
|
|
border-radius: 1px;
|
|
height: 2px;
|
|
background-color: var(--accent-color-opacity4);
|
|
}
|
|
|
|
/* MS | Thumb */
|
|
.pure-material-slider > input::-ms-thumb {
|
|
appearance: none;
|
|
margin: 0 17px;
|
|
border: none;
|
|
border-radius: 50%;
|
|
height: 2px;
|
|
width: 2px;
|
|
background-color: var(--accent-color);
|
|
transform: scale(6, 6);
|
|
transition: box-shadow 0.2s;
|
|
}
|
|
|
|
/* MS | Hover, Focus */
|
|
.pure-material-slider:hover > input::-ms-thumb {
|
|
box-shadow: 0 0 0 2px var(--accent-color-opacity1);
|
|
}
|
|
|
|
.pure-material-slider > input:focus::-ms-thumb {
|
|
box-shadow: 0 0 0 2px var(--accent-color-opacity2);
|
|
}
|
|
|
|
.pure-material-slider:hover > input:focus::-ms-thumb {
|
|
box-shadow: 0 0 0 2px var(--accent-color-opacity3);
|
|
}
|
|
|
|
/* MS | Active */
|
|
.pure-material-slider > input:active::-ms-thumb {
|
|
box-shadow: 0 0 0 2px var(--accent-color-opacity4) !important;
|
|
}
|
|
|
|
/* MS | Disabled */
|
|
.pure-material-slider > input:disabled::-ms-fill-lower {
|
|
background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38);
|
|
}
|
|
|
|
.pure-material-slider > input:disabled::-ms-fill-upper {
|
|
background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38);
|
|
opacity: 0.38;
|
|
}
|
|
|
|
.pure-material-slider > input:disabled::-ms-thumb {
|
|
background-color: rgb(var(--pure-material-onsurface-rgb, 0, 0, 0));
|
|
box-shadow: 0 0 0 1px rgb(var(--pure-material-surface-rgb, 255, 255, 255)) !important;
|
|
transform: scale(4, 4);
|
|
}
|