jekyll-theme-tou-dai 0.2.1 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_data/menu.json +8 -1
- data/_includes/header.html +7 -4
- data/_includes/logo.html +1 -0
- data/_layouts/default.html +1 -0
- data/_sass/_menu.scss +105 -97
- data/_sass/_tables.scss +23 -0
- data/_sass/jekyll-theme-tou-dai.scss +44 -30
- metadata +20 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f544b64dccf86c958e6b3ffafc10a30438f18a8
|
4
|
+
data.tar.gz: 9dbff310a275d8a3fb3227a30173d42026c7712d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94d6ffcdfd37812baa2d225b318c192032c54afbe3f93ba82779b5c427049662b1d14b84b5024260ea8d56a27e1db9d36244c6133a95ad788bbe8960896eb62b
|
7
|
+
data.tar.gz: d06a4f50c245623b7e53a119576cbaec2068406637565f6233223c160644b6eb45c9723e5f818ac460ac26c3baaa7a3b008b251883f757f5fdd6bb719936d00a
|
data/_data/menu.json
CHANGED
data/_includes/header.html
CHANGED
@@ -9,11 +9,14 @@
|
|
9
9
|
{% for item in site.data.menu %}
|
10
10
|
<li class="menu-item"{%if forloop.last == true %} id="last-item"{%endif%}>
|
11
11
|
<a href="{{site.baseurl}}{{item.url}}">{{item.title}}</a>
|
12
|
+
{% if item.sub != nil %}
|
13
|
+
<ul class="sub-list">{% for sub in item.sub %}
|
14
|
+
<li class="menu-item sub-item"><a href="{{site.baseurl}}{{sub.url}}">{{sub.title}}</a></li>
|
15
|
+
{% endfor %}
|
16
|
+
</ul>
|
17
|
+
{% endif %}
|
12
18
|
</li>
|
13
|
-
|
14
|
-
<ul>{% for sub in item.sub %}
|
15
|
-
<li class="menu-item"><a href="{{site.baseurl}}{{sub.url}}">{{sub.title}}</a></li>{% endfor %}
|
16
|
-
</ul>{% endif %}{% endcomment %}
|
19
|
+
|
17
20
|
{% endfor %}
|
18
21
|
</ul>
|
19
22
|
</nav>
|
data/_includes/logo.html
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
<div class="logo">Logo</div>
|
data/_layouts/default.html
CHANGED
data/_sass/_menu.scss
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
@import 'colors',
|
1
|
+
@import 'colors',
|
2
|
+
'mixins';
|
2
3
|
// --------- MENU -------
|
3
4
|
// based on this codepen
|
4
5
|
// http://codepen.io/andreasstorm/pen/lriga
|
@@ -17,49 +18,59 @@ header {
|
|
17
18
|
|
18
19
|
.logo {
|
19
20
|
text-decoration: none;
|
20
|
-
color:
|
21
|
+
color: rgb(17, 17, 17);
|
21
22
|
font-weight: 800;
|
22
|
-
font-size:
|
23
|
-
line-height: 40px;
|
23
|
+
font-size: 5em;
|
24
|
+
// line-height: 40px;
|
24
25
|
}
|
25
|
-
|
26
|
+
|
27
|
+
nav>ul {
|
26
28
|
// float: right;
|
27
|
-
max-width:800px;
|
29
|
+
max-width: 800px;
|
28
30
|
border-bottom: 1px solid black;
|
29
31
|
}
|
30
32
|
|
31
|
-
nav
|
32
|
-
text-size:40px;
|
33
|
+
nav>ul>li {
|
34
|
+
text-size: 40px;
|
33
35
|
text-align: center;
|
34
36
|
line-height: 40px;
|
35
37
|
margin-left: 0.5em;
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
38
|
+
[class^="icon-"],
|
39
|
+
[class*=" icon-"] {
|
40
|
+
height: 30px;
|
41
|
+
width: 30px;
|
42
|
+
position: relative;
|
43
|
+
top: 10px;
|
44
|
+
}
|
45
|
+
}
|
41
46
|
|
42
|
-
|
47
|
+
nav>ul li ul {
|
48
|
+
display: none;
|
49
|
+
padding: 0;
|
50
|
+
list-style-type: none;
|
43
51
|
}
|
44
52
|
|
45
|
-
nav
|
53
|
+
nav>ul li ul li {
|
46
54
|
width: 100%;
|
47
55
|
text-align: left;
|
56
|
+
white-space: nowrap; // stop the wrapping in the first place
|
48
57
|
}
|
49
58
|
|
50
59
|
nav ul li:hover {
|
51
60
|
cursor: pointer;
|
52
61
|
position: relative;
|
53
62
|
text-decoration: underline;
|
54
|
-
|
55
63
|
}
|
56
|
-
|
64
|
+
|
65
|
+
nav ul li:hover>ul {
|
57
66
|
display: block;
|
58
67
|
}
|
59
|
-
|
68
|
+
|
69
|
+
nav ul li:hover>a {
|
60
70
|
// color: #777;
|
61
71
|
}
|
62
|
-
|
72
|
+
|
73
|
+
nav>ul>li>a {
|
63
74
|
cursor: pointer;
|
64
75
|
display: block;
|
65
76
|
outline: none;
|
@@ -67,15 +78,15 @@ nav > ul > li > a {
|
|
67
78
|
text-decoration: none;
|
68
79
|
}
|
69
80
|
|
70
|
-
nav
|
81
|
+
nav>ul>li {
|
71
82
|
float: left;
|
72
|
-
list-style:none;
|
73
|
-
|
83
|
+
list-style: none;
|
74
84
|
}
|
85
|
+
|
75
86
|
// nav a {
|
76
87
|
// color: white;
|
77
88
|
// }
|
78
|
-
nav
|
89
|
+
nav>ul li ul {
|
79
90
|
display: none;
|
80
91
|
position: absolute;
|
81
92
|
left: 0;
|
@@ -83,88 +94,85 @@ nav > ul li ul {
|
|
83
94
|
width: 100%;
|
84
95
|
z-index: 2000;
|
85
96
|
}
|
86
|
-
|
97
|
+
|
98
|
+
nav>ul li ul li>a {
|
87
99
|
text-decoration: none;
|
88
100
|
}
|
89
101
|
|
90
|
-
[type="checkbox"],
|
102
|
+
[type="checkbox"],
|
103
|
+
label {
|
91
104
|
display: none;
|
92
105
|
}
|
93
106
|
|
94
|
-
[type="checkbox"]:not(:checked)
|
107
|
+
[type="checkbox"]:not(:checked)~ul {
|
95
108
|
border-bottom: 0px solid black;
|
96
109
|
}
|
97
110
|
|
98
111
|
@media screen and (max-width: 800px) {
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
position: relative;
|
166
|
-
width: 100%;
|
167
|
-
z-index: 9999;
|
168
|
-
float: none;
|
169
|
-
}
|
112
|
+
nav ul {
|
113
|
+
display: none;
|
114
|
+
padding: 0;
|
115
|
+
background: $backgroundColor;
|
116
|
+
}
|
117
|
+
label {
|
118
|
+
display: block;
|
119
|
+
//background: #222;
|
120
|
+
width: 40px;
|
121
|
+
height: 40px;
|
122
|
+
cursor: pointer;
|
123
|
+
position: absolute;
|
124
|
+
right: 0px;
|
125
|
+
top: 0px;
|
126
|
+
@include rounded(0, 0, 0, 5px);
|
127
|
+
}
|
128
|
+
label:after {
|
129
|
+
content: '';
|
130
|
+
display: block;
|
131
|
+
width: 30px;
|
132
|
+
height: 5px;
|
133
|
+
background: $colLinks;
|
134
|
+
margin: 7px 5px;
|
135
|
+
box-shadow: 0px 10px 0px $colLinks, 0px 20px 0px $colLinks
|
136
|
+
}
|
137
|
+
[type="checkbox"]:checked~ul {
|
138
|
+
display: block;
|
139
|
+
z-index: 9999;
|
140
|
+
position: absolute;
|
141
|
+
right: -20px;
|
142
|
+
left: -20px;
|
143
|
+
top: 20px;
|
144
|
+
}
|
145
|
+
[type="checkbox"]:not(:checked)~ul {
|
146
|
+
border-bottom: 0px solid black;
|
147
|
+
}
|
148
|
+
nav a {
|
149
|
+
color: #777;
|
150
|
+
}
|
151
|
+
nav ul li {
|
152
|
+
display: block;
|
153
|
+
float: none;
|
154
|
+
width: 100%;
|
155
|
+
text-align: left;
|
156
|
+
//background: #222;
|
157
|
+
text-indent: 40px;
|
158
|
+
text-decoration: none;
|
159
|
+
}
|
160
|
+
nav ul li:hover {
|
161
|
+
text-decoration: none;
|
162
|
+
}
|
163
|
+
nav>ul>li {
|
164
|
+
margin-left: 0px;
|
165
|
+
}
|
166
|
+
nav>ul li ul li {
|
167
|
+
display: block;
|
168
|
+
float: none;
|
169
|
+
list-style: none;
|
170
|
+
}
|
171
|
+
nav>ul li ul {
|
172
|
+
display: block;
|
173
|
+
position: relative;
|
174
|
+
width: 100%;
|
175
|
+
z-index: 9999;
|
176
|
+
float: none;
|
177
|
+
}
|
170
178
|
}
|
data/_sass/_tables.scss
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
table {
|
2
|
+
border-collapse: collapse;
|
3
|
+
}
|
4
|
+
|
5
|
+
tr:nth-child(even) {
|
6
|
+
background: #FFF
|
7
|
+
}
|
8
|
+
|
9
|
+
tr:nth-child(odd) {
|
10
|
+
background: #CCC
|
11
|
+
}
|
12
|
+
|
13
|
+
thead {
|
14
|
+
tr {
|
15
|
+
th {
|
16
|
+
background: #FFF
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
td {
|
22
|
+
padding-left: 5px;
|
23
|
+
}
|
@@ -1,77 +1,91 @@
|
|
1
|
-
@import 'typescale',
|
1
|
+
@import 'typescale',
|
2
|
+
'fonts',
|
3
|
+
'menu',
|
4
|
+
'tables';
|
2
5
|
|
3
6
|
/*css taken from http://jgthms.com/web-design-in-4-minutes/*/
|
7
|
+
|
4
8
|
body {
|
5
|
-
|
6
|
-
|
9
|
+
margin: 0 auto;
|
10
|
+
max-width: 50em;
|
7
11
|
}
|
8
|
-
|
9
|
-
|
12
|
+
|
13
|
+
* {
|
14
|
+
box-sizing: border-box;
|
10
15
|
}
|
11
16
|
|
12
17
|
body {
|
13
|
-
|
14
|
-
padding: 0em 0em 4em 0em;
|
15
|
-
// padding: 4em 1em;
|
18
|
+
font-family: serif;
|
16
19
|
}
|
17
20
|
|
18
|
-
|
19
|
-
|
21
|
+
body {
|
22
|
+
/* top | right | bottom | left */
|
23
|
+
padding: 0em 0em 4em 0em;
|
24
|
+
// padding: 4em 1em;
|
25
|
+
}
|
20
26
|
|
27
|
+
#main {
|
28
|
+
padding: 4em 1em;
|
21
29
|
}
|
30
|
+
|
22
31
|
h2 {
|
23
|
-
|
24
|
-
|
32
|
+
margin-top: 1em;
|
33
|
+
padding-top: 1em;
|
25
34
|
}
|
26
35
|
|
27
36
|
body {
|
28
|
-
|
37
|
+
color: #555;
|
29
38
|
}
|
30
39
|
|
31
40
|
h1,
|
32
41
|
h2,
|
33
42
|
strong {
|
34
|
-
|
43
|
+
color: #333;
|
35
44
|
}
|
36
45
|
|
37
46
|
code,
|
38
47
|
pre {
|
39
|
-
|
48
|
+
background: #eee;
|
40
49
|
}
|
41
50
|
|
42
51
|
code {
|
43
|
-
|
44
|
-
|
52
|
+
padding: 2px 4px;
|
53
|
+
vertical-align: text-bottom;
|
45
54
|
}
|
46
55
|
|
47
56
|
pre {
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
57
|
+
padding: 1em;
|
58
|
+
white-space: pre-wrap;
|
59
|
+
/* css-3 */
|
60
|
+
white-space: -moz-pre-wrap;
|
61
|
+
/* Mozilla, since 1999 */
|
62
|
+
white-space: -pre-wrap;
|
63
|
+
/* Opera 4-6 */
|
64
|
+
white-space: -o-pre-wrap;
|
65
|
+
/* Opera 7 */
|
66
|
+
word-wrap: break-word;
|
67
|
+
/* Internet Explorer 5.5+ */
|
54
68
|
}
|
55
69
|
|
56
70
|
a {
|
57
|
-
|
71
|
+
color: #e81c4f;
|
58
72
|
}
|
59
73
|
|
60
74
|
body {
|
61
|
-
|
75
|
+
color: #566b78;
|
62
76
|
}
|
63
77
|
|
64
78
|
code,
|
65
79
|
pre {
|
66
|
-
|
67
|
-
|
68
|
-
|
80
|
+
background: #f5f7f9;
|
81
|
+
/*border-bottom: 1px solid #d8dee9;*/
|
82
|
+
color: #a7adba;
|
69
83
|
}
|
70
84
|
|
71
85
|
pre {
|
72
|
-
|
86
|
+
border-left: 2px solid #69c;
|
73
87
|
}
|
74
88
|
|
75
89
|
img {
|
76
|
-
|
90
|
+
max-width: 100%;
|
77
91
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-tou-dai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- fabianmoronzirfas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.1.3
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.1.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: jekyll-tidy
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '1.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: jekyll-autoprefixer
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '1.0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '1.0'
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: bundler
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -119,12 +133,14 @@ files:
|
|
119
133
|
- README.md
|
120
134
|
- _data/menu.json
|
121
135
|
- _includes/header.html
|
136
|
+
- _includes/logo.html
|
122
137
|
- _layouts/default.html
|
123
138
|
- _layouts/plain.txt
|
124
139
|
- _sass/_colors.scss
|
125
140
|
- _sass/_fonts.scss
|
126
141
|
- _sass/_menu.scss
|
127
142
|
- _sass/_mixins.scss
|
143
|
+
- _sass/_tables.scss
|
128
144
|
- _sass/_typescale.scss
|
129
145
|
- _sass/jekyll-theme-tou-dai.scss
|
130
146
|
- _sass/palette.scss
|