Skip to content

Commit 57ac957

Browse files
committed
Enable navigation in mobile close #1
1 parent f7ceebe commit 57ac957

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

_includes/footer.html

+6
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@ <h2>{{ site.title }}</h2>
88
</div>
99
</div>
1010
</footer>
11+
12+
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
13+
14+
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
15+
16+
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script>

_sass/theme.scss

+12-3
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,19 @@ nav.navbar {
2020

2121
ul.navbar-nav {
2222
margin: 0;
23-
height: 48px;
2423
float: left;
2524
width: 100%;
2625
}
2726

2827
ul.navbar-nav li {
2928
padding: 0;
30-
margin: 0;
3129
width: 150px;
30+
margin: 0;
3231
float: left;
3332
}
3433

3534
ul.navbar-nav li a {
36-
width: 150px;
35+
width: 100%;
3736
text-align: center;
3837
color: #FFFFFF !important;
3938
font-weight: bold;
@@ -86,3 +85,13 @@ article.post, div.home {
8685
a.no-underline {
8786
text-decoration: none;
8887
}
88+
89+
.card {
90+
margin-bottom: 10px;
91+
}
92+
93+
@media (max-width: 768px) {
94+
ul.navbar-nav li {
95+
width: auto;
96+
}
97+
}

0 commit comments

Comments
 (0)