Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Use media for Slider
Browse files Browse the repository at this point in the history
  • Loading branch information
Mysterious-Dev committed Nov 9, 2023
1 parent 418de2b commit ae5139f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions lib/components/base/Slider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ const onInput = (value) => {

<style lang="scss" scoped>
.root-container {
--transition-speed: 0.2s;
@media (prefers-reduced-motion) {
--transition-speed: 0s;
}
display: flex;
flex-direction: row;
align-items: center;
Expand Down Expand Up @@ -176,7 +182,7 @@ const onInput = (value) => {
background: var(--color-brand);
cursor: pointer;
border-radius: 50%;
transition: 0.2s;
transition: var(--transition-speed);
}
.slider-component .slide-container .slider::-moz-range-thumb {
Expand All @@ -186,19 +192,19 @@ const onInput = (value) => {
background: var(--color-brand);
cursor: pointer;
border-radius: 50%;
transition: 0.2s;
transition: var(--transition-speed);
}
.slider-component .slide-container .slider:hover::-webkit-slider-thumb:not(.disabled) {
width: 1rem;
height: 1rem;
transition: 0.2s;
transition: var(--transition-speed);
}
.slider-component .slide-container .slider:hover::-moz-range-thumb:not(.disabled) {
width: 1rem;
height: 1rem;
transition: 0.2s;
transition: var(--transition-speed);
}
.slider-component .slide-container .snap-points-wrapper {
Expand Down

0 comments on commit ae5139f

Please sign in to comment.