Skip to content

Commit 675cece

Browse files
committed
Header: Center header logo horizontally regardless of flow
1 parent 548d47b commit 675cece

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

assets/css/v2/style.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,14 @@ ol li:last-child {
517517
align-items: center;
518518
width: 100%;
519519
height: 64px;
520+
position: relative;
521+
522+
/* This is fine unless we actually want it to break document flow at super tiny viewports */
523+
.header__logo {
524+
position: absolute;
525+
left: 50%;
526+
transform: translateX(-50%);
527+
}
520528

521529
.header__img {
522530
height: 2.5rem;

0 commit comments

Comments
 (0)