jekyll-theme-iota 0.9.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 +674 -0
- data/README.md +17 -0
- data/_includes/footer.html +15 -0
- data/_includes/head.html +8 -0
- data/_includes/header.html +17 -0
- data/_layouts/default.html +18 -0
- data/_layouts/home.html +15 -0
- data/_layouts/page.html +12 -0
- data/_layouts/post.html +17 -0
- data/_sass/iota.scss +79 -0
- data/_sass/iota/_normalize.scss +341 -0
- data/_sass/iota/_syntax-highlighting.scss +70 -0
- data/assets/main.scss +4 -0
- metadata +128 -0
data/README.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# iota
|
2
|
+
|
3
|
+
A brutalist jekyll theme.
|
4
|
+
|
5
|
+
I was fascinated by a number of [comments](https://news.ycombinator.com/item?id=11517491) on Hacker News about brutalist web design. It seems that there's some contention on what brutalism means when it comes to the web. This is my attempt at a brutalism on the web. Here are the guidelines I've followed:
|
6
|
+
|
7
|
+
* Markup is as minimal and compliant as possible (with the exception of some header tags that aren't technically needed, but make site's markup more conistent as a whole).
|
8
|
+
* Use [normalize.css](https://necolas.github.io/normalize.css/) to provide a consistent base for all browsers.
|
9
|
+
* Keep the theme specific CSS as simple as possible. The vast majority of the changes are designed to increase readability/usability. Most are adding or removing spacing where appropriate.
|
10
|
+
* Embrace the default (normalized) browser styles as much as possible.
|
11
|
+
|
12
|
+
Additionally, I've borrowed the Github/Jekyll [syntax highlighting style sheet](https://github.com/jekyll/minima/blob/master/_sass/minima/_syntax-highlighting.scss) so code is consistent and readable.
|
13
|
+
|
14
|
+
## Guidelines
|
15
|
+
|
16
|
+
* Posts and pages should not include H1 tags
|
17
|
+
* License information in _config.yml is not escaped when emitted.
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<footer>
|
2
|
+
<p class="copyright"><small>Copyright © {{ page.date | default: site.time | date: "%Y" }} <a href="mailto:{{ site.author.email }}">{{ site.author.name }}</a></small></p>
|
3
|
+
|
4
|
+
{% if site.license %}
|
5
|
+
<p class="license"><small>{{ site.license }}</small></p>
|
6
|
+
{% endif %}
|
7
|
+
|
8
|
+
{% if site.powered_by %}
|
9
|
+
<p class="powered-by">
|
10
|
+
<small>
|
11
|
+
Powered by <a href="http://jekyllrb.com/">Jekyll</a> using the <a href="https://github.com/artlogic/iota">iota</a> theme.
|
12
|
+
</small>
|
13
|
+
</p>
|
14
|
+
{% endif %}
|
15
|
+
</footer>
|
data/_includes/head.html
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
<head>
|
2
|
+
<meta charset="utf-8">
|
3
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
5
|
+
{% seo %}
|
6
|
+
{% feed_meta %}
|
7
|
+
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
|
8
|
+
</head>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<header class="site" role="banner">
|
2
|
+
<nav role="navigation">
|
3
|
+
{% for my_page in site.pages %}
|
4
|
+
{% if my_page.title %}
|
5
|
+
<a href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
|
6
|
+
{% endif %}
|
7
|
+
{% endfor %}
|
8
|
+
</nav>
|
9
|
+
|
10
|
+
{% if page.layout == 'home' %}
|
11
|
+
<h1><a href="{{ "/" | relative_url }}">{{ site.title | escape }}</a></h1>
|
12
|
+
{% else %}
|
13
|
+
<p class="title"><a href="{{ "/" | relative_url }}">{{ site.title | escape }}</a></p>
|
14
|
+
{% endif %}
|
15
|
+
|
16
|
+
<p class="tag">{{ site.description | escape }}</p>
|
17
|
+
</header>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
3
|
+
|
4
|
+
{% include head.html %}
|
5
|
+
|
6
|
+
<body>
|
7
|
+
|
8
|
+
{% include header.html %}
|
9
|
+
|
10
|
+
<main aria-label="Content" role="main">
|
11
|
+
{{ content }}
|
12
|
+
</main>
|
13
|
+
|
14
|
+
{% include footer.html %}
|
15
|
+
|
16
|
+
</body>
|
17
|
+
|
18
|
+
</html>
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
{% for post in site.posts %}
|
5
|
+
<article class="summary" itemscope itemtype="http://schema.org/BlogPosting">
|
6
|
+
<header>
|
7
|
+
<h2 itemprop="name headline">
|
8
|
+
<a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
|
9
|
+
</h2>
|
10
|
+
<p>
|
11
|
+
<time datetime="{{ post.date | date_to_xmlschema }}" itemprop="datePublished">{{ post.date | date: "%b %-d, %Y" }}</time>
|
12
|
+
</p>
|
13
|
+
</header>
|
14
|
+
</article>
|
15
|
+
{% endfor %}
|
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
|
5
|
+
|
6
|
+
<header>
|
7
|
+
<h1 itemprop="name headline">{{ page.title | escape }}</h1>
|
8
|
+
<p>
|
9
|
+
<time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time>
|
10
|
+
</p>
|
11
|
+
</header>
|
12
|
+
|
13
|
+
<div itemprop="articleBody">
|
14
|
+
{{ content }}
|
15
|
+
</div>
|
16
|
+
|
17
|
+
</article>
|
data/_sass/iota.scss
ADDED
@@ -0,0 +1,79 @@
|
|
1
|
+
@import "iota/normalize";
|
2
|
+
@import "iota/syntax-highlighting";
|
3
|
+
|
4
|
+
$horizontal-rule: 1px solid #bbb;
|
5
|
+
$spacing: 0.5em;
|
6
|
+
|
7
|
+
// some inspiration taken from http://bettermotherfuckingwebsite.com/
|
8
|
+
|
9
|
+
html {
|
10
|
+
// readability - this isn't an aesthetic change, but a practical
|
11
|
+
// one - smaller, more closely spaced fonts are harder to read
|
12
|
+
font-size: 18px;
|
13
|
+
line-height: 1.6;
|
14
|
+
}
|
15
|
+
|
16
|
+
body {
|
17
|
+
// readability - shorter lines are easier to read
|
18
|
+
max-width: 650px;
|
19
|
+
|
20
|
+
// opinionated/readability - center the content
|
21
|
+
margin: 0 auto;
|
22
|
+
|
23
|
+
// readability - on narrow devices, we need some padding
|
24
|
+
padding: 0 $spacing;
|
25
|
+
}
|
26
|
+
|
27
|
+
time {
|
28
|
+
// opinionated/readability - emphasize times, it's clearer to the
|
29
|
+
// user if they stand out from the content
|
30
|
+
font-style: italic;
|
31
|
+
}
|
32
|
+
|
33
|
+
header, footer {
|
34
|
+
// opinionated/readability - padding increases clarity
|
35
|
+
padding: $spacing 0;
|
36
|
+
|
37
|
+
p {
|
38
|
+
// opinionated/readability - paragraphs in headers and footers
|
39
|
+
// don't need extra margins
|
40
|
+
margin: 0;
|
41
|
+
}
|
42
|
+
|
43
|
+
h1, h2 {
|
44
|
+
// opinionated/readability - headings in headers don't need
|
45
|
+
// extra margins
|
46
|
+
margin: 0;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
header.site {
|
51
|
+
// readability - clear separation of content
|
52
|
+
border-bottom: $horizontal-rule;
|
53
|
+
|
54
|
+
// opinionated - make the page title look like an h2
|
55
|
+
p.title {
|
56
|
+
font-size: 1.5em; // common h2 size (browser styles)
|
57
|
+
font-weight: bold;
|
58
|
+
}
|
59
|
+
|
60
|
+
nav {
|
61
|
+
// opinionated - nav should be aligned right - sets it apart
|
62
|
+
text-align: right;
|
63
|
+
|
64
|
+
a {
|
65
|
+
// readability - separate nav items
|
66
|
+
margin-left: $spacing;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
footer {
|
72
|
+
// readability - clear separation of content
|
73
|
+
border-top: $horizontal-rule;
|
74
|
+
}
|
75
|
+
|
76
|
+
article {
|
77
|
+
// opinionated/readability - articles should have some margin
|
78
|
+
margin: $spacing 0;
|
79
|
+
}
|
@@ -0,0 +1,341 @@
|
|
1
|
+
/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */
|
2
|
+
|
3
|
+
/* Document
|
4
|
+
========================================================================== */
|
5
|
+
|
6
|
+
/**
|
7
|
+
* 1. Correct the line height in all browsers.
|
8
|
+
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
9
|
+
*/
|
10
|
+
|
11
|
+
html {
|
12
|
+
line-height: 1.15; /* 1 */
|
13
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
14
|
+
}
|
15
|
+
|
16
|
+
/* Sections
|
17
|
+
========================================================================== */
|
18
|
+
|
19
|
+
/**
|
20
|
+
* Remove the margin in all browsers.
|
21
|
+
*/
|
22
|
+
|
23
|
+
body {
|
24
|
+
margin: 0;
|
25
|
+
}
|
26
|
+
|
27
|
+
/**
|
28
|
+
* Correct the font size and margin on `h1` elements within `section` and
|
29
|
+
* `article` contexts in Chrome, Firefox, and Safari.
|
30
|
+
*/
|
31
|
+
|
32
|
+
h1 {
|
33
|
+
font-size: 2em;
|
34
|
+
margin: 0.67em 0;
|
35
|
+
}
|
36
|
+
|
37
|
+
/* Grouping content
|
38
|
+
========================================================================== */
|
39
|
+
|
40
|
+
/**
|
41
|
+
* 1. Add the correct box sizing in Firefox.
|
42
|
+
* 2. Show the overflow in Edge and IE.
|
43
|
+
*/
|
44
|
+
|
45
|
+
hr {
|
46
|
+
box-sizing: content-box; /* 1 */
|
47
|
+
height: 0; /* 1 */
|
48
|
+
overflow: visible; /* 2 */
|
49
|
+
}
|
50
|
+
|
51
|
+
/**
|
52
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
53
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
54
|
+
*/
|
55
|
+
|
56
|
+
pre {
|
57
|
+
font-family: monospace, monospace; /* 1 */
|
58
|
+
font-size: 1em; /* 2 */
|
59
|
+
}
|
60
|
+
|
61
|
+
/* Text-level semantics
|
62
|
+
========================================================================== */
|
63
|
+
|
64
|
+
/**
|
65
|
+
* Remove the gray background on active links in IE 10.
|
66
|
+
*/
|
67
|
+
|
68
|
+
a {
|
69
|
+
background-color: transparent;
|
70
|
+
}
|
71
|
+
|
72
|
+
/**
|
73
|
+
* 1. Remove the bottom border in Chrome 57-
|
74
|
+
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
75
|
+
*/
|
76
|
+
|
77
|
+
abbr[title] {
|
78
|
+
border-bottom: none; /* 1 */
|
79
|
+
text-decoration: underline; /* 2 */
|
80
|
+
text-decoration: underline dotted; /* 2 */
|
81
|
+
}
|
82
|
+
|
83
|
+
/**
|
84
|
+
* Add the correct font weight in Chrome, Edge, and Safari.
|
85
|
+
*/
|
86
|
+
|
87
|
+
b,
|
88
|
+
strong {
|
89
|
+
font-weight: bolder;
|
90
|
+
}
|
91
|
+
|
92
|
+
/**
|
93
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
94
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
95
|
+
*/
|
96
|
+
|
97
|
+
code,
|
98
|
+
kbd,
|
99
|
+
samp {
|
100
|
+
font-family: monospace, monospace; /* 1 */
|
101
|
+
font-size: 1em; /* 2 */
|
102
|
+
}
|
103
|
+
|
104
|
+
/**
|
105
|
+
* Add the correct font size in all browsers.
|
106
|
+
*/
|
107
|
+
|
108
|
+
small {
|
109
|
+
font-size: 80%;
|
110
|
+
}
|
111
|
+
|
112
|
+
/**
|
113
|
+
* Prevent `sub` and `sup` elements from affecting the line height in
|
114
|
+
* all browsers.
|
115
|
+
*/
|
116
|
+
|
117
|
+
sub,
|
118
|
+
sup {
|
119
|
+
font-size: 75%;
|
120
|
+
line-height: 0;
|
121
|
+
position: relative;
|
122
|
+
vertical-align: baseline;
|
123
|
+
}
|
124
|
+
|
125
|
+
sub {
|
126
|
+
bottom: -0.25em;
|
127
|
+
}
|
128
|
+
|
129
|
+
sup {
|
130
|
+
top: -0.5em;
|
131
|
+
}
|
132
|
+
|
133
|
+
/* Embedded content
|
134
|
+
========================================================================== */
|
135
|
+
|
136
|
+
/**
|
137
|
+
* Remove the border on images inside links in IE 10.
|
138
|
+
*/
|
139
|
+
|
140
|
+
img {
|
141
|
+
border-style: none;
|
142
|
+
}
|
143
|
+
|
144
|
+
/* Forms
|
145
|
+
========================================================================== */
|
146
|
+
|
147
|
+
/**
|
148
|
+
* 1. Change the font styles in all browsers.
|
149
|
+
* 2. Remove the margin in Firefox and Safari.
|
150
|
+
*/
|
151
|
+
|
152
|
+
button,
|
153
|
+
input,
|
154
|
+
optgroup,
|
155
|
+
select,
|
156
|
+
textarea {
|
157
|
+
font-family: inherit; /* 1 */
|
158
|
+
font-size: 100%; /* 1 */
|
159
|
+
line-height: 1.15; /* 1 */
|
160
|
+
margin: 0; /* 2 */
|
161
|
+
}
|
162
|
+
|
163
|
+
/**
|
164
|
+
* Show the overflow in IE.
|
165
|
+
* 1. Show the overflow in Edge.
|
166
|
+
*/
|
167
|
+
|
168
|
+
button,
|
169
|
+
input { /* 1 */
|
170
|
+
overflow: visible;
|
171
|
+
}
|
172
|
+
|
173
|
+
/**
|
174
|
+
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
175
|
+
* 1. Remove the inheritance of text transform in Firefox.
|
176
|
+
*/
|
177
|
+
|
178
|
+
button,
|
179
|
+
select { /* 1 */
|
180
|
+
text-transform: none;
|
181
|
+
}
|
182
|
+
|
183
|
+
/**
|
184
|
+
* Correct the inability to style clickable types in iOS and Safari.
|
185
|
+
*/
|
186
|
+
|
187
|
+
button,
|
188
|
+
[type="button"],
|
189
|
+
[type="reset"],
|
190
|
+
[type="submit"] {
|
191
|
+
-webkit-appearance: button;
|
192
|
+
}
|
193
|
+
|
194
|
+
/**
|
195
|
+
* Remove the inner border and padding in Firefox.
|
196
|
+
*/
|
197
|
+
|
198
|
+
button::-moz-focus-inner,
|
199
|
+
[type="button"]::-moz-focus-inner,
|
200
|
+
[type="reset"]::-moz-focus-inner,
|
201
|
+
[type="submit"]::-moz-focus-inner {
|
202
|
+
border-style: none;
|
203
|
+
padding: 0;
|
204
|
+
}
|
205
|
+
|
206
|
+
/**
|
207
|
+
* Restore the focus styles unset by the previous rule.
|
208
|
+
*/
|
209
|
+
|
210
|
+
button:-moz-focusring,
|
211
|
+
[type="button"]:-moz-focusring,
|
212
|
+
[type="reset"]:-moz-focusring,
|
213
|
+
[type="submit"]:-moz-focusring {
|
214
|
+
outline: 1px dotted ButtonText;
|
215
|
+
}
|
216
|
+
|
217
|
+
/**
|
218
|
+
* Correct the padding in Firefox.
|
219
|
+
*/
|
220
|
+
|
221
|
+
fieldset {
|
222
|
+
padding: 0.35em 0.75em 0.625em;
|
223
|
+
}
|
224
|
+
|
225
|
+
/**
|
226
|
+
* 1. Correct the text wrapping in Edge and IE.
|
227
|
+
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
228
|
+
* 3. Remove the padding so developers are not caught out when they zero out
|
229
|
+
* `fieldset` elements in all browsers.
|
230
|
+
*/
|
231
|
+
|
232
|
+
legend {
|
233
|
+
box-sizing: border-box; /* 1 */
|
234
|
+
color: inherit; /* 2 */
|
235
|
+
display: table; /* 1 */
|
236
|
+
max-width: 100%; /* 1 */
|
237
|
+
padding: 0; /* 3 */
|
238
|
+
white-space: normal; /* 1 */
|
239
|
+
}
|
240
|
+
|
241
|
+
/**
|
242
|
+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
243
|
+
*/
|
244
|
+
|
245
|
+
progress {
|
246
|
+
vertical-align: baseline;
|
247
|
+
}
|
248
|
+
|
249
|
+
/**
|
250
|
+
* Remove the default vertical scrollbar in IE 10+.
|
251
|
+
*/
|
252
|
+
|
253
|
+
textarea {
|
254
|
+
overflow: auto;
|
255
|
+
}
|
256
|
+
|
257
|
+
/**
|
258
|
+
* 1. Add the correct box sizing in IE 10.
|
259
|
+
* 2. Remove the padding in IE 10.
|
260
|
+
*/
|
261
|
+
|
262
|
+
[type="checkbox"],
|
263
|
+
[type="radio"] {
|
264
|
+
box-sizing: border-box; /* 1 */
|
265
|
+
padding: 0; /* 2 */
|
266
|
+
}
|
267
|
+
|
268
|
+
/**
|
269
|
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
270
|
+
*/
|
271
|
+
|
272
|
+
[type="number"]::-webkit-inner-spin-button,
|
273
|
+
[type="number"]::-webkit-outer-spin-button {
|
274
|
+
height: auto;
|
275
|
+
}
|
276
|
+
|
277
|
+
/**
|
278
|
+
* 1. Correct the odd appearance in Chrome and Safari.
|
279
|
+
* 2. Correct the outline style in Safari.
|
280
|
+
*/
|
281
|
+
|
282
|
+
[type="search"] {
|
283
|
+
-webkit-appearance: textfield; /* 1 */
|
284
|
+
outline-offset: -2px; /* 2 */
|
285
|
+
}
|
286
|
+
|
287
|
+
/**
|
288
|
+
* Remove the inner padding in Chrome and Safari on macOS.
|
289
|
+
*/
|
290
|
+
|
291
|
+
[type="search"]::-webkit-search-decoration {
|
292
|
+
-webkit-appearance: none;
|
293
|
+
}
|
294
|
+
|
295
|
+
/**
|
296
|
+
* 1. Correct the inability to style clickable types in iOS and Safari.
|
297
|
+
* 2. Change font properties to `inherit` in Safari.
|
298
|
+
*/
|
299
|
+
|
300
|
+
::-webkit-file-upload-button {
|
301
|
+
-webkit-appearance: button; /* 1 */
|
302
|
+
font: inherit; /* 2 */
|
303
|
+
}
|
304
|
+
|
305
|
+
/* Interactive
|
306
|
+
========================================================================== */
|
307
|
+
|
308
|
+
/*
|
309
|
+
* Add the correct display in Edge, IE 10+, and Firefox.
|
310
|
+
*/
|
311
|
+
|
312
|
+
details {
|
313
|
+
display: block;
|
314
|
+
}
|
315
|
+
|
316
|
+
/*
|
317
|
+
* Add the correct display in all browsers.
|
318
|
+
*/
|
319
|
+
|
320
|
+
summary {
|
321
|
+
display: list-item;
|
322
|
+
}
|
323
|
+
|
324
|
+
/* Misc
|
325
|
+
========================================================================== */
|
326
|
+
|
327
|
+
/**
|
328
|
+
* Add the correct display in IE 10+.
|
329
|
+
*/
|
330
|
+
|
331
|
+
template {
|
332
|
+
display: none;
|
333
|
+
}
|
334
|
+
|
335
|
+
/**
|
336
|
+
* Add the correct display in IE 10.
|
337
|
+
*/
|
338
|
+
|
339
|
+
[hidden] {
|
340
|
+
display: none;
|
341
|
+
}
|