Skip to content

Commit

Permalink
Рефакторинг кода меню навигации
Browse files Browse the repository at this point in the history
Изменил размер шрифта меню навигации в мобильном режиме
  • Loading branch information
encrypticus committed Sep 11, 2019
1 parent ddc5994 commit 79b6f1a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions src/components/main-nav/main-nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@

&_level-2:not(:last-child) {
border-bottom: 1px solid $gray--light;

@include for-tablet-landscape-down() {
border-color: $gray;
}
}
}

Expand All @@ -111,6 +115,15 @@
cursor: pointer;
transition: background-color .3s, color .3s;

@include for-tablet-landscape-down() {
font-size: pxToRem(16);
}

@include for-phone-only() {
font-size: pxToRem(23);
line-height: pxToRem(30);
}

padding: {
top: pxToRem(8);
right: pxToRem(27);
Expand Down Expand Up @@ -141,6 +154,10 @@
@include for-tablet-landscape-down() {
justify-content: center;
}

@include for-phone-only() {
line-height: pxToRem(50);
}
}
}
}
2 changes: 1 addition & 1 deletion src/sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
$white: #fff;
$gray--lighten: #e8ebf1;
$gray--light: #e7e7e7;
$gray: #dfe1e5;
$gray: #c6c8cc;
$black: #000;

$color-main: #363636;
Expand Down

0 comments on commit 79b6f1a

Please sign in to comment.