Skip to content

Commit

Permalink
Remove (most of) styling of range inputs (foundryvtt#14852)
Browse files Browse the repository at this point in the history
Covered by core now with the exception of cursor change
  • Loading branch information
stwlam authored and CarlosFdez committed May 29, 2024
1 parent d827c63 commit 72def9e
Showing 1 changed file with 11 additions and 25 deletions.
36 changes: 11 additions & 25 deletions src/styles/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -87,36 +87,22 @@

// Disabled range input
input[type="range"]:disabled {
&::-webkit-slider-runnable-track {
background: rgba(0, 0, 0, 0.1);
border: rgba(0, 0, 0, 0.1);
box-shadow:
1px 1px 1px rgba(0, 0, 0, 0.1),
0px 0px 1px rgba(0, 0, 0, 0.1);
&::-webkit-slider-runnable-track,
&::-webkit-slider-thumb {
cursor: default;
}

&::-moz-range-thumb,
&::-moz-range-track {
background: rgba(0, 0, 0, 0.1);
border: rgba(0, 0, 0, 0.1);
box-shadow:
1px 1px 1px rgba(0, 0, 0, 0.1),
0px 0px 1px rgba(0, 0, 0, 0.1);
cursor: default;
}
&::-webkit-slider-thumb {
background: var(--color-text-light-1);
border: var(--color-text-light-1);
box-shadow:
1px 1px 1px var(--color-text-light-1),
0px 0px 1px var(--color-text-light-1);
cursor: default;
}
&::-moz-range-thumb {
background: var(--color-text-light-1);
border: var(--color-text-light-1);
box-shadow:
1px 1px 1px var(--color-text-light-1),
0px 0px 1px var(--color-text-light-1);
}

input[type="range"]:disabled {
&::-webkit-slider-runnable-track,
&::-webkit-slider-thumb,
&::-moz-range-thumb,
&::-moz-range-track {
cursor: default;
}
}

0 comments on commit 72def9e

Please sign in to comment.