Skip to content

Commit 150fc9b

Browse files
committed
Center the hero logo vertically
1 parent 031231a commit 150fc9b

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

src/pages/index.module.css

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@
1212
}
1313

1414
.heroOuter {
15+
display: flex;
16+
align-items: center;
1517
margin: 0 auto;
1618
max-width: 1100px;
1719
padding: 0 0.5rem;
20+
gap: 1.5rem;
1821
}
1922

2023
.heroProjectTagline {
@@ -25,9 +28,10 @@
2528

2629
.heroLogo {
2730
display: block;
28-
margin: 1em 0 auto 1.5rem;
29-
float: right;
31+
margin: 0;
32+
margin-left: auto;
3033
width: 300px;
34+
flex-shrink: 0;
3135
}
3236

3337
.heroTitleTextHtml {
@@ -128,9 +132,12 @@
128132
font-size: 2rem;
129133
}
130134

135+
.heroOuter {
136+
display: block;
137+
}
138+
131139
.heroLogo {
132140
width: 200px;
133-
float: none;
134141
margin: 0 auto;
135142
}
136143

0 commit comments

Comments
 (0)