Skip to content

Commit

Permalink
Использую переменные цвета текста и фона по умолчанию
Browse files Browse the repository at this point in the history
  • Loading branch information
MaksimDoronin committed Dec 6, 2024
1 parent 9a9acc0 commit 3abf0b2
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 17 deletions.
2 changes: 1 addition & 1 deletion source/styles/blocks/example.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.example {
@include block-color($second-color, $tenth-color);
@include block-color($body-color, $tenth-color);
}

.example__container {
Expand Down
2 changes: 1 addition & 1 deletion source/styles/blocks/footer.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.footer {
@include block-color($second-color, $eleventh-color);
@include block-color($body-color, $eleventh-color);
}

.footer__container {
Expand Down
4 changes: 2 additions & 2 deletions source/styles/blocks/gift-card.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.gift-card {
@include block-color($second-color, $thirteenth-color-lighter);
@include block-color($body-color, $thirteenth-color-lighter);
}

.gift-card__desc {
@include font($primary-font, 16px, 20px);
color: $first-color;
color: $body-bg;
}
2 changes: 1 addition & 1 deletion source/styles/blocks/navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

.navigation__link {
@include font($secondary-font, 20px, 20px);
color: $second-color;
color: $body-color;
text-transform: uppercase;
text-decoration: none;
}
4 changes: 2 additions & 2 deletions source/styles/blocks/programms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}

.programms__card {
@include block-color($second-color, $eleventh-color);
@include block-color($body-color, $eleventh-color);
}

.programms__title {
Expand All @@ -26,7 +26,7 @@

.programms__link {
@include font($secondary-font, 16px, 16px);
color: $second-color;
color: $body-color;
text-transform: uppercase;
text-decoration: none;
}
6 changes: 3 additions & 3 deletions source/styles/blocks/promo.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.promo {
@include block-color($second-color, $thirteenth-color-lighter);
@include block-color($body-color, $thirteenth-color-lighter);
}

.promo__container {
Expand All @@ -8,11 +8,11 @@

.promo__title {
@include font($secondary-font, 36px, 36px);
color: $first-color;
color: $body-bg;
}

.promo__lead {
@include font($secondary-font, 14px, 14px);
color: $first-color;
color: $body-bg;
text-transform: uppercase;
}
4 changes: 2 additions & 2 deletions source/styles/common/mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
line-height: $line-height;
}

@mixin block-color($color: $second-color, $bg-color: $first-color) {
@mixin block-color($color: $body-color, $bg-color: $body-bg) {
color: $color;
background-color: $bg-color;
}

@mixin button {
@include font($secondary-font, 16px, 20px);
@include block-color($first-color, $thirteenth-color);
@include block-color($body-bg, $thirteenth-color);
text-transform: uppercase;
text-decoration: none;
}
Expand Down
7 changes: 2 additions & 5 deletions source/styles/common/variables.scss
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
/* здесь используйте глобальные переменные */
/* цвета */
$body-color: #000000;


$first-color: #ffffff;
$second-color: #000000;
$body-bg: #ffffff;
$third-color: #111111;
$fourth-color: #222222;
$fifth-color: #444444;
$sixth-color: #666666;
$seventh-color: #cdcdcd;
$eighth-color: #d3d3d3;
$fifteenth-color: #d9d9d9;
$ninth-color: #e7e7e7;
$tenth-color: #eaeaea;
$tenth-color-darker: #ebebeb;
Expand All @@ -20,4 +18,3 @@ $twelfth-color-lighter: rgba(94, 170, 47, 0.3);
$thirteenth-color: #68b738;
$thirteenth-color-lighter:rgba(104, 183, 56, 0.85);
$fourteenth-color: #ff8282;
$fifteenth-color: #d9d9d9;

0 comments on commit 3abf0b2

Please sign in to comment.