Skip to content

Commit

Permalink
edit problem
Browse files Browse the repository at this point in the history
  • Loading branch information
HannaMatviienko committed Aug 17, 2023
1 parent e273ccd commit c8abd2e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,42 +8,42 @@
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="stars stars--1">
<div class="stars stars--0">
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
</div>
<div class="stars stars--2">
<div class="stars stars--1">
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
</div>
<div class="stars stars--3">
<div class="stars stars--2">
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
</div>
<div class="stars stars--4">
<div class="stars stars--3">
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
</div>
<div class="stars stars--5">
<div class="stars stars--4">
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
</div>
<div class="stars stars--6">
<div class="stars stars--5">
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
Expand Down
10 changes: 5 additions & 5 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ body {
margin-right: 4px;
}

.stars--2 :nth-child(1),
.stars--3 :nth-child(-n + 2),
.stars--4 :nth-child(-n + 3),
.stars--5 :nth-child(-n + 4),
.stars--6 :nth-child(-n + 5) {
.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 c8abd2e

Please sign in to comment.