Skip to content

Commit 57c1ae0

Browse files
OaphiArtOfCode-
authored andcommitted
fixed header links melting together on very narrow screens
1 parent 9f8e7d3 commit 57c1ae0

File tree

5 files changed

+32
-2
lines changed

5 files changed

+32
-2
lines changed

dist/assets/css/main.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/assets/css/main.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/styles/_responsive.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1+
$screensize-narrow: 500px;
12
$screensize-phone: 600px;
23
$screensize-tablet: 900px;
34
$screensize-desktop: 1200px;
45
$screensize-large-desktop: 1800px;
56

7+
@mixin for-narrow-only {
8+
@media (width <= 499px) {
9+
@content;
10+
}
11+
}
12+
613
@mixin for-phone-only {
714
@media (width <= 599px) {
815
@content;

src/styles/sections/header.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
padding-top: variables.$gutter;
88
position: absolute;
99

10+
@include responsive.for-narrow-only {
11+
position: static;
12+
}
13+
1014
.links,
1115
.logo {
1216
position: relative;
@@ -29,6 +33,17 @@
2933
margin-left: 2%;
3034
justify-content: space-evenly;
3135

36+
@include responsive.for-narrow-only {
37+
display: inline-flex;
38+
flex-wrap: wrap;
39+
column-gap: 0.5em;
40+
row-gap: 1em;
41+
42+
a {
43+
margin-left: 0;
44+
}
45+
}
46+
3247
@include responsive.for-image-adjustments {
3348
width: 100%;
3449
text-align: center;

src/styles/sections/hero.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,16 @@
3939
padding: 80px 0 20px 0;
4040
}
4141

42+
@include responsive.for-narrow-only {
43+
padding-top: 1em;
44+
}
45+
4246
h1 {
4347
margin-top: 30%;
48+
49+
@include responsive.for-narrow-only {
50+
margin-top: 0;
51+
}
4452
}
4553

4654
button {

0 commit comments

Comments
 (0)