Skip to content

Commit caa586a

Browse files
committed
set width and height on brand logo so layout doesn't jump
1 parent de2a101 commit caa586a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/css/header.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,16 @@ body {
3535
padding-left: 1rem;
3636
}
3737

38-
.navbar-brand .navbar-item {
38+
.navbar-brand .logo {
39+
align-self: center;
3940
padding: 0;
41+
height: calc(0.6 * var(--navbar-height));
42+
width: calc(0.6 * var(--navbar-height));
4043
}
4144

4245
.navbar-brand img {
43-
height: calc(0.6 * var(--navbar-height));
46+
height: inherit;
47+
width: inherit;
4448
}
4549

4650
.navbar-start .navbar-item:first-child {

0 commit comments

Comments
 (0)