Skip to content

Commit

Permalink
improve syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mrholek authored Oct 16, 2024
1 parent 8b7fce8 commit 567424b
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions scss/_rating.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@
}

&:not(.disabled):not(.readonly) {
.rating-item {
.rating-item-label {
cursor: pointer;
}

&:hover {
transform: var(--#{$prefix}rating-item-scale-transform);
}
.rating-item:hover {
transform: var(--#{$prefix}rating-item-scale-transform);
}

.rating-item-icon,
.rating-item-label {
cursor: pointer;
}
}
}
Expand All @@ -49,7 +48,6 @@
font-size: var(--#{$prefix}rating-item-height);
line-height: 0;
color: var(--#{$prefix}rating-item-color);
cursor: default; // has cursor pointer only if the rating is not disabled or readonly (see above)

* {
pointer-events: none;
Expand Down Expand Up @@ -85,7 +83,6 @@
.rating-item-icon {
width: var(--#{$prefix}rating-item-height);
height: var(--#{$prefix}rating-item-height);
//cursor: pointer; // has the cursor of rating-item-label (parent)
background-color: var(--#{$prefix}rating-item-color);
mask: var(--#{$prefix}rating-item-icon) center / var(--#{$prefix}rating-item-height) no-repeat;
}
Expand Down

0 comments on commit 567424b

Please sign in to comment.