Skip to content

Commit

Permalink
переименовываю переменные для цветов
Browse files Browse the repository at this point in the history
  • Loading branch information
MaksimDoronin committed Dec 7, 2024
1 parent 941ae83 commit 5159328
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 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($body-color, $gray-100);
@include block-color($black, $gray-100);
}

.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($body-color, $light-color);
@include block-color($black, $light-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($body-color, $primary-lighter);
@include block-color($black, $primary-lighter);
}

.gift-card__desc {
@include font($primary-font, 16px, 20px);
color: $body-bg;
color: $white;
}
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: $body-color;
color: $black;
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($body-color, $light-color);
@include block-color($black, $light-color);
}

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

.programms__link {
@include font($secondary-font, 16px, 16px);
color: $body-color;
color: $black;
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($body-color, $primary-lighter);
@include block-color($black, $primary-lighter);
}

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

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

.promo__lead {
@include font($secondary-font, 14px, 14px);
color: $body-bg;
color: $white;
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: $body-color, $bg-color: $body-bg) {
@mixin block-color($color: $black, $bg-color: $white) {
color: $color;
background-color: $bg-color;
}

@mixin button {
@include font($secondary-font, 16px, 20px);
@include block-color($body-bg, $primary);
@include block-color($white, $primary);
text-transform: uppercase;
text-decoration: none;
}
Expand Down
4 changes: 2 additions & 2 deletions source/styles/common/variables.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* здесь используйте глобальные переменные */
/* цвета */
$body-color: #000000; // Передний план (цвет) по умолчанию, включая компоненты
$body-bg: #ffffff; // Фоновый цвет по умолчанию, включая компоненты
$black: #000000; // Цвет текста по умолчанию
$white: #ffffff; // Цвет фона по умолчанию
$secondary-color: #444444; // Более светлый цвет текста
$secondary-color-darker: #222222; // Более тёмный цвет текста
$emphasis-color: #111111; // Для более контрастного текста
Expand Down

0 comments on commit 5159328

Please sign in to comment.