Skip to content

Commit e998ba5

Browse files
committed
Updated spacing, added navigation links to the footer
1 parent 1b88edf commit e998ba5

File tree

4 files changed

+33
-9
lines changed

4 files changed

+33
-9
lines changed

assets/css/main.css

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,7 @@ a {
153153
color: #dd4814;
154154
transition: color ease 0.3s;
155155
}
156-
157-
a:hover {
156+
a:hover, a:active, a.active{
158157
color: orange;
159158
}
160159

@@ -202,7 +201,7 @@ strong, bold, b{
202201
.post-content > h4,
203202
.post-content > h5,
204203
.post-content > h5{
205-
margin-top: 1.65rem;
204+
margin-top: 3.3rem;
206205
margin-bottom: 1.1rem;
207206
}
208207

@@ -1331,6 +1330,20 @@ aside.note:before{
13311330
color:#aaa;
13321331
}
13331332

1333+
.site-footer nav li{
1334+
display:inline;
1335+
1336+
}
1337+
1338+
.site-footer nav li:after{
1339+
content:"•";
1340+
color:#aaa;
1341+
margin:.55rem;
1342+
}
1343+
.site-footer nav li:last-child:after{
1344+
content:"";
1345+
}
1346+
13341347
.site-footer a{
13351348
color: lightslategray;
13361349
text-decoration: none;

default.hbs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@
3232
<a class="subscribe icon-feed" href="{{@blog.url}}/rss/">
3333
<span class="tooltip">Subscribe!</span>
3434
</a>
35+
<!-- Uncomment if you want a copy of your navigation in the footer. It’s pretty cool, and gives your visitors something to do when they finish an article other than commenting, sharing, or closing the tab. -->
36+
<!--
37+
<nav role="navigation">
38+
<ul>
39+
{{>navigation-links}}
40+
</ul>
41+
</nav>
42+
-->
3543
<section>
3644
<span class="print-data copyright-notice">
3745
&copy; {{date format="YYYY"}}

partials/menu.hbs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
THE MENU: Enabling this partial creates a hamburger icon that opens a menu. It’s responsive, lightweight, and works with javascript disabled.
33
-->
44

5+
56
<!-- Trigger element, which is hidden -->
67
<input type="checkbox" id="menu-trigger" />
78

@@ -14,19 +15,18 @@ THE MENU: Enabling this partial creates a hamburger icon that opens a menu. It
1415
<!--
1516
Edit these links before enabling the menu! … or make sure you have an about and contact page.
1617
-->
17-
<li><a href="{{@blog.url}}">Home</a></li>
18-
<li><a href="{{@blog.url}}/about">About</a></li>
19-
<li><a href="{{@blog.url}}/contact">Contact</a></li>
18+
{{>navigation-links}}
2019
</ul>
2120
</nav>
2221

2322
<!--
2423
This makes the rest of the page move down with the menu for style points, but is optional. The menu works fine with pure css.
2524
-->
2625
<script>
27-
var navTrigger = document.getElementById("menu-trigger");
28-
var bodyTag = document.getElementsByTagName("body")[0];
29-
var menu = document.getElementById("menu");
26+
var navTrigger = document.getElementById("menu-trigger");
27+
var menu = document.getElementById("menu");
28+
var bodyTag = document.getElementsByTagName("body")[0];
29+
3030
3131
navTrigger.onclick = function () {
3232
if(navTrigger.checked){

partials/navigation-links.hbs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<li><a href="{{@blog.url}}">Home</a></li>
2+
<li><a href="{{@blog.url}}/about">About</a></li>
3+
<li><a href="{{@blog.url}}/contact">Contact</a></li>

0 commit comments

Comments
 (0)