mirror of
https://github.com/picocss/pico.git
synced 2025-04-26 11:16:15 -04:00
style: range
This commit is contained in:
parent
7b84bad669
commit
e8b71d0998
4 changed files with 8 additions and 11 deletions
|
@ -237,7 +237,8 @@
|
|||
[type="datetime-local"],
|
||||
[type="month"],
|
||||
[type="time"],
|
||||
[type="week"]
|
||||
[type="week"],
|
||||
[type="range"]
|
||||
) {
|
||||
&[aria-invalid] {
|
||||
@if $enable-important {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
@use "../settings" as *;
|
||||
|
||||
// Config
|
||||
$height-track: 0.25rem;
|
||||
$height-track: 0.375rem;
|
||||
$height-thumb: 1.25rem;
|
||||
$border-thumb: 2px;
|
||||
|
||||
|
@ -72,15 +72,13 @@ $border-thumb: 2px;
|
|||
@include slider-thumb;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
&:active,
|
||||
&:focus-within {
|
||||
#{$✨}range-border-color: var(#{$✨}range-active-border-color);
|
||||
#{$✨}range-thumb-color: var(#{$✨}range-thumb-hover-color);
|
||||
#{$✨}range-thumb-color: var(#{$✨}range-thumb-active-color);
|
||||
}
|
||||
|
||||
&:active {
|
||||
#{$✨}range-thumb-color: var(#{$✨}range-thumb-active-color);
|
||||
|
||||
// Slider Thumb
|
||||
&::-webkit-slider-thumb {
|
||||
transform: scale(1.25);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue