Skip to content

Commit 15fe98b

Browse files
committed
Center navbar logo in mobile view
1 parent b933c27 commit 15fe98b

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

src/css/custom.css

+22-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ p {
235235
}
236236

237237
.navbar__logo {
238-
margin-right: .75rem;
238+
margin-right: 0.75rem;
239239
}
240240

241241
@media (min-width: 997px) {
@@ -247,6 +247,27 @@ p {
247247
}
248248
}
249249

250+
@media (max-width: 996px) {
251+
.navbar__inner .navbar__brand {
252+
position: relative;
253+
margin: auto;
254+
left: -1rem;
255+
}
256+
}
257+
258+
.navbar__toggle svg {
259+
display: none;
260+
}
261+
262+
.navbar__toggle::after {
263+
content: '';
264+
width: 24px;
265+
height: 24px;
266+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M21 6H3M15 12H3M17 18H3'/%3E%3C/svg%3E")
267+
no-repeat;
268+
background-color: currentColor;
269+
}
270+
250271
.navbar-social-link::before {
251272
content: '';
252273
display: flex;

0 commit comments

Comments
 (0)