Skip to content

Commit 76aa70c

Browse files
author
Clemens Vasters
committed
Align logo and title to same vertical height on responsive views
1 parent fdcdf5e commit 76aa70c

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

assets/css/style.scss

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -155,23 +155,24 @@ body {
155155
margin-bottom: 20px;
156156
display: flex;
157157
flex-wrap: wrap;
158-
align-items: flex-start;
159-
gap: 10px 15px;
158+
align-items: center; /* Vertically center logo and title */
159+
gap: 10px 12px;
160160
}
161161

162-
/* Show smaller logo on left side of header - use order to put it first */
162+
/* Show smaller logo matching title height */
163163
.wrapper header img {
164164
display: block !important;
165-
width: 60px !important;
166-
height: auto !important;
167-
max-width: 60px !important;
165+
width: auto !important;
166+
height: 28px !important; /* Match the visual height of the title */
167+
max-height: 28px !important;
168168
flex-shrink: 0;
169169
order: -1; /* Put image before h1 */
170170
}
171171

172172
/* Header title next to logo */
173173
.wrapper header h1 {
174174
font-size: 22px;
175+
line-height: 1;
175176
margin-bottom: 0;
176177
margin-top: 0;
177178
display: flex;
@@ -281,14 +282,16 @@ body {
281282
padding: 0 10px !important;
282283
}
283284

284-
/* Smaller logo on mobile */
285+
/* Smaller logo on mobile matching smaller title */
285286
.wrapper header img {
286-
width: 50px !important;
287-
max-width: 50px !important;
287+
height: 24px !important; /* Match the smaller title height */
288+
max-height: 24px !important;
289+
width: auto !important;
288290
}
289291

290292
.wrapper header h1 {
291293
font-size: 20px;
294+
line-height: 1;
292295
}
293296
}
294297

0 commit comments

Comments
 (0)