Skip to content

Commit 8cf4e1f

Browse files
Fix bulma burger issues (#425)
1 parent c51780a commit 8cf4e1f

2 files changed

Lines changed: 18 additions & 9 deletions

File tree

assets/theme-css/bulma.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ a.box:active {
200200
.navbar-burger span {
201201
background-color: currentColor;
202202
display: block;
203-
height: 1px;
203+
height: 2px;
204204
left: calc(50% - 8px);
205205
position: absolute;
206206
transform-origin: center;
@@ -218,6 +218,12 @@ a.box:active {
218218
.navbar-burger span:nth-child(3) {
219219
top: calc(50% + 4px);
220220
}
221+
.navbar-burger:hover {
222+
background-color: rgba(0, 0, 0, 0.05);
223+
}
224+
.navbar-burger.is-active span:first-child {
225+
transform: translateY(5px) rotate(45deg);
226+
}
221227
.navbar-burger.is-active span:nth-child(2) {
222228
opacity: 0;
223229
}

assets/theme-css/styles.css

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,17 @@ nav,
212212
.navbar-item {
213213
color: var(--pst-color-text-muted);
214214
}
215-
.navbar-menu.is-active {
216-
background: var(--pst-color-text-muted);
217-
}
218-
.navbar-menu.is-active .navbar-item {
219-
color: var(--pst-color-background);
220-
}
221-
.navbar-menu.is-active .navbar-item:hover {
222-
color: var(--pst-color-link-hover);
215+
216+
@media screen and (max-width: 1023px) {
217+
.navbar-menu.is-active {
218+
background: var(--pst-color-text-muted);
219+
}
220+
.navbar-menu.is-active .navbar-item {
221+
color: var(--pst-color-background);
222+
}
223+
.navbar-menu.is-active .navbar-item:hover {
224+
color: var(--pst-color-link-hover);
225+
}
223226
}
224227

225228
a.navbar-item,

0 commit comments

Comments
 (0)