jekyll-wren 0.4 → 0.4.1
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/LICENSE.md +9 -9
- data/README.md +180 -177
- data/_includes/custom-foot.html +4 -4
- data/_includes/custom-head.html +13 -13
- data/_includes/custom-meta.html +5 -5
- data/_includes/footer.html +23 -23
- data/_includes/head.html +21 -21
- data/_includes/meta.html +82 -82
- data/_includes/navigation.html +70 -70
- data/_includes/reading-time.html +41 -41
- data/_includes/social-list.html +46 -46
- data/_includes/video-player.html +66 -66
- data/_layouts/author-list.html +73 -73
- data/_layouts/default.html +16 -16
- data/_layouts/error.html +9 -9
- data/_layouts/page.html +14 -14
- data/_layouts/post-list.html +67 -67
- data/_layouts/post.html +16 -16
- data/_layouts/tag-list.html +54 -54
- data/_sass/wren/content.scss +345 -345
- data/_sass/wren/initialize.scss +118 -118
- data/_sass/wren/layout.scss +295 -295
- data/assets/flav.svg +4 -4
- data/assets/nav-icons/about.svg +2 -2
- data/assets/nav-icons/blog.svg +2 -2
- data/assets/nav-icons/comments.svg +3 -3
- data/assets/nav-icons/default.svg +2 -2
- data/assets/nav-icons/home.svg +4 -4
- data/assets/nav-icons/rss.svg +2 -2
- data/assets/nav-icons/top.svg +2 -2
- data/assets/nav-icons/work.svg +4 -4
- data/assets/social-icons/Blogger.svg +3 -3
- data/assets/social-icons/Blogspot.svg +3 -0
- data/assets/social-icons/DEV.svg +3 -3
- data/assets/social-icons/Default.svg +3 -3
- data/assets/social-icons/Dribbble.svg +3 -3
- data/assets/social-icons/Facebook.svg +3 -3
- data/assets/social-icons/Flickr.svg +3 -3
- data/assets/social-icons/Ghost.svg +3 -3
- data/assets/social-icons/GitHub.svg +3 -3
- data/assets/social-icons/GitLab.svg +3 -3
- data/assets/social-icons/HowLongToBeat.svg +3 -0
- data/assets/social-icons/Instagram.svg +5 -5
- data/assets/social-icons/Keybase.svg +6 -6
- data/assets/social-icons/LinkedIn.svg +3 -3
- data/assets/social-icons/Mastodon.svg +3 -3
- data/assets/social-icons/Medium.svg +5 -5
- data/assets/social-icons/Micro.blog.svg +3 -3
- data/assets/social-icons/Pinterest.svg +3 -3
- data/assets/social-icons/Reddit.svg +3 -3
- data/assets/social-icons/StackOverflow.svg +3 -3
- data/assets/social-icons/StoryGraph.svg +6 -0
- data/assets/social-icons/Strava.svg +4 -0
- data/assets/social-icons/Telegram.svg +3 -3
- data/assets/social-icons/Tumblr.svg +3 -3
- data/assets/social-icons/Twitter.svg +3 -3
- data/assets/social-icons/Wordpress.svg +4 -4
- data/assets/social-icons/Wren.svg +3 -0
- data/assets/social-icons/YouTube.svg +3 -3
- data/assets/style.scss +14 -14
- data/errors/400.md +9 -9
- data/errors/403.md +9 -9
- data/errors/404.md +9 -9
- data/errors/418.md +12 -12
- data/errors/500.md +9 -9
- metadata +9 -8
data/_sass/wren/content.scss
CHANGED
@@ -1,345 +1,345 @@
|
|
1
|
-
// The content file controls the base styling of HTML content
|
2
|
-
// that Jekyll makes. Note that `layout.scss` tweaks some bits
|
3
|
-
// (e.g. headers) further for use in pages and posts.
|
4
|
-
|
5
|
-
|
6
|
-
// Setting Up
|
7
|
-
html {
|
8
|
-
font-size: $base-font-size;
|
9
|
-
// Reserves space for the scollbar even if not needed, which
|
10
|
-
// prevents the website interface shifting around when going
|
11
|
-
// between pages which do and don't need it.
|
12
|
-
overflow-y: scroll;
|
13
|
-
}
|
14
|
-
|
15
|
-
// Reset some basic elements
|
16
|
-
body, h1, h2, h3, h4, h5, h6,
|
17
|
-
p, blockquote, pre, hr,
|
18
|
-
dl, dd, ol, ul, figure {
|
19
|
-
margin: 0;
|
20
|
-
padding: 0;
|
21
|
-
}
|
22
|
-
|
23
|
-
|
24
|
-
// Basic Styling
|
25
|
-
// =============
|
26
|
-
|
27
|
-
body {
|
28
|
-
font: $base-font-weight #{$base-font-size}/#{$base-line-height} $base-font-family;
|
29
|
-
color: $text-color;
|
30
|
-
background-color: $background-color;
|
31
|
-
-webkit-text-size-adjust: 100%;
|
32
|
-
-webkit-font-feature-settings: "kern" 1;
|
33
|
-
-moz-font-feature-settings: "kern" 1;
|
34
|
-
-o-font-feature-settings: "kern" 1;
|
35
|
-
font-feature-settings: "kern" 1;
|
36
|
-
font-kerning: normal;
|
37
|
-
display: flex;
|
38
|
-
min-height: 100vh;
|
39
|
-
flex-direction: column;
|
40
|
-
overflow-wrap: break-word;
|
41
|
-
width: $content-width+$nav-bar-height;
|
42
|
-
max-width: 100%;
|
43
|
-
margin: 0 auto;
|
44
|
-
}
|
45
|
-
|
46
|
-
// Set `margin-bottom` to maintain vertical rhythm
|
47
|
-
h1, h2, h3, h4, h5, h6,
|
48
|
-
p, blockquote, pre,
|
49
|
-
ul, ol, dl, figure,
|
50
|
-
%vertical-rhythm {
|
51
|
-
margin-bottom: $spacing-unit / 2;
|
52
|
-
}
|
53
|
-
|
54
|
-
hr {
|
55
|
-
margin-top: $spacing-unit;
|
56
|
-
margin-bottom: $spacing-unit;
|
57
|
-
}
|
58
|
-
|
59
|
-
// `main` element
|
60
|
-
main {
|
61
|
-
display: block; // default is 'inline' in IE11
|
62
|
-
}
|
63
|
-
|
64
|
-
|
65
|
-
// Images
|
66
|
-
// ======
|
67
|
-
|
68
|
-
img {
|
69
|
-
max-width: 100%;
|
70
|
-
margin-bottom: $spacing-unit/2;
|
71
|
-
border-radius: $base-border-radius;
|
72
|
-
box-shadow: $base-shadow;
|
73
|
-
// Centres w/o text wrap on small displays
|
74
|
-
display: block;
|
75
|
-
margin-left: auto;
|
76
|
-
margin-right: auto;
|
77
|
-
@include if-large {
|
78
|
-
// Text wraps on large displays
|
79
|
-
vertical-align: middle;
|
80
|
-
display:inline;
|
81
|
-
}
|
82
|
-
}
|
83
|
-
|
84
|
-
img.left {
|
85
|
-
@include if-large {
|
86
|
-
float: left;
|
87
|
-
margin-right: $spacing-unit;
|
88
|
-
}
|
89
|
-
}
|
90
|
-
|
91
|
-
img.right {
|
92
|
-
@include if-large {
|
93
|
-
float: right;
|
94
|
-
margin-left: $spacing-unit;
|
95
|
-
}
|
96
|
-
}
|
97
|
-
|
98
|
-
figure > img {
|
99
|
-
display: block;
|
100
|
-
}
|
101
|
-
|
102
|
-
figcaption {
|
103
|
-
font-size: $small-font-size;
|
104
|
-
}
|
105
|
-
|
106
|
-
|
107
|
-
// Videos
|
108
|
-
// ======
|
109
|
-
|
110
|
-
.video-embed {
|
111
|
-
margin: 0 auto $spacing-unit/2 auto;
|
112
|
-
box-shadow: $base-shadow;
|
113
|
-
display: block;
|
114
|
-
max-width: 100%;
|
115
|
-
max-height: auto;
|
116
|
-
}
|
117
|
-
|
118
|
-
|
119
|
-
// Lists
|
120
|
-
// =====
|
121
|
-
|
122
|
-
ul, ol {
|
123
|
-
margin-left: $spacing-unit;
|
124
|
-
}
|
125
|
-
|
126
|
-
li {
|
127
|
-
> ul,
|
128
|
-
> ol {
|
129
|
-
margin-bottom: 0;
|
130
|
-
}
|
131
|
-
}
|
132
|
-
|
133
|
-
|
134
|
-
// Headings
|
135
|
-
// ========
|
136
|
-
|
137
|
-
h1, h2, h3, h4, h5, h6 {
|
138
|
-
font-weight: $base-header-weight;
|
139
|
-
}
|
140
|
-
|
141
|
-
h1 {
|
142
|
-
text-align: $base-h1-alignment;
|
143
|
-
// margin-bottom: $spacing-unit;
|
144
|
-
}
|
145
|
-
|
146
|
-
|
147
|
-
// Links
|
148
|
-
// =====
|
149
|
-
|
150
|
-
a {
|
151
|
-
color: $link-base-color;
|
152
|
-
text-decoration: none;
|
153
|
-
|
154
|
-
&:visited {
|
155
|
-
color: $link-visited-color;
|
156
|
-
}
|
157
|
-
|
158
|
-
&:hover {
|
159
|
-
color: $link-hover-color;
|
160
|
-
text-decoration: underline;
|
161
|
-
}
|
162
|
-
}
|
163
|
-
|
164
|
-
|
165
|
-
// Blockquotes
|
166
|
-
// ===========
|
167
|
-
|
168
|
-
blockquote {
|
169
|
-
color: $brand-color;
|
170
|
-
border-left: 4px solid $brand-color-light;
|
171
|
-
padding-left: $spacing-unit / 2;
|
172
|
-
@include relative-font-size(1.125);
|
173
|
-
font-style: italic;
|
174
|
-
|
175
|
-
> :last-child {
|
176
|
-
margin-bottom: 0;
|
177
|
-
}
|
178
|
-
|
179
|
-
i, em {
|
180
|
-
// Rather unitalicising, add a dotted underline
|
181
|
-
text-decoration: underline;
|
182
|
-
text-decoration-style: dotted;
|
183
|
-
}
|
184
|
-
}
|
185
|
-
|
186
|
-
|
187
|
-
// Code formatting
|
188
|
-
// ===============
|
189
|
-
|
190
|
-
pre,
|
191
|
-
code {
|
192
|
-
font-family: $code-font-family;
|
193
|
-
font-size: 0.9375em;
|
194
|
-
border: 1px solid $border-color;
|
195
|
-
box-shadow: $base-shadow;
|
196
|
-
border-radius: $base-border-radius/4;
|
197
|
-
background-color: $code-background-color;
|
198
|
-
}
|
199
|
-
|
200
|
-
code {
|
201
|
-
box-shadow: none;
|
202
|
-
padding: 1px 5px;
|
203
|
-
}
|
204
|
-
|
205
|
-
pre {
|
206
|
-
padding: 8px 12px;
|
207
|
-
overflow-x: auto;
|
208
|
-
|
209
|
-
> code {
|
210
|
-
border: 0;
|
211
|
-
padding-right: 0;
|
212
|
-
padding-left: 0;
|
213
|
-
}
|
214
|
-
}
|
215
|
-
|
216
|
-
.highlight {
|
217
|
-
border-radius: $base-border-radius;
|
218
|
-
background: $code-background-color;
|
219
|
-
@extend %vertical-rhythm;
|
220
|
-
|
221
|
-
.highlighter-rouge & {
|
222
|
-
background: $code-background-color;
|
223
|
-
}
|
224
|
-
|
225
|
-
// Syntax highlighting styles
|
226
|
-
.c { color: $syntax-comment-color; font-style: italic } // Comment
|
227
|
-
.err { color: $syntax-error-color; background-color: $syntax-err-background } // Error
|
228
|
-
.k { font-weight: bold } // Keyword
|
229
|
-
.o { font-weight: bold } // Operator
|
230
|
-
.cm { color: $syntax-comment-color; font-style: italic } // Comment.Multiline
|
231
|
-
.cp { color: $syntax-comment-color; font-weight: bold } // Comment.Preproc
|
232
|
-
.c1 { color: $syntax-comment-color; font-style: italic } // Comment.Single
|
233
|
-
.cs { color: $syntax-comment-color; font-weight: bold; font-style: italic } // Comment.Special
|
234
|
-
.gd { color: $syntax-ins-del-color; background-color: lighten($syntax-del-background, 10%) } // Generic.Deleted
|
235
|
-
.gd .x { color: $syntax-ins-del-color; background-color: $syntax-del-background } // Generic.Deleted.Specific
|
236
|
-
.ge { font-style: italic } // Generic.Emph
|
237
|
-
.gr { color: $syntax-error-color } // Generic.Error
|
238
|
-
.gh { color: $syntax-comment-color } // Generic.Heading
|
239
|
-
.gi { color: $syntax-ins-del-color; background-color: lighten($syntax-ins-background, 10%) } // Generic.Inserted
|
240
|
-
.gi .x { color: $syntax-ins-del-color; background-color: $syntax-ins-background } // Generic.Inserted.Specific
|
241
|
-
.go { color: $syntax-output-color } // Generic.Output
|
242
|
-
.gp { color: $syntax-prompt-color } // Generic.Prompt
|
243
|
-
.gs { font-weight: bold } // Generic.Strong
|
244
|
-
.gu { color: $syntax-subhead-color } // Generic.Subheading
|
245
|
-
.gt { color: $syntax-error-color } // Generic.Traceback
|
246
|
-
.kc { font-weight: bold } // Keyword.Constant
|
247
|
-
.kd { font-weight: bold } // Keyword.Declaration
|
248
|
-
.kp { font-weight: bold } // Keyword.Pseudo
|
249
|
-
.kr { font-weight: bold } // Keyword.Reserved
|
250
|
-
.kt { color: $syntax-class-color; font-weight: bold } // Keyword.Type
|
251
|
-
.m { color: $syntax-number-color } // Literal.Number
|
252
|
-
.s { color: $syntax-string-color } // Literal.String
|
253
|
-
.na { color: $syntax-variable-color } // Name.Attribute
|
254
|
-
.nb { color: $syntax-builtin-color } // Name.Builtin
|
255
|
-
.nc { color: $syntax-class-color; font-weight: bold } // Name.Class
|
256
|
-
.no { color: $syntax-variable-color } // Name.Constant
|
257
|
-
.ni { color: $syntax-entity-color } // Name.Entity
|
258
|
-
.ne { color: $syntax-error-color; font-weight: bold } // Name.Exception
|
259
|
-
.nf { color: $syntax-function-color; font-weight: bold } // Name.Function
|
260
|
-
.nn { color: $syntax-prompt-color } // Name.Namespace
|
261
|
-
.nt { color: $syntax-tag-color } // Name.Tag
|
262
|
-
.nv { color: $syntax-variable-color } // Name.Variable
|
263
|
-
.ow { font-weight: bold } // Operator.Word
|
264
|
-
.w { color: $syntax-whitespace-color } // Text.Whitespace
|
265
|
-
.mf { color: $syntax-number-color } // Literal.Number.Float
|
266
|
-
.mh { color: $syntax-number-color } // Literal.Number.Hex
|
267
|
-
.mi { color: $syntax-number-color } // Literal.Number.Integer
|
268
|
-
.mo { color: $syntax-number-color } // Literal.Number.Oct
|
269
|
-
.sb { color: $syntax-string-color } // Literal.String.Backtick
|
270
|
-
.sc { color: $syntax-string-color } // Literal.String.Char
|
271
|
-
.sd { color: $syntax-string-color } // Literal.String.Doc
|
272
|
-
.s2 { color: $syntax-string-color } // Literal.String.Double
|
273
|
-
.se { color: $syntax-string-color } // Literal.String.Escape
|
274
|
-
.sh { color: $syntax-string-color } // Literal.String.Heredoc
|
275
|
-
.si { color: $syntax-string-color } // Literal.String.Interpol
|
276
|
-
.sx { color: $syntax-string-color } // Literal.String.Other
|
277
|
-
.sr { color: $syntax-regex-color } // Literal.String.Regex
|
278
|
-
.s1 { color: $syntax-string-color } // Literal.String.Single
|
279
|
-
.ss { color: $syntax-symbol-color } // Literal.String.Symbol
|
280
|
-
.bp { color: $syntax-comment-color } // Name.Builtin.Pseudo
|
281
|
-
.vc { color: $syntax-variable-color } // Name.Variable.Class
|
282
|
-
.vg { color: $syntax-variable-color } // Name.Variable.Global
|
283
|
-
.vi { color: $syntax-variable-color } // Name.Variable.Instance
|
284
|
-
.il { color: $syntax-number-color } // Literal.Number.Integer.Long
|
285
|
-
}
|
286
|
-
|
287
|
-
|
288
|
-
// Clearfix
|
289
|
-
// ========
|
290
|
-
|
291
|
-
%clearfix:after {
|
292
|
-
content: "";
|
293
|
-
display: table;
|
294
|
-
clear: both;
|
295
|
-
}
|
296
|
-
|
297
|
-
|
298
|
-
// Table Formatting
|
299
|
-
// ================
|
300
|
-
|
301
|
-
table {
|
302
|
-
margin-bottom: $spacing-unit;
|
303
|
-
width: 100%;
|
304
|
-
text-align: $table-text-align;
|
305
|
-
color: $table-text-color;
|
306
|
-
border-collapse: collapse;
|
307
|
-
|
308
|
-
// Properties for the table's external border
|
309
|
-
border: 1px solid $table-border-color;
|
310
|
-
border-radius: $base-border-radius;
|
311
|
-
box-shadow: $base-shadow;
|
312
|
-
|
313
|
-
// Properties for the table's internal borders
|
314
|
-
th, td {
|
315
|
-
// All cells have the same padding rules
|
316
|
-
padding: ($spacing-unit / 3) ($spacing-unit / 2);
|
317
|
-
}
|
318
|
-
tr {
|
319
|
-
// Alternate row background colours
|
320
|
-
&:nth-child(even) {
|
321
|
-
background-color: $table-zebra-color;
|
322
|
-
}
|
323
|
-
// Internal vertical borders
|
324
|
-
border-bottom: 1px solid $table-border-color;
|
325
|
-
&:last-of-type { border-bottom: 0; }
|
326
|
-
}
|
327
|
-
td {
|
328
|
-
// Internal horizontal borders
|
329
|
-
border-right: 1px solid $table-border-color;
|
330
|
-
&:last-of-type { border-right: 0; }
|
331
|
-
}
|
332
|
-
th {
|
333
|
-
// Table header has its own colour properties
|
334
|
-
background-color: $table-header-bg-color;
|
335
|
-
border-bottom: 1px solid $table-header-border;
|
336
|
-
border-right: 1px solid $table-header-border;
|
337
|
-
&:last-of-type { border-right: 0; }
|
338
|
-
}
|
339
|
-
|
340
|
-
// Handle overflow if there isn't enough space to display
|
341
|
-
display: block;
|
342
|
-
overflow-x: auto;
|
343
|
-
-webkit-overflow-scrolling: touch;
|
344
|
-
-ms-overflow-style: -ms-autohiding-scrollbar;
|
345
|
-
}
|
1
|
+
// The content file controls the base styling of HTML content
|
2
|
+
// that Jekyll makes. Note that `layout.scss` tweaks some bits
|
3
|
+
// (e.g. headers) further for use in pages and posts.
|
4
|
+
|
5
|
+
|
6
|
+
// Setting Up
|
7
|
+
html {
|
8
|
+
font-size: $base-font-size;
|
9
|
+
// Reserves space for the scollbar even if not needed, which
|
10
|
+
// prevents the website interface shifting around when going
|
11
|
+
// between pages which do and don't need it.
|
12
|
+
overflow-y: scroll;
|
13
|
+
}
|
14
|
+
|
15
|
+
// Reset some basic elements
|
16
|
+
body, h1, h2, h3, h4, h5, h6,
|
17
|
+
p, blockquote, pre, hr,
|
18
|
+
dl, dd, ol, ul, figure {
|
19
|
+
margin: 0;
|
20
|
+
padding: 0;
|
21
|
+
}
|
22
|
+
|
23
|
+
|
24
|
+
// Basic Styling
|
25
|
+
// =============
|
26
|
+
|
27
|
+
body {
|
28
|
+
font: $base-font-weight #{$base-font-size}/#{$base-line-height} $base-font-family, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", Roboto, Helvetica, Arial, sans-serif;
|
29
|
+
color: $text-color;
|
30
|
+
background-color: $background-color;
|
31
|
+
-webkit-text-size-adjust: 100%;
|
32
|
+
-webkit-font-feature-settings: "kern" 1;
|
33
|
+
-moz-font-feature-settings: "kern" 1;
|
34
|
+
-o-font-feature-settings: "kern" 1;
|
35
|
+
font-feature-settings: "kern" 1;
|
36
|
+
font-kerning: normal;
|
37
|
+
display: flex;
|
38
|
+
min-height: 100vh;
|
39
|
+
flex-direction: column;
|
40
|
+
overflow-wrap: break-word;
|
41
|
+
width: $content-width+$nav-bar-height;
|
42
|
+
max-width: 100%;
|
43
|
+
margin: 0 auto;
|
44
|
+
}
|
45
|
+
|
46
|
+
// Set `margin-bottom` to maintain vertical rhythm
|
47
|
+
h1, h2, h3, h4, h5, h6,
|
48
|
+
p, blockquote, pre,
|
49
|
+
ul, ol, dl, figure,
|
50
|
+
%vertical-rhythm {
|
51
|
+
margin-bottom: $spacing-unit / 2;
|
52
|
+
}
|
53
|
+
|
54
|
+
hr {
|
55
|
+
margin-top: $spacing-unit;
|
56
|
+
margin-bottom: $spacing-unit;
|
57
|
+
}
|
58
|
+
|
59
|
+
// `main` element
|
60
|
+
main {
|
61
|
+
display: block; // default is 'inline' in IE11
|
62
|
+
}
|
63
|
+
|
64
|
+
|
65
|
+
// Images
|
66
|
+
// ======
|
67
|
+
|
68
|
+
img {
|
69
|
+
max-width: 100%;
|
70
|
+
margin-bottom: $spacing-unit/2;
|
71
|
+
border-radius: $base-border-radius;
|
72
|
+
box-shadow: $base-shadow;
|
73
|
+
// Centres w/o text wrap on small displays
|
74
|
+
display: block;
|
75
|
+
margin-left: auto;
|
76
|
+
margin-right: auto;
|
77
|
+
@include if-large {
|
78
|
+
// Text wraps on large displays
|
79
|
+
vertical-align: middle;
|
80
|
+
display:inline;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
img.left {
|
85
|
+
@include if-large {
|
86
|
+
float: left;
|
87
|
+
margin-right: $spacing-unit;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
|
91
|
+
img.right {
|
92
|
+
@include if-large {
|
93
|
+
float: right;
|
94
|
+
margin-left: $spacing-unit;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
figure > img {
|
99
|
+
display: block;
|
100
|
+
}
|
101
|
+
|
102
|
+
figcaption {
|
103
|
+
font-size: $small-font-size;
|
104
|
+
}
|
105
|
+
|
106
|
+
|
107
|
+
// Videos
|
108
|
+
// ======
|
109
|
+
|
110
|
+
.video-embed {
|
111
|
+
margin: 0 auto $spacing-unit/2 auto;
|
112
|
+
box-shadow: $base-shadow;
|
113
|
+
display: block;
|
114
|
+
max-width: 100%;
|
115
|
+
max-height: auto;
|
116
|
+
}
|
117
|
+
|
118
|
+
|
119
|
+
// Lists
|
120
|
+
// =====
|
121
|
+
|
122
|
+
ul, ol {
|
123
|
+
margin-left: $spacing-unit;
|
124
|
+
}
|
125
|
+
|
126
|
+
li {
|
127
|
+
> ul,
|
128
|
+
> ol {
|
129
|
+
margin-bottom: 0;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
|
134
|
+
// Headings
|
135
|
+
// ========
|
136
|
+
|
137
|
+
h1, h2, h3, h4, h5, h6 {
|
138
|
+
font-weight: $base-header-weight;
|
139
|
+
}
|
140
|
+
|
141
|
+
h1 {
|
142
|
+
text-align: $base-h1-alignment;
|
143
|
+
// margin-bottom: $spacing-unit;
|
144
|
+
}
|
145
|
+
|
146
|
+
|
147
|
+
// Links
|
148
|
+
// =====
|
149
|
+
|
150
|
+
a {
|
151
|
+
color: $link-base-color;
|
152
|
+
text-decoration: none;
|
153
|
+
|
154
|
+
&:visited {
|
155
|
+
color: $link-visited-color;
|
156
|
+
}
|
157
|
+
|
158
|
+
&:hover {
|
159
|
+
color: $link-hover-color;
|
160
|
+
text-decoration: underline;
|
161
|
+
}
|
162
|
+
}
|
163
|
+
|
164
|
+
|
165
|
+
// Blockquotes
|
166
|
+
// ===========
|
167
|
+
|
168
|
+
blockquote {
|
169
|
+
color: $brand-color;
|
170
|
+
border-left: 4px solid $brand-color-light;
|
171
|
+
padding-left: $spacing-unit / 2;
|
172
|
+
@include relative-font-size(1.125);
|
173
|
+
font-style: italic;
|
174
|
+
|
175
|
+
> :last-child {
|
176
|
+
margin-bottom: 0;
|
177
|
+
}
|
178
|
+
|
179
|
+
i, em {
|
180
|
+
// Rather unitalicising, add a dotted underline
|
181
|
+
text-decoration: underline;
|
182
|
+
text-decoration-style: dotted;
|
183
|
+
}
|
184
|
+
}
|
185
|
+
|
186
|
+
|
187
|
+
// Code formatting
|
188
|
+
// ===============
|
189
|
+
|
190
|
+
pre,
|
191
|
+
code {
|
192
|
+
font-family: $code-font-family, "Menlo", "Inconsolata", "Consolas", "Roboto Mono", "Ubuntu Mono", "Liberation Mono", "Courier New", monospace;
|
193
|
+
font-size: 0.9375em;
|
194
|
+
border: 1px solid $border-color;
|
195
|
+
box-shadow: $base-shadow;
|
196
|
+
border-radius: $base-border-radius/4;
|
197
|
+
background-color: $code-background-color;
|
198
|
+
}
|
199
|
+
|
200
|
+
code {
|
201
|
+
box-shadow: none;
|
202
|
+
padding: 1px 5px;
|
203
|
+
}
|
204
|
+
|
205
|
+
pre {
|
206
|
+
padding: 8px 12px;
|
207
|
+
overflow-x: auto;
|
208
|
+
|
209
|
+
> code {
|
210
|
+
border: 0;
|
211
|
+
padding-right: 0;
|
212
|
+
padding-left: 0;
|
213
|
+
}
|
214
|
+
}
|
215
|
+
|
216
|
+
.highlight {
|
217
|
+
border-radius: $base-border-radius;
|
218
|
+
background: $code-background-color;
|
219
|
+
@extend %vertical-rhythm;
|
220
|
+
|
221
|
+
.highlighter-rouge & {
|
222
|
+
background: $code-background-color;
|
223
|
+
}
|
224
|
+
|
225
|
+
// Syntax highlighting styles
|
226
|
+
.c { color: $syntax-comment-color; font-style: italic } // Comment
|
227
|
+
.err { color: $syntax-error-color; background-color: $syntax-err-background } // Error
|
228
|
+
.k { font-weight: bold } // Keyword
|
229
|
+
.o { font-weight: bold } // Operator
|
230
|
+
.cm { color: $syntax-comment-color; font-style: italic } // Comment.Multiline
|
231
|
+
.cp { color: $syntax-comment-color; font-weight: bold } // Comment.Preproc
|
232
|
+
.c1 { color: $syntax-comment-color; font-style: italic } // Comment.Single
|
233
|
+
.cs { color: $syntax-comment-color; font-weight: bold; font-style: italic } // Comment.Special
|
234
|
+
.gd { color: $syntax-ins-del-color; background-color: lighten($syntax-del-background, 10%) } // Generic.Deleted
|
235
|
+
.gd .x { color: $syntax-ins-del-color; background-color: $syntax-del-background } // Generic.Deleted.Specific
|
236
|
+
.ge { font-style: italic } // Generic.Emph
|
237
|
+
.gr { color: $syntax-error-color } // Generic.Error
|
238
|
+
.gh { color: $syntax-comment-color } // Generic.Heading
|
239
|
+
.gi { color: $syntax-ins-del-color; background-color: lighten($syntax-ins-background, 10%) } // Generic.Inserted
|
240
|
+
.gi .x { color: $syntax-ins-del-color; background-color: $syntax-ins-background } // Generic.Inserted.Specific
|
241
|
+
.go { color: $syntax-output-color } // Generic.Output
|
242
|
+
.gp { color: $syntax-prompt-color } // Generic.Prompt
|
243
|
+
.gs { font-weight: bold } // Generic.Strong
|
244
|
+
.gu { color: $syntax-subhead-color } // Generic.Subheading
|
245
|
+
.gt { color: $syntax-error-color } // Generic.Traceback
|
246
|
+
.kc { font-weight: bold } // Keyword.Constant
|
247
|
+
.kd { font-weight: bold } // Keyword.Declaration
|
248
|
+
.kp { font-weight: bold } // Keyword.Pseudo
|
249
|
+
.kr { font-weight: bold } // Keyword.Reserved
|
250
|
+
.kt { color: $syntax-class-color; font-weight: bold } // Keyword.Type
|
251
|
+
.m { color: $syntax-number-color } // Literal.Number
|
252
|
+
.s { color: $syntax-string-color } // Literal.String
|
253
|
+
.na { color: $syntax-variable-color } // Name.Attribute
|
254
|
+
.nb { color: $syntax-builtin-color } // Name.Builtin
|
255
|
+
.nc { color: $syntax-class-color; font-weight: bold } // Name.Class
|
256
|
+
.no { color: $syntax-variable-color } // Name.Constant
|
257
|
+
.ni { color: $syntax-entity-color } // Name.Entity
|
258
|
+
.ne { color: $syntax-error-color; font-weight: bold } // Name.Exception
|
259
|
+
.nf { color: $syntax-function-color; font-weight: bold } // Name.Function
|
260
|
+
.nn { color: $syntax-prompt-color } // Name.Namespace
|
261
|
+
.nt { color: $syntax-tag-color } // Name.Tag
|
262
|
+
.nv { color: $syntax-variable-color } // Name.Variable
|
263
|
+
.ow { font-weight: bold } // Operator.Word
|
264
|
+
.w { color: $syntax-whitespace-color } // Text.Whitespace
|
265
|
+
.mf { color: $syntax-number-color } // Literal.Number.Float
|
266
|
+
.mh { color: $syntax-number-color } // Literal.Number.Hex
|
267
|
+
.mi { color: $syntax-number-color } // Literal.Number.Integer
|
268
|
+
.mo { color: $syntax-number-color } // Literal.Number.Oct
|
269
|
+
.sb { color: $syntax-string-color } // Literal.String.Backtick
|
270
|
+
.sc { color: $syntax-string-color } // Literal.String.Char
|
271
|
+
.sd { color: $syntax-string-color } // Literal.String.Doc
|
272
|
+
.s2 { color: $syntax-string-color } // Literal.String.Double
|
273
|
+
.se { color: $syntax-string-color } // Literal.String.Escape
|
274
|
+
.sh { color: $syntax-string-color } // Literal.String.Heredoc
|
275
|
+
.si { color: $syntax-string-color } // Literal.String.Interpol
|
276
|
+
.sx { color: $syntax-string-color } // Literal.String.Other
|
277
|
+
.sr { color: $syntax-regex-color } // Literal.String.Regex
|
278
|
+
.s1 { color: $syntax-string-color } // Literal.String.Single
|
279
|
+
.ss { color: $syntax-symbol-color } // Literal.String.Symbol
|
280
|
+
.bp { color: $syntax-comment-color } // Name.Builtin.Pseudo
|
281
|
+
.vc { color: $syntax-variable-color } // Name.Variable.Class
|
282
|
+
.vg { color: $syntax-variable-color } // Name.Variable.Global
|
283
|
+
.vi { color: $syntax-variable-color } // Name.Variable.Instance
|
284
|
+
.il { color: $syntax-number-color } // Literal.Number.Integer.Long
|
285
|
+
}
|
286
|
+
|
287
|
+
|
288
|
+
// Clearfix
|
289
|
+
// ========
|
290
|
+
|
291
|
+
%clearfix:after {
|
292
|
+
content: "";
|
293
|
+
display: table;
|
294
|
+
clear: both;
|
295
|
+
}
|
296
|
+
|
297
|
+
|
298
|
+
// Table Formatting
|
299
|
+
// ================
|
300
|
+
|
301
|
+
table {
|
302
|
+
margin-bottom: $spacing-unit;
|
303
|
+
width: 100%;
|
304
|
+
text-align: $table-text-align;
|
305
|
+
color: $table-text-color;
|
306
|
+
border-collapse: collapse;
|
307
|
+
|
308
|
+
// Properties for the table's external border
|
309
|
+
border: 1px solid $table-border-color;
|
310
|
+
border-radius: $base-border-radius;
|
311
|
+
box-shadow: $base-shadow;
|
312
|
+
|
313
|
+
// Properties for the table's internal borders
|
314
|
+
th, td {
|
315
|
+
// All cells have the same padding rules
|
316
|
+
padding: ($spacing-unit / 3) ($spacing-unit / 2);
|
317
|
+
}
|
318
|
+
tr {
|
319
|
+
// Alternate row background colours
|
320
|
+
&:nth-child(even) {
|
321
|
+
background-color: $table-zebra-color;
|
322
|
+
}
|
323
|
+
// Internal vertical borders
|
324
|
+
border-bottom: 1px solid $table-border-color;
|
325
|
+
&:last-of-type { border-bottom: 0; }
|
326
|
+
}
|
327
|
+
td {
|
328
|
+
// Internal horizontal borders
|
329
|
+
border-right: 1px solid $table-border-color;
|
330
|
+
&:last-of-type { border-right: 0; }
|
331
|
+
}
|
332
|
+
th {
|
333
|
+
// Table header has its own colour properties
|
334
|
+
background-color: $table-header-bg-color;
|
335
|
+
border-bottom: 1px solid $table-header-border;
|
336
|
+
border-right: 1px solid $table-header-border;
|
337
|
+
&:last-of-type { border-right: 0; }
|
338
|
+
}
|
339
|
+
|
340
|
+
// Handle overflow if there isn't enough space to display
|
341
|
+
display: block;
|
342
|
+
overflow-x: auto;
|
343
|
+
-webkit-overflow-scrolling: touch;
|
344
|
+
-ms-overflow-style: -ms-autohiding-scrollbar;
|
345
|
+
}
|