1
0
mirror of https://github.com/kognise/water.css.git synced 2025-08-20 03:42:07 +02:00

add and style input type range

This commit is contained in:
Bobo
2019-06-19 13:34:10 +03:00
parent cecf3becfa
commit 5b3dac19e8
26 changed files with 866 additions and 222 deletions

View File

@@ -1,17 +1,17 @@
button,
input[type='submit'],
input[type='button'],
input[type='checkbox'] {
input[type="submit"],
input[type="button"],
input[type="checkbox"],
input[type="range"] {
cursor: pointer;
}
input:not([type='checkbox']):not([type='radio']),
input:not([type="checkbox"]):not([type="radio"]),
select {
display: block;
}
input,
select,
button,
textarea {
color: var(--form-text);
@@ -29,7 +29,7 @@ textarea {
outline: none;
}
input:not([type='checkbox']):not([type='radio']),
input:not([type="checkbox"]):not([type="radio"]),
select,
button,
textarea {
@@ -44,15 +44,15 @@ textarea {
}
button,
input[type='submit'],
input[type='button'] {
input[type="submit"],
input[type="button"] {
padding-right: 30px;
padding-left: 30px;
}
button:hover,
input[type='submit']:hover,
input[type='button']:hover {
input[type="submit"]:hover,
input[type="button"]:hover {
background: var(--button-hover);
}
@@ -63,10 +63,11 @@ textarea:focus {
box-shadow: 0 0 0 2px var(--focus);
}
input[type='checkbox']:active,
input[type='radio']:active,
input[type='submit']:active,
input[type='button']:active,
input[type="checkbox"]:active,
input[type="radio"]:active,
input[type="submit"]:active,
input[type="button"]:active,
input[type="range"]:active,
button:active {
transform: translateY(2px);
}
@@ -82,3 +83,80 @@ textarea:disabled {
::placeholder {
color: var(--form-placeholder);
}
input[type="range"] {
-webkit-appearance: none;
margin: 10px 0;
background: transparent;
}
input[type="range"]:focus {
outline: none;
}
input[type="range"]::-webkit-slider-runnable-track {
width: 100%;
height: 9.5px;
transition: 0.2s;
background: var(--background);
border-radius: 3px;
}
input[type="range"]::-webkit-slider-thumb {
box-shadow: 0px 1px 1px #000000, 0px 0px 1px #0d0d0d;
height: 20px;
width: 20px;
border-radius: 50%;
background: var(--border);
-webkit-appearance: none;
margin-top: -7px;
}
input[type="range"]:focus::-webkit-slider-runnable-track {
background: var(--background);
}
input[type="range"]::-moz-range-track {
width: 100%;
height: 9.5px;
transition: 0.2s;
background: var(--background);
border-radius: 3px;
}
input[type="range"]::-moz-range-thumb {
box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
height: 20px;
width: 20px;
border-radius: 50%;
background: var(--border);
}
input[type="range"]::-ms-track {
width: 100%;
height: 9.5px;
background: transparent;
border-color: transparent;
border-width: 16px 0;
color: transparent;
}
input[type="range"]::-ms-fill-lower {
background: var(--background);
border: 0.2px solid #010101;
border-radius: 3px;
box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
}
input[type="range"]::-ms-fill-upper {
background: var(--background);
border: 0.2px solid #010101;
border-radius: 3px;
box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
}
input[type="range"]::-ms-thumb {
box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
border: 1px solid #000000;
height: 20px;
width: 20px;
border-radius: 50%;
background: var(--border);
}
input[type="range"]:focus::-ms-fill-lower {
background: var(--background);
}
input[type="range"]:focus::-ms-fill-upper {
background: var(--background);
}