File tree Expand file tree Collapse file tree 3 files changed +25
-15
lines changed Expand file tree Collapse file tree 3 files changed +25
-15
lines changed Original file line number Diff line number Diff line change @@ -46,12 +46,15 @@ <h2 class="footer__section-title">Our Sponsors</h2>
46
46
< div class ="col-md-3 ">
47
47
< h2 class ="footer__section-title "> Python Sprints</ h2 >
48
48
< hr class ="footer__divider ">
49
- < a class ="footer__link " href ="{{ '/' | prepend: site.baseurl }} "> Home</ a >
49
+ < ul class ="pl-0 text-center ">
50
+ < li > < a class ="footer__link " href ="{{ '/' | prepend: site.baseurl }} "> Home</ a > </ li >
50
51
{% for page in site.pages %}
51
52
{% if page.title %}
52
- < a class ="footer__link " href ="{{ page.url | prepend: site.baseurl }} "> {{ page.title }}</ a >
53
+ < li > < a class ="footer__link " href ="{{ page.url | prepend: site.baseurl }} "> {{ page.title }}</ a > </ li >
53
54
{% endif %}
54
55
{% endfor %}
56
+ </ ul >
57
+
55
58
</ div >
56
59
</ div >
57
60
Original file line number Diff line number Diff line change 17
17
text-decoration : none !important ;
18
18
transition : all 0.5s ease-in-out ;
19
19
& :hover {
20
- color : #A55605 ;
20
+ color : #A55605 !important ;
21
21
}
22
22
}
23
23
69
69
/* Here I need to move the background image to slide under the navigation*/
70
70
/* Any smarter solutions are welcome!*/
71
71
.navigation__content {
72
- margin-top : -66px ;
73
72
background-size : cover ;
73
+ margin-top : -66px ;
74
74
max-width : 100vw ;
75
75
height : 101vh ;
76
76
}
203
203
}
204
204
}
205
205
206
- .navigation__overlay .navigation__link {
206
+
207
+ .navigation__link {
207
208
text-decoration : none ;
208
209
font-size : 2em ;
209
210
font-family : ' Encode Sans Expanded' , sans-serif ;
@@ -217,17 +218,17 @@ a {
217
218
}
218
219
219
220
@media (min-width : 768px ), (orientation : portrait ) {
220
- .navigation__overlay . navigation__link {
221
- padding : 0.25em ;
221
+ .navigation__link {
222
+ padding : 0.25em ;
222
223
}
223
224
}
224
225
225
226
.navigation__link :hover {
226
- color : #f1f1f1 ;
227
+ color : #f1f1f1 !important ;
227
228
}
228
229
229
- .navigation__link :focus {
230
- color : #035e9a ;
230
+ .active {
231
+ color : #035e9a !important ;
231
232
}
232
233
233
234
.navigation__button-close-container {
652
653
653
654
.footer__link {
654
655
margin-top : 2% ;
655
- text-align : center ;
656
656
font-size : 1.25em ;
657
657
font-family : ' Playfair Display' , serif ;
658
658
color : #7fa0c2 ;
659
- display : block ;
660
659
}
661
660
662
661
.footer__brand-img {
Original file line number Diff line number Diff line change @@ -29,9 +29,6 @@ function showCloseButton() {
29
29
buttonCloseContainer . css ( "display" , "inline" ) ;
30
30
}
31
31
32
- // buttonOpenContainer.on("click", openNav);
33
- // navigationButtonClose.on("click", closeNav);
34
-
35
32
// Responsive background image constructor.
36
33
class ResponsiveBackgroundImage {
37
34
@@ -64,4 +61,15 @@ for (let i=0; i<elements.length; i++) {
64
61
new ResponsiveBackgroundImage ( elements [ i ] ) ;
65
62
}
66
63
64
+ // Add active class to navigation elements in the navigation overlay and
65
+ // footer on page load.
66
+ $ ( setActiveLink ( ) ) ;
67
67
68
+ function setActiveLink ( ) {
69
+ var currentURL = window . location . href ;
70
+ $ ( '.navigation__link, .footer__link' ) . each ( function ( ) {
71
+ if ( this . href === currentURL ) {
72
+ $ ( this ) . addClass ( 'active' ) ;
73
+ }
74
+ } ) ;
75
+ }
You can’t perform that action at this time.
0 commit comments