Skip to content

Commit

Permalink
to check
Browse files Browse the repository at this point in the history
  • Loading branch information
AgaMarula committed Jun 18, 2024
1 parent 935fc1e commit b65407d
Show file tree
Hide file tree
Showing 7 changed files with 89 additions and 87 deletions.
8 changes: 8 additions & 0 deletions src/styles/blocks/card.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@use '../utils/variables' as *;


.card {
display: flex;
justify-content: center;
Expand Down Expand Up @@ -37,6 +38,13 @@
min-height: 14px;
}

&__reviews {
display: flex;
justify-content: space-between;
width: 100%;
margin-bottom: 24px;
}

&__reviews-raiting {
display: flex;
align-items: flex-end;
Expand Down
5 changes: 4 additions & 1 deletion src/styles/blocks/navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
line-height: 60px;
transition: 0.3s;

&:hover {
color: $blue;}

&.is-active {
color: $blue;

Expand All @@ -52,4 +55,4 @@
color: $blue;
}
}
}
}
22 changes: 0 additions & 22 deletions src/styles/blocks/reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,4 @@ body {
padding: 50px 40px;
}

@media (max-width: 487px) {
.main {
grid-template-columns: repeat(1, $column);
}
}

@media (min-width: 488px) and (max-width: 767px) {
.main {
grid-template-columns: repeat(2, $column);
}
}

@media (min-width: 768px) and (max-width: 1023px) {
.main {
grid-template-columns: repeat(3, $column);
}
}

@media (min-width: 1024px) {
.main {
grid-template-columns: repeat(4, $column);
}
}
22 changes: 7 additions & 15 deletions src/styles/blocks/stars.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
@use '../utils/variables' as *;

.card__reviews {
display: flex;
justify-content: space-between;
width: 100%;
margin-bottom: 24px;

.stars {
display: flex;
Expand All @@ -20,17 +15,14 @@
margin-right: 4px;
}

&__star:nth-child(-n + 4) {
&__star:nth-child(-n + 0),
&__star:nth-child(-n + 1),
&__star:nth-child(-n + 2),
&__star:nth-child(-n + 3),
&__star:nth-child(-n + 4),
&__star:nth-child(-n + 5) {
background-image: url('../images/star-active.svg');
}
}

.card__reviews-rating {
display: flex;
align-items: flex-end;
font-size: 10px;
font-weight: $font-normal;
line-height: 14px;
color: $dark-blue;
}
}

92 changes: 44 additions & 48 deletions src/styles/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/styles/main.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions src/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,30 @@
@use './blocks/reset.scss';
@use './blocks/navigation.scss';
@use './blocks/header.scss';
@use './utils/variables' as *;

@media (max-width: 487px) {
.main {
grid-template-columns: repeat(1, $column);
}
}

@media (min-width: 488px) and (max-width: 767px) {
.main {
grid-template-columns: repeat(2, $column);
}
}

@media (min-width: 768px) and (max-width: 1023px) {
.main {
grid-template-columns: repeat(3, $column);
}
}

@media (min-width: 1024px) {
.main {
grid-template-columns: repeat(4, $column);
}
}

/*# sourceMappingURL=index.css.map */

0 comments on commit b65407d

Please sign in to comment.