Skip to content

Commit

Permalink
Create rating.css
Browse files Browse the repository at this point in the history
  • Loading branch information
AKSHITHA-CHILUKA authored Jul 24, 2024
1 parent 7b36608 commit 5b720ad
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions css/rating.css
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;
}

0 comments on commit 5b720ad

Please sign in to comment.