mirror of
https://github.com/picocss/pico.git
synced 2025-04-24 18:26:14 -04:00
Improve scss: [type=range]
This commit is contained in:
parent
10ae20608a
commit
3c58a9c44d
7 changed files with 17 additions and 67 deletions
|
@ -1447,9 +1447,6 @@ label > input, label > select, label > textarea {
|
|||
-ms-transition: background-color var(--transition), box-shadow var(--transition);
|
||||
transition: background-color var(--transition), box-shadow var(--transition);
|
||||
}
|
||||
[type=range]::-ms-fill-lower {
|
||||
background-color: var(--border-radius);
|
||||
}
|
||||
[type=range]::-webkit-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
width: 1.25rem;
|
||||
|
|
2
css/pico.classless.min.css
vendored
2
css/pico.classless.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -1624,9 +1624,6 @@ label > input, label > select, label > textarea {
|
|||
-ms-transition: background-color var(--transition), box-shadow var(--transition);
|
||||
transition: background-color var(--transition), box-shadow var(--transition);
|
||||
}
|
||||
[type=range]::-ms-fill-lower {
|
||||
background-color: var(--border-radius);
|
||||
}
|
||||
[type=range]::-webkit-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
width: 1.25rem;
|
||||
|
|
|
@ -1417,9 +1417,6 @@ label > input, label > select, label > textarea {
|
|||
-ms-transition: background-color var(--transition), box-shadow var(--transition);
|
||||
transition: background-color var(--transition), box-shadow var(--transition);
|
||||
}
|
||||
[type=range]::-ms-fill-lower {
|
||||
background-color: var(--border-radius);
|
||||
}
|
||||
[type=range]::-webkit-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
width: 1.25rem;
|
||||
|
|
2
css/pico.fluid.classless.min.css
vendored
2
css/pico.fluid.classless.min.css
vendored
File diff suppressed because one or more lines are too long
2
css/pico.min.css
vendored
2
css/pico.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -10,7 +10,7 @@
|
|||
@mixin color-wrapper {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
|
||||
&::-webkit-color-swatch-wrapper {
|
||||
@include color-wrapper;
|
||||
}
|
||||
|
@ -133,7 +133,7 @@
|
|||
background: transparent;
|
||||
|
||||
// Slider Track
|
||||
&::-webkit-slider-runnable-track {
|
||||
@mixin slider-track {
|
||||
width: 100%;
|
||||
height: $height-track;
|
||||
border-radius: var(--border-radius);
|
||||
|
@ -146,38 +146,20 @@
|
|||
}
|
||||
}
|
||||
|
||||
&::-webkit-slider-runnable-track {
|
||||
@include slider-track;
|
||||
}
|
||||
|
||||
&::-moz-range-track {
|
||||
width: 100%;
|
||||
height:$height-track;
|
||||
border-radius: var(--border-radius);
|
||||
background-color: var(--range-border-color);
|
||||
|
||||
@if $enable-transitions {
|
||||
transition:
|
||||
background-color var(--transition),
|
||||
box-shadow var(--transition);
|
||||
}
|
||||
@include slider-track;
|
||||
}
|
||||
|
||||
&::-ms-track {
|
||||
width: 100%;
|
||||
height: $height-track;
|
||||
border-radius: var(--border-radius);
|
||||
background-color: var(--range-border-color);
|
||||
|
||||
@if $enable-transitions {
|
||||
transition:
|
||||
background-color var(--transition),
|
||||
box-shadow var(--transition);
|
||||
}
|
||||
}
|
||||
|
||||
&::-ms-fill-lower {
|
||||
background-color: var(--border-radius);
|
||||
@include slider-track;
|
||||
}
|
||||
|
||||
// Slider Thumb
|
||||
&::-webkit-slider-thumb {
|
||||
@mixin slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
width: $height-thumb;
|
||||
height: $height-thumb;
|
||||
|
@ -193,39 +175,16 @@
|
|||
transform var(--transition);
|
||||
}
|
||||
}
|
||||
&::-webkit-slider-thumb {
|
||||
@include slider-thumb;
|
||||
}
|
||||
|
||||
&::-moz-range-thumb {
|
||||
-webkit-appearance: none;
|
||||
width: $height-thumb;
|
||||
height: $height-thumb;
|
||||
margin-top: #{(-($height-thumb * 0.5) + ($height-track * 0.5))};
|
||||
border: $border-thumb solid var(--range-thumb-border-color);
|
||||
border-radius: 50%;
|
||||
background-color: var(--range-thumb-color);
|
||||
cursor: pointer;
|
||||
|
||||
@if $enable-transitions {
|
||||
transition:
|
||||
background-color var(--transition),
|
||||
transform var(--transition);
|
||||
}
|
||||
@include slider-thumb;
|
||||
}
|
||||
|
||||
&::-ms-thumb {
|
||||
-webkit-appearance: none;
|
||||
width: $height-thumb;
|
||||
height: $height-thumb;
|
||||
margin-top: #{(-($height-thumb * 0.5) + ($height-track * 0.5))};
|
||||
border: $border-thumb solid var(--range-thumb-border-color);
|
||||
border-radius: 50%;
|
||||
background-color: var(--range-thumb-color);
|
||||
cursor: pointer;
|
||||
|
||||
@if $enable-transitions {
|
||||
transition:
|
||||
background-color var(--transition),
|
||||
transform var(--transition);
|
||||
}
|
||||
@include slider-thumb;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue