jekyll-theme-seanh 0.1.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 +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +66 -0
- data/_includes/anchor_headings.html +100 -0
- data/_includes/fullbleed.html +9 -0
- data/_includes/gist.html +8 -0
- data/_includes/post_link.html +9 -0
- data/_includes/wide.html +5 -0
- data/_includes/widecode.html +22 -0
- data/_includes/wideimg.html +21 -0
- data/_layouts/default.html +61 -0
- data/_layouts/page.html +13 -0
- data/_layouts/post.html +19 -0
- data/_sass/_alerts.scss +103 -0
- data/_sass/_anchors.scss +19 -0
- data/_sass/_badges.scss +266 -0
- data/_sass/_code.scss +69 -0
- data/_sass/_emoji.scss +4 -0
- data/_sass/_figures.scss +12 -0
- data/_sass/_footnotes.scss +3 -0
- data/_sass/_gists.scss +5 -0
- data/_sass/_gruvbox.scss +74 -0
- data/_sass/_headers.scss +29 -0
- data/_sass/_images.scss +16 -0
- data/_sass/_kbd.scss +14 -0
- data/_sass/_layout.scss +192 -0
- data/_sass/_lead.scss +3 -0
- data/_sass/_links.scss +9 -0
- data/_sass/_lists.scss +19 -0
- data/_sass/_quotes.scss +48 -0
- data/_sass/_reset.scss +22 -0
- data/_sass/_samp.scss +11 -0
- data/_sass/_typography.scss +116 -0
- data/_sass/_variables.scss +57 -0
- data/assets/css/main.scss +24 -0
- data/assets/images/clouds.jpg +0 -0
- data/assets/images/dog.jpg +0 -0
- data/assets/images/forest.jpg +0 -0
- data/assets/images/grass.jpg +0 -0
- data/assets/images/plant.jpg +0 -0
- data/assets/images/sea.jpg +0 -0
- metadata +126 -0
data/_sass/_headers.scss
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
h1, h2, h3, h4, h5, h6 {
|
2
|
+
line-height: 1.2;
|
3
|
+
font-weight: 600;
|
4
|
+
margin-bottom: 26px;
|
5
|
+
}
|
6
|
+
|
7
|
+
h1 {
|
8
|
+
font-size: 2.5rem;
|
9
|
+
}
|
10
|
+
|
11
|
+
h2 {
|
12
|
+
font-size: 2rem;
|
13
|
+
}
|
14
|
+
|
15
|
+
h3 {
|
16
|
+
font-size: 1.75rem;
|
17
|
+
}
|
18
|
+
|
19
|
+
h4 {
|
20
|
+
font-size: 1.5rem;
|
21
|
+
}
|
22
|
+
|
23
|
+
h5 {
|
24
|
+
font-size: 1.25rem;
|
25
|
+
}
|
26
|
+
|
27
|
+
h6 {
|
28
|
+
font-size: 1rem;
|
29
|
+
}
|
data/_sass/_images.scss
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
img {
|
2
|
+
display: block;
|
3
|
+
margin-left: auto;
|
4
|
+
margin-right: auto;
|
5
|
+
max-width: 100%;
|
6
|
+
}
|
7
|
+
|
8
|
+
.content__inner-container img {
|
9
|
+
margin-bottom: 0;
|
10
|
+
height: auto;
|
11
|
+
border-radius: 4px;
|
12
|
+
}
|
13
|
+
|
14
|
+
.content__inner-container img {
|
15
|
+
box-shadow: 4px 6px 18px rgba(0, 0, 0, 0.35);
|
16
|
+
}
|
data/_sass/_kbd.scss
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
kbd {
|
2
|
+
background-color: #fafbfc;
|
3
|
+
border: 1px solid #c6cbd1;
|
4
|
+
border-bottom-color: #959da5;
|
5
|
+
border-radius: 3px;
|
6
|
+
box-shadow: inset 0 -1px 0 #959da5;
|
7
|
+
color: #444d56;
|
8
|
+
display: inline-block;
|
9
|
+
font-family: var(--code-font-family);
|
10
|
+
font-size: var(--code-font-size);
|
11
|
+
line-height: 1rem;
|
12
|
+
padding: 3px 5px;
|
13
|
+
vertical-align: middle;
|
14
|
+
}
|
data/_sass/_layout.scss
ADDED
@@ -0,0 +1,192 @@
|
|
1
|
+
/**
|
2
|
+
|
3
|
+
This CSS mostly uses the BEM (Block Element Modifier) naming pattern
|
4
|
+
(http://getbem.com/) for modularity:
|
5
|
+
|
6
|
+
* CSS selectors mostly match using CSS class names only, no tag names or IDs.
|
7
|
+
|
8
|
+
* CSS classes are either blocks, elements or modifiers:
|
9
|
+
|
10
|
+
* Blocks have simple ASCII names like "site-search".
|
11
|
+
|
12
|
+
Single dashes are allowed within the name of a block, element or modifier.
|
13
|
+
|
14
|
+
You know something is a block if it's a standalone entity that is meaningful
|
15
|
+
on its own. Blocks can still interact with each other and can be nested
|
16
|
+
inside of each other, but are semantically equal with no precedence or
|
17
|
+
hierarchy.
|
18
|
+
|
19
|
+
* Elements are sub-parts of blocks and are named like "block__element",
|
20
|
+
for example "site-search__field".
|
21
|
+
|
22
|
+
You know something is an element, rather than a block, if it's semantically
|
23
|
+
tied to its block and has no semantic meaning of its own.
|
24
|
+
|
25
|
+
Rather than a traditional CSS selector like:
|
26
|
+
|
27
|
+
.block element { ... }
|
28
|
+
|
29
|
+
instead you'd use:
|
30
|
+
|
31
|
+
.block__element { ... }
|
32
|
+
|
33
|
+
* Modifiers are flags on block or elements, "<BLOCK>--<MODIFIER>" or
|
34
|
+
"<BLOCK>__<ELEMENT>--<MODIFIER>", for example "site-search--full" or
|
35
|
+
"person__hand--left".
|
36
|
+
|
37
|
+
You only use modifiers on HTML tags that also have the corresponding block or element.
|
38
|
+
For example `<div class="site-search site-search--full">` or
|
39
|
+
`<div class="person__hand person__hand--left">`.
|
40
|
+
|
41
|
+
There are three ways for CSS selectors to match a modifier:
|
42
|
+
|
43
|
+
1. Match a block modifier:
|
44
|
+
|
45
|
+
.block--modifier { ... }
|
46
|
+
|
47
|
+
2. Match an element within a modified block - in the HTML the modifier class
|
48
|
+
is added to the block tag but modifies its elements (child tags):
|
49
|
+
|
50
|
+
.block--modifier block__element { ... }
|
51
|
+
|
52
|
+
3. Match a modified element - in the HTML the modifier is added to the
|
53
|
+
element's tag directly:
|
54
|
+
|
55
|
+
.block__element--modifier { ... }
|
56
|
+
|
57
|
+
Complete example (from getbem.com):
|
58
|
+
|
59
|
+
<style>
|
60
|
+
.form { }
|
61
|
+
.form--theme-xmas { }
|
62
|
+
.form--simple { }
|
63
|
+
.form__input { }
|
64
|
+
.form__submit { }
|
65
|
+
.form__submit--disabled { }
|
66
|
+
</style>
|
67
|
+
|
68
|
+
<form class="form form--theme-xmas form--simple">
|
69
|
+
<input class="form__input" type="text" />
|
70
|
+
<input class="form__submit form__submit--disabled" type="submit" />
|
71
|
+
</form>
|
72
|
+
**/
|
73
|
+
|
74
|
+
/* html and body need to have height: 100% in order for the sticky bottom
|
75
|
+
* site-footer to work. */
|
76
|
+
html,
|
77
|
+
body {
|
78
|
+
height: 100%;
|
79
|
+
}
|
80
|
+
|
81
|
+
body {
|
82
|
+
box-sizing: border-box;
|
83
|
+
display: flex;
|
84
|
+
flex-direction: column;
|
85
|
+
}
|
86
|
+
|
87
|
+
.site-header {
|
88
|
+
padding-left: 20px;
|
89
|
+
padding-right: 20px;
|
90
|
+
padding-top: 12px;
|
91
|
+
padding-bottom: 12px;
|
92
|
+
background-color: var(--body-color);
|
93
|
+
color: var(--muted-color);
|
94
|
+
}
|
95
|
+
|
96
|
+
.site-header__navbar {
|
97
|
+
text-align: center;
|
98
|
+
overflow-x: auto;
|
99
|
+
white-space: nowrap;
|
100
|
+
}
|
101
|
+
|
102
|
+
.site-header__nav-links {
|
103
|
+
list-style: none;
|
104
|
+
margin-bottom: 0;
|
105
|
+
}
|
106
|
+
|
107
|
+
.site-header__nav-item {
|
108
|
+
display: inline-block;
|
109
|
+
vertical-align: bottom;
|
110
|
+
margin-left: 0;
|
111
|
+
}
|
112
|
+
|
113
|
+
.site-header__nav-item:first-child a {
|
114
|
+
padding-left: 0;
|
115
|
+
}
|
116
|
+
|
117
|
+
.site-header__nav-item:last-child a {
|
118
|
+
padding-right: 0;
|
119
|
+
}
|
120
|
+
|
121
|
+
.site-header__nav-link {
|
122
|
+
color: hsla(0,0%,100%,.75);
|
123
|
+
text-decoration: none;
|
124
|
+
border: none;
|
125
|
+
padding-right: 16px;
|
126
|
+
line-height: 32px;
|
127
|
+
transition: color 250ms linear;
|
128
|
+
font-size: var(--navbar-font-size);
|
129
|
+
font-weight: var(--navbar-font-weight);
|
130
|
+
}
|
131
|
+
|
132
|
+
.site-header__nav-link--active {
|
133
|
+
color: white;
|
134
|
+
}
|
135
|
+
|
136
|
+
.content {
|
137
|
+
flex-shrink: 0;
|
138
|
+
}
|
139
|
+
|
140
|
+
.content__outer-container {
|
141
|
+
max-width: 800px;
|
142
|
+
margin-left: auto;
|
143
|
+
margin-right: auto;
|
144
|
+
padding: 0 20px;
|
145
|
+
}
|
146
|
+
|
147
|
+
.content__header {
|
148
|
+
padding: 50px 0;
|
149
|
+
}
|
150
|
+
|
151
|
+
.content__title {
|
152
|
+
text-align: center;
|
153
|
+
}
|
154
|
+
|
155
|
+
.content__inner-container {
|
156
|
+
max-width: 650px;
|
157
|
+
margin-left: auto;
|
158
|
+
margin-right: auto;
|
159
|
+
}
|
160
|
+
|
161
|
+
.post-footer {
|
162
|
+
margin-top: 90px;
|
163
|
+
}
|
164
|
+
|
165
|
+
.content .posts-list {
|
166
|
+
list-style-type: none;
|
167
|
+
}
|
168
|
+
|
169
|
+
.content .posts-list__item {
|
170
|
+
margin-left: 0;
|
171
|
+
}
|
172
|
+
|
173
|
+
.site-footer {
|
174
|
+
margin-top: auto;
|
175
|
+
padding-top: 10rem;
|
176
|
+
text-align: center;
|
177
|
+
}
|
178
|
+
|
179
|
+
.site-footer__links {
|
180
|
+
list-style: none;
|
181
|
+
margin-bottom: 0;
|
182
|
+
}
|
183
|
+
|
184
|
+
.site-footer__links-item {
|
185
|
+
display: inline-block;
|
186
|
+
padding-right: 16px;
|
187
|
+
margin-left: 0;
|
188
|
+
}
|
189
|
+
|
190
|
+
.site-footer__links-item:last-child {
|
191
|
+
padding-right: 0;
|
192
|
+
}
|
data/_sass/_lead.scss
ADDED
data/_sass/_links.scss
ADDED
data/_sass/_lists.scss
ADDED
data/_sass/_quotes.scss
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
q {
|
2
|
+
quotes: "“" "”" "‘" "’";
|
3
|
+
}
|
4
|
+
|
5
|
+
q:before {
|
6
|
+
content: open-quote;
|
7
|
+
}
|
8
|
+
|
9
|
+
q:after {
|
10
|
+
content: close-quote;
|
11
|
+
}
|
12
|
+
|
13
|
+
blockquote {
|
14
|
+
quotes: none;
|
15
|
+
font-style: italic;
|
16
|
+
border-left: 3px solid #2b90d9;
|
17
|
+
padding-left: 20px;
|
18
|
+
padding-bottom: 2px;
|
19
|
+
}
|
20
|
+
|
21
|
+
blockquote:before,
|
22
|
+
blockquote:after {
|
23
|
+
content: '';
|
24
|
+
content: none;
|
25
|
+
}
|
26
|
+
|
27
|
+
blockquote blockquote,
|
28
|
+
li blockquote {
|
29
|
+
margin-left: 3px;
|
30
|
+
}
|
31
|
+
|
32
|
+
blockquote footer,
|
33
|
+
blockquote cite {
|
34
|
+
color: var(--muted-color);
|
35
|
+
}
|
36
|
+
|
37
|
+
blockquote footer:before,
|
38
|
+
blockquote cite:before {
|
39
|
+
content: "\2014 \00A0";
|
40
|
+
}
|
41
|
+
|
42
|
+
blockquote footer cite:before {
|
43
|
+
content: "";
|
44
|
+
}
|
45
|
+
|
46
|
+
blockquote *:last-child {
|
47
|
+
margin-bottom: 0;
|
48
|
+
}
|
data/_sass/_reset.scss
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
/* http://meyerweb.com/eric/tools/css/reset/
|
2
|
+
v2.0 | 20110126
|
3
|
+
License: none (public domain)
|
4
|
+
*/
|
5
|
+
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p,
|
6
|
+
blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img,
|
7
|
+
ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i,
|
8
|
+
center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption,
|
9
|
+
tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed,
|
10
|
+
figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section,
|
11
|
+
summary, time, mark, audio, video, hr {
|
12
|
+
margin: 0;
|
13
|
+
padding: 0;
|
14
|
+
border: 0;
|
15
|
+
font: inherit;
|
16
|
+
vertical-align: baseline;
|
17
|
+
}
|
18
|
+
|
19
|
+
/* HTML5 display-role reset for older browsers */
|
20
|
+
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
|
21
|
+
display: block;
|
22
|
+
}
|
data/_sass/_samp.scss
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
body {
|
2
|
+
text-rendering: optimizelegibility;
|
3
|
+
font-feature-settings: "kern";
|
4
|
+
font-size: var(--body-font-size);
|
5
|
+
text-size-adjust: none;
|
6
|
+
font-family: var(--body-font-family);
|
7
|
+
background-color: var(--body-background-color);
|
8
|
+
color: var(--body-color);
|
9
|
+
line-height: var(--body-line-height);
|
10
|
+
}
|
11
|
+
|
12
|
+
img,
|
13
|
+
blockquote,
|
14
|
+
p,
|
15
|
+
ul,
|
16
|
+
ol,
|
17
|
+
figure,
|
18
|
+
.content__inner-container pre,
|
19
|
+
.content__inner-container iframe,
|
20
|
+
dd,
|
21
|
+
details,
|
22
|
+
.scroll,
|
23
|
+
.admonition,
|
24
|
+
.attention,
|
25
|
+
.caution,
|
26
|
+
.danger,
|
27
|
+
.error,
|
28
|
+
.important,
|
29
|
+
.warning,
|
30
|
+
.hint,
|
31
|
+
.tip,
|
32
|
+
.note,
|
33
|
+
.seealso,
|
34
|
+
.todo {
|
35
|
+
margin-bottom: 26px;
|
36
|
+
}
|
37
|
+
|
38
|
+
p,
|
39
|
+
li {
|
40
|
+
hyphens: auto;
|
41
|
+
}
|
42
|
+
|
43
|
+
em {
|
44
|
+
font-style: italic;
|
45
|
+
}
|
46
|
+
|
47
|
+
strong {
|
48
|
+
font-weight: var(--bold-font-weight);
|
49
|
+
color: var(--bold-color);
|
50
|
+
}
|
51
|
+
|
52
|
+
hr {
|
53
|
+
background: transparent;
|
54
|
+
border: 0;
|
55
|
+
border-top: 1px solid var(--muted-color);
|
56
|
+
margin-bottom: 26px;
|
57
|
+
}
|
58
|
+
|
59
|
+
sup,
|
60
|
+
sub {
|
61
|
+
vertical-align: baseline;
|
62
|
+
position: relative;
|
63
|
+
top: -0.4em;
|
64
|
+
font-size: smaller;
|
65
|
+
padding-left: .1em;
|
66
|
+
font-weight: bold;
|
67
|
+
}
|
68
|
+
|
69
|
+
sub {
|
70
|
+
top: 0.4em;
|
71
|
+
}
|
72
|
+
|
73
|
+
var {
|
74
|
+
font-style: italic;
|
75
|
+
}
|
76
|
+
|
77
|
+
summary {
|
78
|
+
cursor: pointer;
|
79
|
+
}
|
80
|
+
|
81
|
+
.sig,
|
82
|
+
.sig a {
|
83
|
+
color: var(--muted-color) !important;
|
84
|
+
text-decoration: none;
|
85
|
+
}
|
86
|
+
|
87
|
+
.muted {
|
88
|
+
color: var(--muted-color);
|
89
|
+
}
|
90
|
+
|
91
|
+
.post-footer {
|
92
|
+
color: var(--muted-color);
|
93
|
+
font-size: var(--small-font-size);
|
94
|
+
line-height: var(--small-line-height);
|
95
|
+
}
|
96
|
+
|
97
|
+
.post-footer__link {
|
98
|
+
color: var(--muted-color);
|
99
|
+
border-bottom: none;
|
100
|
+
text-decoration: none;
|
101
|
+
}
|
102
|
+
|
103
|
+
.site-footer {
|
104
|
+
color: var(--muted-color);
|
105
|
+
font-size: smaller;
|
106
|
+
}
|
107
|
+
|
108
|
+
.site-footer a {
|
109
|
+
border-bottom: none;
|
110
|
+
color: inherit;
|
111
|
+
}
|
112
|
+
|
113
|
+
.site-footer__new-post-input {
|
114
|
+
border: 1px dashed #ccc;
|
115
|
+
padding: 2px;
|
116
|
+
}
|