Skip to content

Commit 31d9e9c

Browse files
committed
corrected navbar on small devices
1 parent a71271b commit 31d9e9c

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

_includes/navbar.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11

2-
<nav class="navbar navbar-expand-lg navbar-dark">
2+
<nav class="navbar navbar-expand-lg navbar-dark">
3+
<div class="d-flex d-none d-sm-block d-md-none">
4+
<div class="navbar-header">
5+
<a class="navbar-brand" href="/"><img src="/assets/img/logo/logo.png" style="height: 70px; width: 70px; background-color: white;" class="mr-3">Py Contributors</a>
6+
</div>
7+
</div>
38
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarColor03" aria-controls="navbarColor03" aria-expanded="false" aria-label="Toggle navigation">
49
<span class="navbar-toggler-icon"></span>
510
</button>
@@ -21,7 +26,7 @@
2126
{% endif %}
2227
</ul>
2328
</div>
24-
<div class="navbar-header">
29+
<div class="navbar-header brandShow">
2530
<a class="navbar-brand" href="/"><img src="/assets/img/logo/logo.png" style="height: 70px; width: 70px; background-color: white;" class="mr-3">Py Contributors</a>
2631
</div>
2732

assets/css/main.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,9 @@ background-attachment: fixed !important;
138138
height: 5px;
139139
margin: 0;
140140
flex-grow: 1;
141+
}
142+
@media screen and (max-width: 450px) {
143+
.brandShow {
144+
display:none;
145+
}
141146
}

0 commit comments

Comments
 (0)