Skip to content

Commit af2ea8f

Browse files
Modified index html (moved navigation overlay div to the <nav>) to allow using navigation in jekyll without the full screen image on subpages.
Modified z-index for the navigation close button to be visible over the navigation overlay. Added _site/ and .jekyll-metadata to gitignore.
1 parent a1d493d commit af2ea8f

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,5 @@ venv.bak/
109109
.mypy_cache/
110110
.idea/
111111
pandas/bower_components/
112-
_site/
112+
_site/
113+
/.jekyll-metadata

index.html

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@
3434
<i class="navigation__button-close fas fa-times"></i>
3535
</a>
3636
</div>
37+
<div class="navigation__overlay">
38+
<div class="navigation__overlay-content">
39+
<a class="navigation__link" href="#">About</a>
40+
<a class="navigation__link" href="#">Getting Started</a>
41+
<a class="navigation__link" href="#">Projects</a>
42+
<a class="navigation__link" href="#">Contact</a>
43+
</div>
44+
</div>
3745
</nav>
3846
<!--Title image will be set to display:none and used as a background image on the div below-->
3947
<div class="navigation__content container-fluid" data-image-type="responsive">
@@ -61,15 +69,6 @@
6169
<div class="col-md-12">
6270
<h1 class="navigation__title">Python Sprints</h1>
6371
<h2 class="navigation__subtitle"><em>The World Is Waiting For Your Code</em></h2>
64-
65-
<div class="navigation__overlay">
66-
<div class="navigation__overlay-content">
67-
<a class="navigation__link" href="#">About</a>
68-
<a class="navigation__link" href="#">Getting Started</a>
69-
<a class="navigation__link" href="#">Projects</a>
70-
<a class="navigation__link" href="#">Contact</a>
71-
</div>
72-
</div>
7372
</div>
7473
</div>
7574
</div>

static/css/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@
210210

211211
.navigation__button-close-container {
212212
display: none;
213+
z-index: 1010;
213214
}
214215

215216
.navigation__button-close {

0 commit comments

Comments
 (0)