Skip to content

Commit 1a35565

Browse files
committed
Replace the negative margin hack with flexbox alignment
This properly centers the gravatar vertically within the nav-link without causing the element to be displaced, so the active state background will now display at the same height as other nav items.
1 parent 5d73fbc commit 1a35565

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/assets/stylesheets/modules/navbar.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.dropdown-toggle.gravatar-container {
2-
margin-bottom: -5px;
2+
display: flex;
3+
align-items: center;
34
}
45

56
.navbar-nav {

0 commit comments

Comments
 (0)