Skip to content

Commit 03addab

Browse files
committed
feat: better mobile responsiveness
1 parent afc0092 commit 03addab

2 files changed

Lines changed: 35 additions & 3 deletions

File tree

‎config.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ theme = "catppuccin-mocha"
1616
# Put all your custom variables here
1717
links = [
1818
{ url = "/downloads", label = "Downloads"},
19-
{ url = "https://docs.getapollo.dev", label = "Docs"},
20-
{ url = "https://docs.getapollo.dev/posts", label = "Blog"}
19+
{ url = "https://docs.getapollo.dev", label = "Documentation"},
20+
{ url = "https://docs.getapollo.dev/posts", label = "Blog"},
2121
]

‎sass/_header.scss‎

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,46 @@
3030
}
3131
}
3232

33+
@media (max-width: 424px) {
34+
header {
35+
nav {
36+
justify-content: center;
37+
flex-direction: column;
38+
text-align: center;
39+
40+
div.links, a#header-home-link {
41+
justify-content: center;
42+
}
43+
}
44+
}
45+
}
46+
47+
@media (min-width: 425px) {
48+
nav, div.links {
49+
justify-content: space-between;
50+
51+
div.links {
52+
justify-content: flex-end;
53+
}
54+
}
55+
}
56+
3357

3458
header {
3559
margin-block: 1em;
60+
61+
nav {
62+
gap: 8px;
63+
}
64+
3665
nav, div.links {
37-
justify-content: space-between;
3866
display: flex;
3967
vertical-align: middle;
4068

69+
div.links {
70+
flex-wrap: wrap;
71+
}
72+
4173
a#header-home-link {
4274
display: flex;
4375

0 commit comments

Comments
 (0)