charlie-lee-theme 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +7 -6
- data/_includes/header.html +1 -1
- data/_layouts/category.html +1 -1
- data/_layouts/home.html +5 -0
- data/_layouts/page.html +1 -1
- data/_layouts/post.html +1 -1
- data/assets/main.css +35 -25
- data/assets/main.js +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: feb4e92e591e011b358aaad0f8fe2e35114b9a75
|
|
4
|
+
data.tar.gz: dcbef87ac336876f0fcdb9344c8f413009acdd57
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c399eeef31e179946e43d519c763d1d6e028e7e4dde562f434f08dd3e8ccb3e2c0bbea8b8af886630daafc1e4df7afd310b01b24e2113f95166de8e897a71f91
|
|
7
|
+
data.tar.gz: 184857f0e2a87db11f26a7c3a2e93252718ba3dd08530fbae9b10ffbdcea9bb043e8bbd336ab757a8118741e32b2796fdeb522186426a6a7dc6d86a9ff2b959f
|
data/README.md
CHANGED
|
@@ -30,7 +30,7 @@ Or install it yourself as:
|
|
|
30
30
|
|
|
31
31
|
#### page
|
|
32
32
|
|
|
33
|
-
The default layout.
|
|
33
|
+
The default layout. If an `img` is specified it will displayed behind the title.
|
|
34
34
|
|
|
35
35
|
```yaml
|
|
36
36
|
---
|
|
@@ -42,7 +42,7 @@ Page contents.
|
|
|
42
42
|
|
|
43
43
|
#### post
|
|
44
44
|
|
|
45
|
-
Creates a page with the page's author and date of creation displayed.
|
|
45
|
+
Creates a page with the page's author and date of creation displayed. If an `img` is specified it will displayed behind the title.
|
|
46
46
|
|
|
47
47
|
```yaml
|
|
48
48
|
---
|
|
@@ -57,22 +57,23 @@ Post contents.
|
|
|
57
57
|
|
|
58
58
|
#### home
|
|
59
59
|
|
|
60
|
-
Creates a page with a grid displaying recent posts. The content entered on the page will be displayed as text in the page's hero image.
|
|
61
|
-
|
|
62
|
-
If a collection is specified, the pages in that will be displayed instead of the recent posts.
|
|
60
|
+
* Creates a page with a grid displaying recent posts. The content entered on the page will be displayed as text in the page's hero image.
|
|
61
|
+
* If an `img` is specified it will used as the hero image.
|
|
62
|
+
* If a `collection` is specified, the pages in that will be displayed instead of the recent posts.
|
|
63
63
|
|
|
64
64
|
```yaml
|
|
65
65
|
---
|
|
66
66
|
title: Home
|
|
67
67
|
layout: home
|
|
68
68
|
collection: posts
|
|
69
|
+
img: assets/image.png
|
|
69
70
|
---
|
|
70
71
|
Hero image text.
|
|
71
72
|
```
|
|
72
73
|
|
|
73
74
|
#### category
|
|
74
75
|
|
|
75
|
-
Creates a page listing the posts in the category matching the `title` of the page.
|
|
76
|
+
Creates a page listing the posts in the category matching the `title` of the page. If an `img` is specified it will displayed behind the title.
|
|
76
77
|
|
|
77
78
|
```yaml
|
|
78
79
|
---
|
data/_includes/header.html
CHANGED
data/_layouts/category.html
CHANGED
data/_layouts/home.html
CHANGED
data/_layouts/page.html
CHANGED
data/_layouts/post.html
CHANGED
data/assets/main.css
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Main style sheet for
|
|
3
|
-
Author: Charles Lee
|
|
4
|
-
Created: 09/11/16
|
|
2
|
+
Main style sheet for charlie-lee-theme
|
|
5
3
|
*/
|
|
6
4
|
|
|
7
5
|
/* ================================
|
|
@@ -38,7 +36,7 @@
|
|
|
38
36
|
-------------------------------- */
|
|
39
37
|
|
|
40
38
|
body {
|
|
41
|
-
font-family:
|
|
39
|
+
font-family: Helvetica, Arial, sans-serif;
|
|
42
40
|
}
|
|
43
41
|
p {
|
|
44
42
|
line-height: 1.3em;
|
|
@@ -56,11 +54,6 @@ a, a:visited {
|
|
|
56
54
|
}
|
|
57
55
|
a:hover { color: rgb(4,81,94); }
|
|
58
56
|
|
|
59
|
-
/* ===Headings=== */
|
|
60
|
-
h1, h2 {
|
|
61
|
-
font-family: "Montserrat", sans-serif;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
57
|
/* ===Elements that are only displayed when no CSS is avaliable=== */
|
|
65
58
|
.alt {
|
|
66
59
|
display: none;
|
|
@@ -155,24 +148,16 @@ aside ul {
|
|
|
155
148
|
|
|
156
149
|
/* ===Global header===*/
|
|
157
150
|
header {
|
|
158
|
-
background-color: rgb(0,
|
|
151
|
+
background-color: rgb(0,0,0);
|
|
159
152
|
}
|
|
160
153
|
|
|
161
154
|
/* ===Logo=== */
|
|
162
155
|
#logo {
|
|
163
|
-
background-color: rgb(0,0,0);
|
|
164
|
-
font-family: 'Merriweather', serif;
|
|
165
156
|
font-size: 1.5em;
|
|
166
157
|
font-weight: 600;
|
|
167
158
|
margin: 0;
|
|
168
159
|
text-align: center;
|
|
169
160
|
}
|
|
170
|
-
#logo .fa-coffee::after {
|
|
171
|
-
/* Creates a space after the logo symbol relative to font-size */
|
|
172
|
-
color: transparent;
|
|
173
|
-
content: "-";
|
|
174
|
-
text-shadow: none;
|
|
175
|
-
}
|
|
176
161
|
#logo a:hover {
|
|
177
162
|
background-color: rgb(30,30,30);
|
|
178
163
|
text-decoration: none;
|
|
@@ -196,14 +181,37 @@ main header h1 {
|
|
|
196
181
|
}
|
|
197
182
|
|
|
198
183
|
/* ===Hero headers===*/
|
|
184
|
+
.hero {
|
|
185
|
+
align-items: center;
|
|
186
|
+
box-sizing: border-box;
|
|
187
|
+
display: flex;
|
|
188
|
+
overflow: hidden;
|
|
189
|
+
position: relative;
|
|
190
|
+
}
|
|
199
191
|
.hero div {
|
|
200
|
-
|
|
192
|
+
align-items: center;
|
|
193
|
+
background-color: rgba(0,0,0,0.5);
|
|
194
|
+
display: flex;
|
|
195
|
+
height: 100%;
|
|
196
|
+
justify-content: center;
|
|
197
|
+
position: absolute;
|
|
198
|
+
top: 0;
|
|
199
|
+
width: 100%;
|
|
200
|
+
z-index: 2;
|
|
201
201
|
}
|
|
202
202
|
.hero h1 {
|
|
203
|
+
background-color: transparent;
|
|
204
|
+
color: rgb(255,255,255);
|
|
203
205
|
display: inline;
|
|
204
|
-
|
|
206
|
+
line-height: 1.2em;
|
|
207
|
+
margin: 0;
|
|
208
|
+
padding: 0;
|
|
209
|
+
text-shadow: 0px 0px 10px rgb(0, 0, 0);
|
|
205
210
|
white-space: pre-wrap;
|
|
206
211
|
}
|
|
212
|
+
.hero img {
|
|
213
|
+
width: 100%;
|
|
214
|
+
}
|
|
207
215
|
|
|
208
216
|
/* 1.4. NAVIGATION
|
|
209
217
|
-------------------------------- */
|
|
@@ -251,6 +259,7 @@ nav li.highlight:nth-of-type(2n+2) a {
|
|
|
251
259
|
padding: 10px;
|
|
252
260
|
position: absolute;
|
|
253
261
|
right: 0;
|
|
262
|
+
transform: rotate(90deg);
|
|
254
263
|
}
|
|
255
264
|
#mobile-menu-toggle:hover {
|
|
256
265
|
color: rgb(212,212,212);
|
|
@@ -515,7 +524,7 @@ footer li:last-child:after {
|
|
|
515
524
|
width: 100%;
|
|
516
525
|
}
|
|
517
526
|
article {
|
|
518
|
-
max-width:
|
|
527
|
+
max-width: 800px;
|
|
519
528
|
padding: 0 20px;
|
|
520
529
|
}
|
|
521
530
|
article.with-sidebar {
|
|
@@ -552,15 +561,16 @@ footer li:last-child:after {
|
|
|
552
561
|
max-width: 1200px;
|
|
553
562
|
}
|
|
554
563
|
main header h1 {
|
|
555
|
-
max-width:
|
|
564
|
+
max-width: 800px;
|
|
556
565
|
}
|
|
557
566
|
|
|
558
567
|
/* ===Hero headers===*/
|
|
559
|
-
.hero
|
|
560
|
-
max-
|
|
568
|
+
.hero {
|
|
569
|
+
max-height: 25em;
|
|
561
570
|
}
|
|
562
571
|
.hero h1 {
|
|
563
572
|
font-size: 3.5em;
|
|
573
|
+
max-width: 800px;
|
|
564
574
|
}
|
|
565
575
|
|
|
566
576
|
/* 3.3. NAVIGATION
|
|
@@ -570,7 +580,7 @@ footer li:last-child:after {
|
|
|
570
580
|
display: flex;
|
|
571
581
|
/* Moves header contents onto one row */
|
|
572
582
|
flex-flow: row wrap;
|
|
573
|
-
max-width:
|
|
583
|
+
max-width: 1200px;
|
|
574
584
|
}
|
|
575
585
|
nav ul, header nav ul.hidden {
|
|
576
586
|
display: block;
|
data/assets/main.js
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: charlie-lee-theme
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Charlie Lee
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-01-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|