-
Notifications
You must be signed in to change notification settings - Fork 519
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7b36608
commit 5b720ad
Showing
1 changed file
with
40 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* rating.css */ | ||
|
||
/* Style for the rating container */ | ||
.rating-container { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
margin: 10px 0; | ||
} | ||
|
||
/* Style for each star in the rating */ | ||
.rating-star { | ||
font-size: 24px; | ||
color: #ffd700; /* Gold color for stars */ | ||
margin-right: 5px; | ||
cursor: pointer; | ||
transition: color 0.2s; | ||
} | ||
|
||
/* Style for filled star */ | ||
.rating-star.filled { | ||
color: #ffd700; | ||
} | ||
|
||
/* Style for unfilled star */ | ||
.rating-star.unfilled { | ||
color: #e0e0e0; /* Light grey for unfilled stars */ | ||
} | ||
|
||
/* Hover effect for stars */ | ||
.rating-star:hover, | ||
.rating-star:hover ~ .rating-star { | ||
color: #ffcc00; | ||
} | ||
|
||
/* Disabled state for rating */ | ||
.rating-container.disabled .rating-star { | ||
cursor: not-allowed; | ||
opacity: 0.6; | ||
} |