Skip to content

Commit f6a6a3b

Browse files
committed
feat(header): add responsiveness
1 parent d62ed97 commit f6a6a3b

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

packages/escapist-marginalia/src/components/header/header.module.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,24 @@
5252
--button-bg: hsl(from var(--button-bg-accent-fill) h s l / 30%);
5353
}
5454
}
55+
56+
@media screen and (width <= 770px) {
57+
.header {
58+
display: grid;
59+
grid-template: repeat(2, min-content) / 1fr;
60+
width: 100%;
61+
grid-column: 1 / span 3;
62+
}
63+
64+
.logo {
65+
margin-inline-start: 2rem;
66+
}
67+
68+
.navigation {
69+
overflow-x: auto;
70+
}
71+
72+
.items {
73+
margin-inline: 2rem;
74+
}
75+
}

packages/escapist-marginalia/src/layouts/work-in-progress/work-in-progress.module.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@
66
place-items: center;
77
justify-self: center;
88
margin-block-start: 7.2rem;
9+
10+
& h2 {
11+
text-align: center;
12+
}
913
}

0 commit comments

Comments
 (0)