Skip to content

Commit c7d7965

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

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

_includes/navbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
<nav class="navbar navbar-expand-lg navbar-dark">
3-
<div class="d-flex d-none d-sm-block d-md-none">
3+
<div class="d-flex d-none d-sm-block d-md-block d-lg-none">
44
<div class="navbar-header">
55
<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>
66
</div>

assets/css/main.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,17 @@ background-attachment: fixed !important;
143143
.brandShow {
144144
display:none;
145145
}
146+
}
147+
@media screen and (max-width: 990px){
148+
.navbar-brand
149+
{
150+
margin-right:0;
151+
}
152+
}
153+
@media screen and (min-width: 768px) and (max-width: 990px)
154+
{
155+
.navbar-header
156+
{
157+
margin-left: 15rem;
158+
}
146159
}

0 commit comments

Comments
 (0)