Skip to content

Commit 32cafa0

Browse files
committed
Update mobile spacing for centered header and nav
1 parent 07e1a06 commit 32cafa0

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

src/styles/components/Navbar.module.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
margin-left: auto;
5858
display: flex;
5959
flex-direction: row;
60-
gap: var(--space-2xs);
60+
gap: var(--space-3xs);
6161

6262
@media (min-width: vars.$mobile) {
6363
gap: var(--space-s);
@@ -69,15 +69,15 @@
6969
font-size: var(--font_size_sm);
7070
color: var(--link_color_dark);
7171
text-decoration: none;
72-
padding: var(--space-2xs);
72+
padding: var(--space-3xs);
7373
line-height: 1;
7474

7575
transition:
7676
background-color var(--easing) var(--timing_sm),
7777
opacity var(--easing) var(--timing_sm);
7878

7979
&--hide_mobile {
80-
@media (max-width: var(--mobile)) {
80+
@media (max-width: vars.$mobile) {
8181
display: none;
8282
}
8383
}

src/styles/components/PageHeader.module.scss

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use 'styles/vars';
1+
@use "styles/vars";
22

33
.page_header {
44
display: flex;
@@ -18,5 +18,12 @@
1818

1919
&--center {
2020
align-items: center;
21+
22+
.page_header__title {
23+
text-align: center;
24+
}
25+
.page_header__subtitle {
26+
text-align: center;
27+
}
2128
}
2229
}

0 commit comments

Comments
 (0)