jekyll-theme-so-simple 3.1.3 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +34 -13
- data/_includes/head.html +1 -0
- data/_layouts/default.html +1 -1
- data/_sass/so-simple.scss +1 -1
- data/_sass/so-simple/_base.scss +2 -8
- data/_sass/so-simple/_buttons.scss +0 -28
- data/_sass/so-simple/_entries.scss +0 -4
- data/_sass/so-simple/_global.scss +9 -50
- data/_sass/so-simple/_notices.scss +0 -42
- data/_sass/so-simple/_page.scss +0 -1
- data/_sass/so-simple/_reset.scss +1 -2
- data/_sass/so-simple/_skin.scss +552 -0
- data/_sass/so-simple/_syntax-highlighting.scss +1 -267
- data/_sass/so-simple/_tables.scss +1 -1
- data/_sass/so-simple/_variables.scss +0 -34
- data/_sass/so-simple/utilities/_accessibility.scss +0 -1
- data/assets/css/skins/dark.scss +43 -0
- data/assets/css/skins/default.scss +44 -0
- data/assets/css/skins/light.scss +44 -0
- data/assets/js/main.min.js +1 -1
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 424ab8ebd67f98992f2023c950907f7021aa18420e2bc58f18cb29a4cb89832f
|
4
|
+
data.tar.gz: 1e721d896cff9a22999453b8078d4e4bdb86738f41ea495586255a7f243b495a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 623db3a3746726a38a90e0cdf346fbbff2b8c0b6e836fb3e45408b031efce4d44ca57e9df2cb04c30e5224d8e52ae7190f5e0a730e599ffa4cfaba86432d04eb
|
7
|
+
data.tar.gz: d1941295a0e987b21057b282d243cbede759e2932d68d556b86a2a9cce12915373dec5cb304a27b4bc2022174e3866a3687432cddaff3387d4314c21b7120113
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
6
6
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
7
7
|
|
8
|
+
## [3.2.0] - 10-29-2019
|
9
|
+
|
10
|
+
### Added
|
11
|
+
- Add light and dark skins. [#347](https://github.com/mmistakes/so-simple-theme/pull/347)
|
12
|
+
- Add support for customizable skins. [#347](https://github.com/mmistakes/so-simple-theme/pull/347)
|
13
|
+
|
14
|
+
### Fixed
|
15
|
+
- Fix security alerts and update [onchange](https://www.npmjs.com/package/onchange) development dependency in `package.json`. [#341](https://github.com/mmistakes/so-simple-theme/issues/341)
|
16
|
+
|
8
17
|
## [3.1.3] - 08-20-2019
|
9
18
|
|
10
19
|
### Changed
|
data/README.md
CHANGED
@@ -78,19 +78,20 @@ Additional [sample posts](https://mmistakes.github.io/so-simple-theme/posts/) ca
|
|
78
78
|
1. [Starting Fresh](#starting-fresh)
|
79
79
|
2. [Starting from `jekyll new`](#starting-from-jekyll-new)
|
80
80
|
4. [Configuring](#configuring)
|
81
|
-
1. [Site
|
82
|
-
2. [Site
|
83
|
-
3. [Site
|
84
|
-
4. [
|
85
|
-
5. [
|
86
|
-
6. [
|
87
|
-
7. [
|
88
|
-
8. [
|
89
|
-
9. [
|
90
|
-
10. [
|
91
|
-
11. [
|
92
|
-
12. [
|
93
|
-
13. [
|
81
|
+
1. [Site Skin](#site-skin)
|
82
|
+
2. [Site Locale](#site-locale)
|
83
|
+
3. [Site URL](#site-url)
|
84
|
+
4. [Site Base URL](#site-base-url)
|
85
|
+
5. [Date Format](#date-format)
|
86
|
+
6. [Reading Time](#reading-time)
|
87
|
+
7. [Mathematics](#mathematics)
|
88
|
+
8. [Google Fonts](#google-fonts)
|
89
|
+
9. [Pagination](#pagination)
|
90
|
+
10. [Search](#search)
|
91
|
+
11. [Taxonomy Pages](#taxonomy-pages)
|
92
|
+
12. [Comments (via Disqus)](#comments-via-disqus)
|
93
|
+
13. [Google Analytics](#google-analytics)
|
94
|
+
14. [Other](#other)
|
94
95
|
5. [Layouts](#layouts)
|
95
96
|
1. [`layout: default`](#layout-default)
|
96
97
|
2. [`layout: post`](#layout-post)
|
@@ -325,6 +326,26 @@ Configuration of site-wide elements (`locale`, `title`, `description`, `url`, `l
|
|
325
326
|
| `url` | The full URL to your site. | `"https://your-site.com"` |
|
326
327
|
| `logo` | Path to a site-wide logo used in masthead. | `/images/your-logo.png` |
|
327
328
|
|
329
|
+
### Site Skin
|
330
|
+
|
331
|
+
Three skins (default, light, and dark) are available to change the color palette of the theme.
|
332
|
+
|
333
|
+
| `default.css` | `light.css` | `dark.css` |
|
334
|
+
| --- | --- | --- |
|
335
|
+
| ![default skin](https://mmistakes.github.io/so-simple-theme/images/default-skin.png) | ![light skin](https://mmistakes.github.io/so-simple-theme/images/light-skin.png) | ![dark skin](https://mmistakes.github.io/so-simple-theme/images/dark-skin.png) |
|
336
|
+
|
337
|
+
```yaml
|
338
|
+
skin: "/assets/css/skins/default.css"
|
339
|
+
skin: "/assets/css/skins/light.css"
|
340
|
+
skin: "/assets/css/skins/dark.css"
|
341
|
+
```
|
342
|
+
|
343
|
+
To use a custom skin other than the ones provided:
|
344
|
+
|
345
|
+
1. Copy and rename [`/assets/css/skins/default.css`](https://github.com/mmistakes/so-simple-theme/blob/master/assets/css/skins/default.css) to your local repo.
|
346
|
+
2. Override and customize Sass variables as you see fit.
|
347
|
+
3. Update the `skin` path in `_config.yml` to reference this new skin `.css` file.
|
348
|
+
|
328
349
|
### Site Locale
|
329
350
|
|
330
351
|
**`site.locale`** is used to declare the primary language for each web page within the site.
|
data/_includes/head.html
CHANGED
@@ -24,6 +24,7 @@
|
|
24
24
|
</script>
|
25
25
|
|
26
26
|
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
|
27
|
+
<link rel="stylesheet" href="{{ site.skin | default: '/assets/css/skins/default.css' | relative_url }}">
|
27
28
|
{% if site.google_fonts %}
|
28
29
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family={%- for font in site.google_fonts -%}{{ font.name | replace: ' ', '+' }}{% if font.weights %}:{% endif %}{{ font.weights | remove: ' ' }}{% if forloop.last != true %}|{% endif %}{%- endfor -%}">
|
29
30
|
{% endif %}
|
data/_layouts/default.html
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<!--
|
3
|
-
So Simple Jekyll Theme 3.
|
3
|
+
So Simple Jekyll Theme 3.2.0
|
4
4
|
Copyright 2013-2019 Michael Rose - mademistakes.com | @mmistakes
|
5
5
|
Free for personal and commercial use under the MIT license
|
6
6
|
https://github.com/mmistakes/so-simple-theme/blob/master/LICENSE
|
data/_sass/so-simple.scss
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* So Simple Jekyll Theme 3.
|
2
|
+
* So Simple Jekyll Theme 3.2.0
|
3
3
|
* Copyright 2013-2019 Michael Rose - mademistakes.com | @mmistakes
|
4
4
|
* Free for personal and commercial use under the MIT license
|
5
5
|
* https://github.com/mmistakes/so-simple-theme/blob/master/LICENSE
|
data/_sass/so-simple/_base.scss
CHANGED
@@ -7,9 +7,7 @@ html {
|
|
7
7
|
}
|
8
8
|
|
9
9
|
body {
|
10
|
-
|
11
|
-
color: $text-color;
|
12
|
-
border-top: solid 0.25em $nav-background-color;
|
10
|
+
border-top: solid 0.25em;
|
13
11
|
}
|
14
12
|
|
15
13
|
blockquote,
|
@@ -37,6 +35,7 @@ kbd {
|
|
37
35
|
display: inline-block;
|
38
36
|
margin: 0 0.125em;
|
39
37
|
padding: 0.125em 0.5em;
|
38
|
+
color: #000;
|
40
39
|
border: 1px solid rgb(204, 204, 204);
|
41
40
|
border-radius: 3px;
|
42
41
|
background-color: rgb(247, 247, 247);
|
@@ -102,11 +101,6 @@ figcaption {
|
|
102
101
|
}
|
103
102
|
|
104
103
|
a {
|
105
|
-
color: $accent-color;
|
106
104
|
-webkit-transition: $global-transition;
|
107
105
|
transition: $global-transition;
|
108
|
-
|
109
|
-
&:hover {
|
110
|
-
color: shade($accent-color, 25%);
|
111
|
-
}
|
112
106
|
}
|
@@ -28,34 +28,6 @@
|
|
28
28
|
margin-left: -0.5em; /* override for hidden text*/
|
29
29
|
}
|
30
30
|
|
31
|
-
/* button colors */
|
32
|
-
$buttoncolors: (primary, $primary-color), (accent, $accent-color), (inverse, #fff),
|
33
|
-
(light-outline, transparent), (success, $success-color),
|
34
|
-
(warning, $warning-color), (danger, $danger-color), (info, $info-color),
|
35
|
-
(facebook, $facebook-color), (twitter, $twitter-color),
|
36
|
-
(google-plus, $google-plus-color), (linkedin, $linkedin-color),
|
37
|
-
(reddit, $reddit-color);
|
38
|
-
|
39
|
-
@each $buttoncolor, $color in $buttoncolors {
|
40
|
-
&--#{$buttoncolor} {
|
41
|
-
@include yiq-contrasted($color);
|
42
|
-
@if ($buttoncolor == inverse) {
|
43
|
-
border: 1px solid $border-color;
|
44
|
-
}
|
45
|
-
@if ($buttoncolor == light-outline) {
|
46
|
-
border: 1px solid #fff;
|
47
|
-
}
|
48
|
-
|
49
|
-
&:hover {
|
50
|
-
@include yiq-contrasted(mix(#000, $color, 20%));
|
51
|
-
}
|
52
|
-
|
53
|
-
&:visited {
|
54
|
-
@include yiq-contrasted($color);
|
55
|
-
}
|
56
|
-
}
|
57
|
-
}
|
58
|
-
|
59
31
|
/* fills width of parent container */
|
60
32
|
&--block {
|
61
33
|
display: block;
|
@@ -14,8 +14,6 @@
|
|
14
14
|
display: block;
|
15
15
|
margin: 0;
|
16
16
|
padding: 0.25em 0.75em 0.5em;
|
17
|
-
color: $nav-color;
|
18
|
-
background-color: $nav-background-color;
|
19
17
|
text-transform: uppercase;
|
20
18
|
text-decoration: none;
|
21
19
|
text-align: center;
|
@@ -35,8 +33,6 @@
|
|
35
33
|
margin: 0;
|
36
34
|
padding: 0.25em 0.75em;
|
37
35
|
list-style: none;
|
38
|
-
color: $nav-color;
|
39
|
-
background-color: $nav-background-color;
|
40
36
|
border-radius: 0 0 (2 * $border-radius) (2 * $border-radius);
|
41
37
|
|
42
38
|
@include breakpoint($medium) {
|
@@ -52,15 +48,10 @@
|
|
52
48
|
a {
|
53
49
|
display: block;
|
54
50
|
padding: 0.5em 0.75em;
|
55
|
-
color: $nav-color;
|
56
51
|
text-transform: uppercase;
|
57
52
|
text-decoration: none;
|
58
|
-
border: 1px solid
|
53
|
+
border: 1px solid;
|
59
54
|
border-radius: $border-radius;
|
60
|
-
|
61
|
-
&:hover {
|
62
|
-
border-color: $nav-color;
|
63
|
-
}
|
64
55
|
}
|
65
56
|
|
66
57
|
@include breakpoint($medium) {
|
@@ -87,7 +78,6 @@
|
|
87
78
|
font-weight: 700;
|
88
79
|
|
89
80
|
a {
|
90
|
-
color: $text-color;
|
91
81
|
text-decoration: none;
|
92
82
|
}
|
93
83
|
}
|
@@ -109,7 +99,7 @@
|
|
109
99
|
.site-logo-img {
|
110
100
|
width: $site-logo-width;
|
111
101
|
height: $site-logo-height;
|
112
|
-
border: 5px solid
|
102
|
+
border: 5px solid;
|
113
103
|
border-radius: $site-logo-width;
|
114
104
|
|
115
105
|
@include breakpoint($medium) {
|
@@ -130,7 +120,7 @@
|
|
130
120
|
margin: 2em 0;
|
131
121
|
padding: 2em 0;
|
132
122
|
text-align: center;
|
133
|
-
border-top: 1px solid
|
123
|
+
border-top: 1px solid;
|
134
124
|
|
135
125
|
.social-icons {
|
136
126
|
margin-bottom: 0.5em;
|
@@ -143,23 +133,18 @@
|
|
143
133
|
}
|
144
134
|
|
145
135
|
.copyright {
|
146
|
-
color: lighten($text-color, 35%);
|
147
136
|
font-size: 0.75em;
|
148
137
|
|
149
138
|
p {
|
150
139
|
margin: 0;
|
151
140
|
padding: 0;
|
152
141
|
}
|
153
|
-
|
154
|
-
a {
|
155
|
-
color: lighten($text-color, 35%);
|
156
|
-
}
|
157
142
|
}
|
158
143
|
|
159
144
|
.footnotes {
|
160
145
|
margin: 2rem 0;
|
161
146
|
padding-top: 1rem;
|
162
|
-
border-top: 1px solid
|
147
|
+
border-top: 1px solid;
|
163
148
|
font-size: 80%;
|
164
149
|
}
|
165
150
|
|
@@ -170,7 +155,6 @@
|
|
170
155
|
|
171
156
|
.back-to-top {
|
172
157
|
display: block;
|
173
|
-
color: lighten($text-color, 50%);
|
174
158
|
font-size: 0.75em;
|
175
159
|
text-transform: uppercase;
|
176
160
|
text-align: right;
|
@@ -182,7 +166,7 @@
|
|
182
166
|
padding-bottom: 1em;
|
183
167
|
|
184
168
|
&:not(:last-child) {
|
185
|
-
border-bottom: solid 1px
|
169
|
+
border-bottom: solid 1px;
|
186
170
|
}
|
187
171
|
|
188
172
|
+ .taxonomy-section {
|
@@ -193,14 +177,9 @@
|
|
193
177
|
.taxonomy-title {
|
194
178
|
@include fluid-type($min-vw, $max-vw, 28px, 32px);
|
195
179
|
margin-bottom: 0.5em;
|
196
|
-
color: lighten($text-color, 60%);
|
197
180
|
font-family: $base-font-family;
|
198
181
|
}
|
199
182
|
|
200
|
-
.taxonomy-count {
|
201
|
-
color: lighten($text-color, 50%);
|
202
|
-
}
|
203
|
-
|
204
183
|
.taxonomy-index {
|
205
184
|
display: grid;
|
206
185
|
grid-column-gap: 2em;
|
@@ -225,11 +204,7 @@
|
|
225
204
|
justify-content: space-between;
|
226
205
|
color: inherit;
|
227
206
|
text-decoration: none;
|
228
|
-
border-bottom: 1px solid
|
229
|
-
|
230
|
-
&:hover {
|
231
|
-
color: $accent-color;
|
232
|
-
}
|
207
|
+
border-bottom: 1px solid;
|
233
208
|
}
|
234
209
|
|
235
210
|
+ .taxonomy-section {
|
@@ -260,22 +235,15 @@
|
|
260
235
|
display: block;
|
261
236
|
margin-bottom: 0.25em;
|
262
237
|
padding: 0.5em 1em;
|
263
|
-
color: mix(#000, $border-color, 25%);
|
264
238
|
font-size: 14px;
|
265
239
|
font-weight: bold;
|
266
240
|
line-height: 1.5;
|
267
241
|
text-align: center;
|
268
242
|
text-decoration: none;
|
269
|
-
border: 1px solid
|
243
|
+
border: 1px solid;
|
270
244
|
border-radius: 0;
|
271
245
|
|
272
|
-
&.current,
|
273
|
-
&.current.disabled {
|
274
|
-
@include yiq-contrasted(mix(#000, $border-color, 25%));
|
275
|
-
}
|
276
|
-
|
277
246
|
&.disabled {
|
278
|
-
color: $border-color;
|
279
247
|
pointer-events: none;
|
280
248
|
cursor: not-allowed;
|
281
249
|
}
|
@@ -304,14 +272,14 @@
|
|
304
272
|
padding: 0.5em;
|
305
273
|
width: 100%;
|
306
274
|
font-size: 0.9em;
|
307
|
-
border: 2px solid
|
275
|
+
border: 2px solid;
|
308
276
|
border-radius: $border-radius;
|
309
277
|
}
|
310
278
|
|
311
279
|
.toc-wrapper {
|
312
280
|
display: inline-block;
|
313
281
|
margin-bottom: 1.5em;
|
314
|
-
border: 1px solid
|
282
|
+
border: 1px solid;
|
315
283
|
border-radius: $border-radius;
|
316
284
|
|
317
285
|
h2 {
|
@@ -326,8 +294,6 @@
|
|
326
294
|
align-items: center;
|
327
295
|
margin: 0;
|
328
296
|
padding: 0.75rem 1rem;
|
329
|
-
color: $base05;
|
330
|
-
background-color: $base00;
|
331
297
|
font-family: $base-font-family;
|
332
298
|
font-size: 0.75rem;
|
333
299
|
text-transform: uppercase;
|
@@ -356,7 +322,6 @@
|
|
356
322
|
margin-bottom: 0;
|
357
323
|
padding-left: 2rem;
|
358
324
|
overflow: hidden;
|
359
|
-
color: $base05;
|
360
325
|
font-size: 0.9rem;
|
361
326
|
-webkit-transition: height 350ms ease;
|
362
327
|
transition: height 350ms ease;
|
@@ -378,17 +343,11 @@
|
|
378
343
|
font-weight: 600;
|
379
344
|
text-decoration: none;
|
380
345
|
border-bottom: 1px dotted transparent;
|
381
|
-
|
382
|
-
&:hover,
|
383
|
-
&:focus {
|
384
|
-
border-bottom: 1px dotted $border-color;
|
385
|
-
}
|
386
346
|
}
|
387
347
|
|
388
348
|
ol {
|
389
349
|
padding-left: 0.5rem;
|
390
350
|
list-style-type: lower-roman;
|
391
|
-
background-color: $background-color;
|
392
351
|
}
|
393
352
|
}
|
394
353
|
}
|
@@ -55,45 +55,3 @@
|
|
55
55
|
}
|
56
56
|
}
|
57
57
|
}
|
58
|
-
|
59
|
-
/* Default notice */
|
60
|
-
|
61
|
-
.notice {
|
62
|
-
@include notice(lighten($base-color, 90%));
|
63
|
-
}
|
64
|
-
|
65
|
-
/* Primary notice */
|
66
|
-
|
67
|
-
.notice--primary {
|
68
|
-
@include notice(mix(#fff, $primary-color, 70%));
|
69
|
-
}
|
70
|
-
|
71
|
-
/* Accent notice */
|
72
|
-
|
73
|
-
.notice--accent {
|
74
|
-
@include notice(mix(#fff, $accent-color, 70%));
|
75
|
-
}
|
76
|
-
|
77
|
-
/* Info notice */
|
78
|
-
|
79
|
-
.notice--info {
|
80
|
-
@include notice(mix(#fff, $info-color, 70%));
|
81
|
-
}
|
82
|
-
|
83
|
-
/* Warning notice */
|
84
|
-
|
85
|
-
.notice--warning {
|
86
|
-
@include notice(mix(#fff, $warning-color, 70%));
|
87
|
-
}
|
88
|
-
|
89
|
-
/* Success notice */
|
90
|
-
|
91
|
-
.notice--success {
|
92
|
-
@include notice(mix(#fff, $success-color, 70%));
|
93
|
-
}
|
94
|
-
|
95
|
-
/* Danger notice */
|
96
|
-
|
97
|
-
.notice--danger {
|
98
|
-
@include notice(mix(#fff, $danger-color, 70%));
|
99
|
-
}
|