-
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
Julia
committed
Oct 21, 2024
1 parent
bfc531d
commit 6791b9d
Showing
2 changed files
with
110 additions
and
2 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 +1,30 @@ | ||
/* add styles here */ | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
.stars { | ||
display: flex; | ||
} | ||
|
||
.stars__star { | ||
width: 16px; | ||
height: 16px; | ||
background-position: center; | ||
background-repeat: no-repeat; | ||
background-image: url('images/star.svg'); | ||
} | ||
|
||
.stars__star:not(:last-child) { | ||
margin-right: 4px; | ||
} | ||
|
||
.stars--0 :nth-child(0), | ||
.stars--1 :nth-child(1), | ||
.stars--2 :nth-child(-n + 2), | ||
.stars--3 :nth-child(-n + 3), | ||
.stars--4 :nth-child(-n + 4), | ||
.stars--5 :nth-child(-n + 5) { | ||
background-image: url(images/star-active.svg); | ||
} | ||
|