Skip to content

Commit

Permalink
split css file
Browse files Browse the repository at this point in the history
  • Loading branch information
AnOvramenko committed Jan 27, 2025
1 parent 00f5778 commit 894cebb
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 40 deletions.
40 changes: 0 additions & 40 deletions src/style.css

This file was deleted.

3 changes: 3 additions & 0 deletions src/styles/blocks/page.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
body {
margin: 0;
}
36 changes: 36 additions & 0 deletions src/styles/blocks/stars.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
.stars {
display: flex;
}

.stars__star {
height: 16px;
width: 16px;
margin-right: 4px;
background-repeat: no-repeat;
background-position: center;
background-image: url(../../images/star.svg);
}

.stars--0 > .stars__star {
background-image: url(../../images/star.svg);
}

.stars--1 > :nth-child(-n + 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--5 > .stars__star {
background-image: url(../../images/star-active.svg);
}
2 changes: 2 additions & 0 deletions src/styles/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import 'blocks/stars.css';
@import 'blocks/page.css';

0 comments on commit 894cebb

Please sign in to comment.