-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
b13e715
commit 9365a0f
Showing
3 changed files
with
85 additions
and
3 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
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,36 @@ | ||
body { | ||
margin: 0; | ||
} | ||
|
||
.stars { | ||
display: flex; | ||
} | ||
|
||
.stars__star { | ||
height: 16px; | ||
width: 16px; | ||
background-image: url(/images/star.svg); | ||
background-repeat: no-repeat; | ||
background-position: center; | ||
margin-right: 4px; | ||
} | ||
|
||
.stars--1 .stars__star:nth-child(-n+1) { | ||
background-image: url(/images/star-active.svg); | ||
} | ||
|
||
.stars--2 .stars__star:nth-child(-n+2) { | ||
background-image: url(/images/star-active.svg); | ||
} | ||
|
||
.stars--3 .stars__star:nth-child(-n+3) { | ||
background-image: url(/images/star-active.svg); | ||
} | ||
|
||
.stars--4 .stars__star:nth-child(-n+4) { | ||
background-image: url(/images/star-active.svg); | ||
} | ||
|
||
.stars--5 .stars__star:nth-child(-n+5) { | ||
background-image: url(/images/star-active.svg); | ||
} |