Skip to content

Commit

Permalink
slightly rearrange md3 range
Browse files Browse the repository at this point in the history
but it didnt fix ionic being dumb
  • Loading branch information
NyaomiDEV committed Aug 14, 2024
1 parent 381e12b commit 3e101a1
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/lib/theme/components/range.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,25 @@
--bar-height: 24px;
--bar-border-radius: 24px;
--knob-background: var(--ion-color-primary);
--knob-size: 64px;
--knob-size: 6px;
--knob-border-radius: 64px;
}

.md.md3 ion-range:active::part(pin) {
transform: translate3d(0px, -80px, 0px) scale(1);
}

.md.md3 ion-range::part(knob) {
width: 6px;
outline: 12px solid var(--ion-background-color);
transform: translateX(29px);
height: 64px;
border: 12px solid var(--ion-background-color);
transform: none;
inset-inline-start: 0;
top: -41px;
left: -9px;
}

.md.md3 ion-range:active::part(knob) {
transform: translateX(29px) scale(0.75, 1);
transform: scale(0.75, 1);
}

.md.md3 ion-range::part(knob)::before {
Expand Down

0 comments on commit 3e101a1

Please sign in to comment.