Skip to content

Commit 4e5e03d

Browse files
committedNov 29, 2015
Add support for inlined social links
1 parent b0924eb commit 4e5e03d

File tree

5 files changed

+87
-11
lines changed

5 files changed

+87
-11
lines changed
 

‎_data/toc.yml

+34
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,37 @@ entries:
4444

4545
- title: Page 8
4646
url: page-1.html
47+
48+
- title: Entry 4
49+
pages:
50+
51+
- title: Page 9
52+
url: page-1.html
53+
54+
- title: Page 10
55+
url: page-1.html
56+
57+
- title: Page 11
58+
url: page-1.html
59+
60+
- title: <hr/>
61+
class: inline bottom
62+
pages:
63+
64+
- title: <i class="fa fa-github"></i>
65+
url: https://github.com/cedricss/photon-book-creator
66+
67+
- title: <i class="fa fa-twitter"></i>
68+
url: https://twitter.com/CedricSoulas
69+
70+
- title: <i class="fa fa-facebook"></i>
71+
url:
72+
73+
- title: <i class="fa fa-youtube"></i>
74+
url:
75+
76+
- title: <i class="fa fa-linkedin"></i>
77+
url:
78+
79+
- title: <i class="fa fa-rss"></i>
80+
url:

‎_includes/nav.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ <h1><a href="index.html">{{ site.name }}</a></h1>
22
<hr class="star-light">
33
{% for entry in site.data.toc.entries %}
44
<h2>{{ entry.title }}</h2>
5-
<ul>
5+
<ul class="{{ entry.class }}">
66
{% for page in entry.pages %}
77
<li>
88
<a href="{{ page.url }}">{{ page.title }}</a>

‎css/layout.scss

+18
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,24 @@ nav {
2626
padding-left: 40px;
2727
width: 100%;
2828
display: block;
29+
clear: both;
30+
}
31+
32+
h2 {
33+
hr {
34+
margin-bottom: 0;
35+
margin-top: 32px;
36+
}
37+
}
38+
39+
ul.inline li {
40+
display: inline;
41+
}
42+
43+
.fa {
44+
padding: 0 8px 0 8px;
45+
margin-left: -8px;
46+
margin-bottom: 20px;
2947
}
3048
}
3149

‎css/themes/freelancer/overrides.scss

+24-4
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,24 @@ nav {
77
h1, h2, h1 a {
88
color:white;
99
}
10-
10+
1111
h1 {
1212
font-size: 18px;
1313
padding-top: 44px;
1414
}
15-
15+
1616
h2 {
1717
margin: 25px 0 2px 0;
1818
font-size: 16px;
19+
hr {
20+
margin-top: 32px;
21+
border-color: #576675;
22+
color: #576675;
23+
border-top: solid 2px;
24+
max-width: 250px;
25+
margin-right: 35px;
26+
margin-bottom: 10px;
27+
}
1928
}
2029

2130
a, a:hover, a:focus, a:active, a.active {
@@ -24,11 +33,22 @@ nav {
2433
}
2534

2635
a {
27-
color: #18bc9c;
28-
text-decoration: none;
36+
color: #18bc9c;
37+
text-decoration: none;
2938
}
3039

3140
ul {
41+
list-style: none;
42+
43+
.fa {
44+
font-size: 15px;
45+
color: #7E8FA0;
46+
}
47+
48+
li {
49+
margin-left: 0;
50+
padding-left: 0;
51+
}
3252
a {
3353
font-size: 16px;
3454
}

‎css/themes/minimal/overrides.scss

+10-6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
---
33

44
nav {
5+
hr {
6+
display: none;
7+
}
58

69
h1 {
710
margin-top: 40px;
@@ -14,19 +17,20 @@ nav {
1417
h2 {
1518
font-size: 16px;
1619
margin-bottom: 5px;
17-
}
18-
19-
hr {
20-
display: none;
20+
hr {
21+
display: block;
22+
color: #EBF4F9;
23+
background-color: #EBF4F9;
24+
}
2125
}
2226

2327
ul {
2428
list-style: none;
25-
29+
2630
li {
2731
margin-left: 0;
2832
padding-left: 0;
29-
33+
3034
a {
3135
font-size: 13px;
3236
}

0 commit comments

Comments
 (0)
Please sign in to comment.