Skip to content

Commit 70f2f6f

Browse files
committed
Header: Center header logo horizontally regardless of flow
1 parent af1313f commit 70f2f6f

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
@@ -510,6 +510,14 @@ ol li:last-child {
510510
align-items: center;
511511
width: 100%;
512512
height: 64px;
513+
position: relative;
514+
515+
/* This is fine unless we actually want it to break document flow at super tiny viewports */
516+
.header__logo {
517+
position: absolute;
518+
left: 50%;
519+
transform: translateX(-50%);
520+
}
513521

514522
.header__img {
515523
height: 2.5rem;

0 commit comments

Comments
 (0)