Skip to content

Commit

Permalink
changed css
Browse files Browse the repository at this point in the history
  • Loading branch information
Metra25 committed Aug 1, 2023
1 parent 1ed6ff2 commit eb61de2
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ body {
}

.stars__star {
display: flex;
background-image: url(images/star.svg);
background-repeat: no-repeat;
background-position: center;
Expand All @@ -19,22 +18,10 @@ body {
margin-right: 4px;
}

.stars--1 :nth-child(1) {
background-image: url(images/star-active.svg);
}

.stars--2 :nth-child(-n + 2) {
background-image: url(images/star-active.svg);
}

.stars--3 :nth-child(-n + 3) {
background-image: url(images/star-active.svg);
}

.stars--4 :nth-child(-n + 4) {
background-image: url(images/star-active.svg);
}

.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);
}

0 comments on commit eb61de2

Please sign in to comment.