Skip to content

Commit e07bc77

Browse files
committed
Fix Navbar logo bug
1 parent 909fc5a commit e07bc77

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

nebula-components/components/_navbar.scss

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
height: 100%;
7171
max-width: $nb-site-wrap-width;
7272
margin: 0 auto;
73+
font-size: 0;
7374

7475
@include nb-respond-to($nb-nav-bp-key) {
7576
max-width: ($nb-site-wrap-width + ($nb-spacing-unit * 2));
@@ -81,9 +82,12 @@
8182
.#{$nb-namespace}c-navbar__logo {
8283
display: inline-block;
8384
height: 100%;
85+
vertical-align: middle;
8486
color: inherit;
8587
font-weight: bold;
8688
text-decoration: none;
89+
@include nb-base-font-size;
90+
line-height: inherit;
8791

8892
@include nb-respond-to($nb-nav-bp-key) {
8993
margin-right: ($nb-navbar-item-spacing * 1.5);
@@ -101,6 +105,9 @@
101105
}
102106

103107
.c-navbar__content-wrapper {
108+
@include nb-base-font-size;
109+
line-height: inherit;
110+
104111
@include nb-respond-to('max-#{$nb-nav-bp-key}') {
105112
max-width: $nb-navbar-collapsed-width;
106113
width: 100vw;
@@ -340,12 +347,14 @@ $burger-height: 3px;
340347

341348
.#{$nb-namespace}c-navbar__toggle {
342349
position: relative;
343-
display: block;
344-
float: left;
350+
display: inline-block;
345351
width: $nb-navbar-height-collapsed;
346352
height: 100%;
353+
vertical-align: middle;
347354
background-color: $nb-navbar-toggle-background;
348355

356+
@include nb-base-font-size;
357+
349358
@include nb-respond-to($nb-nav-bp-key) {
350359
display: none;
351360
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nebula-components",
3-
"version": "0.5.0",
3+
"version": "0.6.0",
44
"description": "Building on top of Nebula CSS a series of common components",
55
"repository": "https://github.com/rbrtsmith/nebula-components",
66
"scripts": {

0 commit comments

Comments
 (0)