Skip to content

Commit fff84c5

Browse files
Merge pull request #454 from jarrodmillman/simplify-navbar
Simplify navbar
2 parents ba60250 + 868684d commit fff84c5

File tree

4 files changed

+19
-24
lines changed

4 files changed

+19
-24
lines changed

assets/theme-css/bulma.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ a.box:active {
184184
display: none !important;
185185
}
186186
}
187-
.navbar-link:not(.is-arrowless)::after {
187+
.navbar-link::after {
188188
border: 3px solid transparent;
189189
border-radius: 2px;
190190
border-right: 0;
@@ -277,7 +277,7 @@ a.box:active {
277277
.navbar-item.has-dropdown {
278278
padding: 0;
279279
}
280-
.navbar-link:not(.is-arrowless) {
280+
.navbar-link {
281281
padding-right: 2.5em;
282282
}
283283
.navbar-dropdown {

assets/theme-css/navbar.css

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,37 +38,34 @@ nav,
3838
font-weight: 700;
3939
}
4040

41-
.navbar.is-fresh {
41+
.navbar {
42+
box-shadow: none !important;
4243
position: sticky;
4344
top: 0;
4445
min-height: 3.8rem;
4546
transition: all 0.3s;
4647
z-index: 99;
4748
}
4849

49-
.navbar.is-fresh .container {
50+
.navbar .container {
5051
min-height: 4rem;
5152
}
5253

53-
.navbar.is-fresh.no-shadow {
54-
box-shadow: none !important;
55-
}
56-
57-
.navbar.is-fresh .navbar-burger {
54+
.navbar-burger {
5855
width: 4rem;
5956
height: 4rem;
6057
}
6158

62-
.navbar.is-fresh .navbar-brand {
59+
.navbar-brand {
6360
min-height: 4rem;
6461
}
6562

66-
.navbar.is-fresh .navbar-brand img {
63+
.navbar-brand img {
6764
max-height: 36px !important;
6865
height: 36px;
6966
}
7067

71-
.navbar.is-fresh .navbar-end {
68+
.navbar-end {
7269
align-items: center;
7370
}
7471

@@ -83,18 +80,18 @@ a.navbar-item:hover {
8380
}
8481

8582
/* Dropdown menu item text */
86-
.navbar.is-fresh .navbar-item.has-dropdown .navbar-link {
83+
.navbar-item.has-dropdown .navbar-link {
8784
color: #999;
8885
text-decoration: none;
8986
}
9087

9188
/* Reduce space between dropdown item and its dropdown menu */
92-
.navbar.is-fresh .navbar-item.has-dropdown {
89+
.navbar-item.has-dropdown {
9390
padding: 10px 0;
9491
}
9592

9693
/* Down arrow next to dropdown menu */
97-
.navbar.is-fresh .navbar-item.has-dropdown .navbar-link:after {
94+
.navbar-item.has-dropdown .navbar-link:after {
9895
top: 55%;
9996
height: 0.5em;
10097
width: 0.5em;
@@ -103,23 +100,23 @@ a.navbar-item:hover {
103100
}
104101

105102
/* Language dropdown box */
106-
.navbar.is-fresh .navbar-item.has-dropdown .navbar-dropdown {
103+
.navbar-item.has-dropdown .navbar-dropdown {
107104
top: 3.4rem;
108105
min-width: 220px;
109106
margin-top: 4px;
110107
}
111108

112109
/* Dropdown menu items */
113-
.navbar.is-fresh .navbar-item.has-dropdown .navbar-dropdown .navbar-item {
110+
.navbar-item.has-dropdown .navbar-dropdown .navbar-item {
114111
padding: 10px 20px;
115112
}
116113

117114
/* Dropdown menu hover */
118-
.navbar.is-fresh .navbar-item.has-dropdown:hover .navbar-link {
115+
.navbar-item.has-dropdown:hover .navbar-link {
119116
color: var(--pst-color-link-hover);
120117
}
121118

122119
/* Dropdown menu item hover */
123-
.navbar.is-fresh .navbar-item.has-dropdown .navbar-dropdown .navbar-item:hover {
120+
.navbar-item.has-dropdown .navbar-dropdown .navbar-item:hover {
124121
color: var(--pst-color-link-hover);
125122
}

assets/theme-css/styles.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ a > code {
4242
flex-direction: column;
4343
justify-content: space-between;
4444
}
45-
.hero .navbar {
46-
background: 0 0;
47-
}
45+
4846
.hero ul {
4947
border-bottom: none;
5048
}

layouts/partials/navbar.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{- $navbar := .Site.Params.navbar }}
33
{{- $navbarLogo := .Site.Params.navbarlogo }}
44
{{- $navbarLogoShow := .Site.Params.navbarlogoshow }}
5-
<nav id="nav" class="navbar is-fresh no-shadow" role="navigation" aria-label="main navigation">
5+
<nav id="nav" class="navbar" role="navigation" aria-label="main navigation">
66
<div class="container is-max-widescreen">
77
<div class="navbar-brand">
88
{{ if or (not .IsHome) ($navbarLogoShow) }}
@@ -21,7 +21,7 @@
2121
</a>
2222
</div>
2323

24-
<div id="navbar-menu" class="navbar-menu is-static">
24+
<div id="navbar-menu" class="navbar-menu">
2525

2626
<div class="navbar-end">
2727
{{- range $navbar }}

0 commit comments

Comments
 (0)