-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implementation on interactive pricing challenge
- Loading branch information
Showing
3 changed files
with
177 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,37 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
@layer components { | ||
#price-slider::-webkit-slider-thumb { | ||
-webkit-appearance: none; | ||
appearance: none; | ||
border-radius: 50%; | ||
width: 45px; | ||
height: 45px; | ||
background: #11d8c5; | ||
background-image: url('./images/icon-slider.svg'); | ||
filter: drop-shadow(3px 20px 24px #11d8c5); | ||
background-repeat: no-repeat; | ||
background-position: center; | ||
cursor: pointer; | ||
} | ||
|
||
/* Pseudo-class variant for 'active' state when slider is grabbed */ | ||
#price-slider::-webkit-slider-thumb:active { | ||
background-color: #0f9e8d; | ||
cursor: grab; | ||
} | ||
|
||
#price-slider::-moz-range-thumb { | ||
width: 25px; | ||
height: 25px; | ||
cursor: pointer; | ||
} | ||
|
||
/* Pseudo-class variant for 'active' state when slider is grabbed */ | ||
#price-slider::-moz-range-thumb:active { | ||
background-color: #f6ad55; | ||
cursor: grab; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters