jekyll-theme-jsblog 1.0.6 → 1.0.8
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/_includes/head.html +4 -0
- data/_sass/jsblog.scss +28 -17
- data/_sass/jsblog/_base.scss +5 -7
- data/_sass/jsblog/_layout.scss +5 -1
- data/_sass/jsblog/_syntax-highlighting.scss +3 -1
- data/assets/home.scss +10 -0
- data/assets/main.scss +0 -46
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea3f34bdc8828f00087f320bf34b2c83fa5ce9bc467d9a1c9fc4deafecc18bc4
|
4
|
+
data.tar.gz: bdfbe2b0a1927e1ff59a879075fc4dc29d3f0ca5c47d6e7c4f1e1827f976c55c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24d3a00fc17d777d9d2bc0f0b4e270ab6e170e352cf43458565d1c4a6f67ae157bb35d708d10b6810e8907ef992020887d6863033e09ca7f8cb6aeb1fc257fd8
|
7
|
+
data.tar.gz: 0db4c1dca436a492df34d96303b5fc9ae2ad9fbf588284c7faa72c58f131713a69b1da33f8e760c5989e06157e2ef40b714e5493d4bf222219f357bf6f51a84d
|
data/_includes/head.html
CHANGED
@@ -18,6 +18,10 @@
|
|
18
18
|
{% endif %}
|
19
19
|
|
20
20
|
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
|
21
|
+
{% if page.layout == 'home' %}
|
22
|
+
<link rel="stylesheet" href="{{ "/assets/home.css" | relative_url }}">
|
23
|
+
{% endif %}
|
24
|
+
|
21
25
|
<link rel="canonical" href="{{ canonical }}">
|
22
26
|
{% assign feed_path = "/feed.xml" %}
|
23
27
|
{% if site.feed and site.feed.path %}
|
data/_sass/jsblog.scss
CHANGED
@@ -41,17 +41,25 @@ $spacing-unit: 20px !default;
|
|
41
41
|
$page-content-padding: 80px !default;
|
42
42
|
|
43
43
|
// Colors
|
44
|
-
$grey-color:
|
45
|
-
$
|
46
|
-
$
|
47
|
-
$
|
44
|
+
$grey-color: #828282 !default;
|
45
|
+
$grey-color-light: lighten(#828282, 40%); // Use the $grey-color as base
|
46
|
+
$grey-color-lighter: lighten(#828282, 45%); // Use the $grey-color as base
|
47
|
+
$grey-color-dark: darken(#828282, 25%); // Use the $grey-color as base
|
48
|
+
$grey-color-darker: darken(#828282, 30%); // Use the $grey-color as base
|
49
|
+
$dm-grey-color-light: darken(#828282, 25%); // Use the $grey-color as base
|
50
|
+
$dm-grey-color-lighter: darken(#828282, 30%); // Use the $grey-color as base
|
51
|
+
$dm-grey-color-dark: lighten(#828282, 40%); // Use the $grey-color as base
|
52
|
+
$dm-grey-color-darker: lighten(#828282, 45%); // Use the $grey-color as base
|
53
|
+
|
54
|
+
$brand-color: #2568ba !default;
|
55
|
+
$a-color: #0070c9 !default;
|
56
|
+
$a-hover-opacity: .65 !default;
|
48
57
|
|
49
58
|
// Width of the content area
|
50
|
-
$
|
51
|
-
$on-
|
52
|
-
$on-
|
53
|
-
$on-
|
54
|
-
$on-small: 735px !default;
|
59
|
+
$on-palm: 692px !default;
|
60
|
+
$on-laptop: 980px !default;
|
61
|
+
$on-medium: 1068px !default;
|
62
|
+
$on-small: 735px !default;
|
55
63
|
|
56
64
|
// Variables that change with dark mode
|
57
65
|
:root {
|
@@ -60,10 +68,13 @@ $on-small: 735px !default;
|
|
60
68
|
--background-color: #ffffff;
|
61
69
|
--footer-background-color: #f2f2f2;
|
62
70
|
--footer-text-color: $grey-color;
|
63
|
-
--grey-color-light:
|
64
|
-
--grey-color-lighter:
|
65
|
-
--grey-color-dark:
|
66
|
-
--grey-color-darker:
|
71
|
+
--grey-color-light: #{$grey-color-light};
|
72
|
+
--grey-color-lighter: #{$grey-color-lighter};
|
73
|
+
--grey-color-dark: #{$grey-color-dark};
|
74
|
+
--grey-color-darker: #{$grey-color-darker};
|
75
|
+
|
76
|
+
--content-width: 750px; // Original 980px
|
77
|
+
--header-content-width: 1080px;
|
67
78
|
}
|
68
79
|
|
69
80
|
@media (prefers-color-scheme: dark) {
|
@@ -73,10 +84,10 @@ $on-small: 735px !default;
|
|
73
84
|
--background-color: #2C2C2C;
|
74
85
|
--footer-background-color: #414141;
|
75
86
|
--footer-text-color: lighten(#828282, 40%); // Use the $grey-color as base
|
76
|
-
--grey-color-light:
|
77
|
-
--grey-color-lighter:
|
78
|
-
--grey-color-dark:
|
79
|
-
--grey-color-darker:
|
87
|
+
--grey-color-light: #{$dm-grey-color-light};
|
88
|
+
--grey-color-lighter: #{$dm-grey-color-lighter};
|
89
|
+
--grey-color-dark: #{$dm-grey-color-dark};
|
90
|
+
--grey-color-darker: #{$dm-grey-color-darker};
|
80
91
|
}
|
81
92
|
}
|
82
93
|
|
data/_sass/jsblog/_base.scss
CHANGED
@@ -29,7 +29,7 @@ body {
|
|
29
29
|
font-feature-settings: "kern" 1;
|
30
30
|
font-kerning: normal;
|
31
31
|
letter-spacing: -.022em;
|
32
|
-
margin-bottom:
|
32
|
+
margin-bottom: 110px; // 35 + Footer Height
|
33
33
|
word-wrap: break-word;
|
34
34
|
}
|
35
35
|
|
@@ -178,11 +178,11 @@ hr {
|
|
178
178
|
/**
|
179
179
|
* Code formatting
|
180
180
|
*/
|
181
|
+
|
181
182
|
pre,
|
182
183
|
code {
|
183
184
|
font-family: $monospace-font-family;
|
184
185
|
font-size: 13px;
|
185
|
-
background-color: var(--grey-color-lighter);
|
186
186
|
}
|
187
187
|
|
188
188
|
code {
|
@@ -191,11 +191,10 @@ code {
|
|
191
191
|
}
|
192
192
|
|
193
193
|
pre {
|
194
|
-
padding:
|
194
|
+
padding: 20px 20px;
|
195
195
|
overflow-x: auto;
|
196
196
|
word-wrap: normal;
|
197
|
-
|
198
|
-
border-radius: 5px;
|
197
|
+
|
199
198
|
|
200
199
|
> code {
|
201
200
|
// border: 0;
|
@@ -210,7 +209,7 @@ pre {
|
|
210
209
|
* Wrapper
|
211
210
|
*/
|
212
211
|
.wrapper {
|
213
|
-
width:
|
212
|
+
width: var(--content-width);
|
214
213
|
margin-right: auto;
|
215
214
|
margin-left: auto;
|
216
215
|
@extend %clearfix;
|
@@ -225,7 +224,6 @@ pre {
|
|
225
224
|
}
|
226
225
|
|
227
226
|
|
228
|
-
|
229
227
|
/**
|
230
228
|
* Clearfix
|
231
229
|
*/
|
data/_sass/jsblog/_layout.scss
CHANGED
@@ -17,6 +17,10 @@
|
|
17
17
|
|
18
18
|
// Positioning context for the mobile navigation icon
|
19
19
|
position: relative;
|
20
|
+
|
21
|
+
& > .wrapper {
|
22
|
+
width: var(--header-content-width);
|
23
|
+
}
|
20
24
|
}
|
21
25
|
|
22
26
|
.site-title {
|
@@ -96,7 +100,7 @@
|
|
96
100
|
.social-icon {
|
97
101
|
font-size: $title-small-font-size;
|
98
102
|
display: inline-block;
|
99
|
-
padding: 0 0.
|
103
|
+
padding: 0 0.35em;
|
100
104
|
|
101
105
|
&,
|
102
106
|
&:visited {
|
@@ -4,10 +4,12 @@
|
|
4
4
|
.highlight {
|
5
5
|
text-align: left;
|
6
6
|
background-color: var(--grey-color-lighter);
|
7
|
+
border: 0 solid var(--text-color);
|
8
|
+
border-radius: 20px;
|
7
9
|
// @extend %vertical-rhythm;
|
8
10
|
|
9
11
|
.highlighter-rouge & {
|
10
|
-
background-color: var(--grey-color-
|
12
|
+
background-color: var(--grey-color-light);
|
11
13
|
}
|
12
14
|
|
13
15
|
.c { color: #998; font-style: italic } // Comment
|
data/assets/home.scss
ADDED
data/assets/main.scss
CHANGED
@@ -3,51 +3,5 @@
|
|
3
3
|
---
|
4
4
|
@charset "utf-8";
|
5
5
|
|
6
|
-
// Our variables
|
7
|
-
|
8
|
-
// $base-font-family: -apple-system-font, BlinkMacSystemFont, "San Francisco", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
9
|
-
// $monospace-font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace !default;
|
10
|
-
// $base-font-size: 17px;
|
11
|
-
// $nav-font-size: 16px;
|
12
|
-
// $base-font-weight: 400;
|
13
|
-
// $heavy-font-weight: 500;
|
14
|
-
// $small-font-size: $base-font-size * 0.875;
|
15
|
-
// $base-line-height: 1.5;
|
16
|
-
//
|
17
|
-
// $spacing-unit: 30px;
|
18
|
-
//
|
19
|
-
// // Link Colours
|
20
|
-
// $a-color: #0070c9;
|
21
|
-
// $a-hover-opacity: .65;
|
22
|
-
//
|
23
|
-
// // Colours
|
24
|
-
// $text-color: #333;
|
25
|
-
// $light-text-color: #fff;
|
26
|
-
// $background-color: #fff;
|
27
|
-
// $dark-background-color: #333;
|
28
|
-
// $footer-background-color: #f2f2f2;
|
29
|
-
// $brand-color: #2568ba;
|
30
|
-
// $a-color: #0070c9;
|
31
|
-
//
|
32
|
-
// $grey-color: #828282;
|
33
|
-
// $grey-color-light: lighten($grey-color, 40%);
|
34
|
-
// $grey-color-dark: darken($grey-color, 25%);
|
35
|
-
//
|
36
|
-
// // Width of the content area
|
37
|
-
// $content-width: 980px;
|
38
|
-
// $on-palm: 692px;
|
39
|
-
// $on-laptop: 980px;
|
40
|
-
|
41
|
-
// This theme also includes a mixin for defining media queries.
|
42
|
-
// Use media queries like this:
|
43
|
-
// @include media-query($on-palm) {
|
44
|
-
// .wrapper {
|
45
|
-
// padding-right: $spacing-unit / 2;
|
46
|
-
// padding-left: $spacing-unit / 2;
|
47
|
-
// }
|
48
|
-
// }
|
49
|
-
|
50
|
-
|
51
|
-
|
52
6
|
// Import partials from this theme.
|
53
7
|
@import "jsblog";
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-jsblog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julian Schiavo
|
@@ -107,6 +107,7 @@ files:
|
|
107
107
|
- _sass/jsblog/_base.scss
|
108
108
|
- _sass/jsblog/_layout.scss
|
109
109
|
- _sass/jsblog/_syntax-highlighting.scss
|
110
|
+
- assets/home.scss
|
110
111
|
- assets/main.scss
|
111
112
|
homepage: https://github.com/justjs/jekyll-theme-jsblog
|
112
113
|
licenses:
|