Skip to content

Commit 8fc660d

Browse files
committed
Make header and footer scale properly
1 parent 250551e commit 8fc660d

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

styles/tenfoot.scss

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,20 +50,20 @@ main {
5050

5151
// Header with logo
5252
.header-with-logo {
53-
padding: 1.5rem;
53+
padding: 1.5em;
5454

5555
.logo-title-container {
5656
display: flex;
5757
align-items: center;
58-
gap: 2rem;
58+
gap: 2em;
5959
}
6060

6161
.logo-wrapper {
6262
flex-shrink: 0;
6363

6464
.logo {
65-
width: 120px;
66-
height: 120px;
65+
width: 8em;
66+
height: 8em;
6767
filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.3));
6868
@include smooth-transition(transform);
6969

@@ -94,16 +94,17 @@ main {
9494
// Header
9595
header {
9696
height: auto !important;
97+
font-size: clamp(0.1rem, 2vh, 6rem);
9798

9899
h1 {
99-
font-size: 5rem;
100+
font-size: 5em;
100101
font-weight: 700;
101-
margin-bottom: 1rem;
102+
margin-bottom: 0.2em;
102103
@include text-shadow;
103104
}
104105

105106
.subtitle {
106-
font-size: 2.5rem;
107+
font-size: 2.5em;
107108
opacity: 0.8;
108109
font-weight: 300;
109110
}
@@ -177,12 +178,14 @@ header {
177178
}
178179

179180
// Footer
181+
footer {
182+
padding: 2rem;
183+
margin-top: auto;
184+
}
180185
.frit-fit {
181186
text-align: left;
182-
font-size: 2rem;
187+
font-size: 1.5em;
183188
opacity: 0.6;
184-
padding: 2rem;
185-
margin-top: auto;
186189
}
187190

188191
// Focus indicators for accessibility

0 commit comments

Comments
 (0)