jekyll-theme-gruv-poole 1.0.2 → 1.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 +4 -4
- data/README.md +13 -0
- data/_sass/_custom.scss +3 -0
- data/_sass/_grid.scss +28 -0
- data/_sass/_home.scss +1 -2
- data/_sass/_mixins.scss +5 -0
- data/_sass/_posts.scss +1 -1
- data/_sass/_utilities.scss +26 -0
- data/_sass/_variables.scss +1 -3
- data/_sass/code/_wrappers.scss +7 -5
- data/assets/main.scss +3 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: daa72d72b57e5ea8b0d0bac646a04e32c727462c51906ce32fc03012d03e5fd8
|
4
|
+
data.tar.gz: f8e8f80918f86910618a2216b96c562381b016a14f7d9c602d983ecd095ab4fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9b98a4a6fab6683907a5dfb9988f7421e7f898598342d45ed379bbffaa097f5b3e7b1b94ab89027b869b9ca5288f97ef6af211a6c2badec328e092b10207552
|
7
|
+
data.tar.gz: eb3d8b0620de1f7247dbf49f94ca7586987e030965afa58c9ea7ac5cfb8063a1bc6584526baa662d5121cab42acca51ebdedcd7e420087d51e866ebff2a383ce
|
data/README.md
CHANGED
@@ -74,6 +74,19 @@ All of the site's styling resides in the `_sass` directory. The most noteworthy
|
|
74
74
|
|
75
75
|
The theme's main style file that ultimately gets imported to the site's base HTML layout is `/assets/main.scss`. This `main.scss` file imports all of the Sass files in the `_sass` directory and Jekyll's Sass compilation outputs a single `main.css` similar to Webpack.
|
76
76
|
|
77
|
+
#### Highlights
|
78
|
+
|
79
|
+
Some highlights include [Bootstrap-inspired](https://getbootstrap.com/docs/5.3/utilities/spacing/) spacing utility classes:
|
80
|
+
```
|
81
|
+
m-x, mt-x, mb-x, p-x, pt-x, pb-x
|
82
|
+
```
|
83
|
+
As well as a couple of simple responsive grid classes for two column support on desktop:
|
84
|
+
```
|
85
|
+
.row-md-1-1, .row-md-1-2, .row-md-2-1
|
86
|
+
```
|
87
|
+
|
88
|
+
**Want to add your own styles?** Create a file entitled `_sass/_custom.scss` and add them there.
|
89
|
+
|
77
90
|
## Configuration Options
|
78
91
|
|
79
92
|
All the options and content in this section are configured in your site's `_config.yml` file. Note that [YAML](https://yaml.org/) syntax is very specific about spacing.
|
data/_sass/_custom.scss
ADDED
data/_sass/_grid.scss
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
@use 'variables';
|
2
|
+
@use 'mixins' as *;
|
3
|
+
|
4
|
+
/*
|
5
|
+
* Simple responsive grids for
|
6
|
+
* side-by-side content
|
7
|
+
*/
|
8
|
+
.row-md-1-1, .row-md-1-2, .row-md-2-1 {
|
9
|
+
display: grid;
|
10
|
+
gap: 1em;
|
11
|
+
}
|
12
|
+
|
13
|
+
@media (min-width: variables.$breakpoint-md) {
|
14
|
+
.row-md-1-1 {
|
15
|
+
@include grid;
|
16
|
+
grid-template-columns: 1fr 1fr;
|
17
|
+
}
|
18
|
+
|
19
|
+
.row-md-1-2 {
|
20
|
+
@include grid;
|
21
|
+
grid-template-columns: 1fr 2fr;
|
22
|
+
}
|
23
|
+
|
24
|
+
.row-md-2-1 {
|
25
|
+
@include grid;
|
26
|
+
grid-template-columns: 2fr 1fr;
|
27
|
+
}
|
28
|
+
}
|
data/_sass/_home.scss
CHANGED
data/_sass/_mixins.scss
CHANGED
data/_sass/_posts.scss
CHANGED
@@ -102,7 +102,7 @@
|
|
102
102
|
// on elements of a post
|
103
103
|
@media (min-width: variables.$breakpoint-md) {
|
104
104
|
.post {
|
105
|
-
p, ul, ol, blockquote
|
105
|
+
p, ul, ol, blockquote, table, .highlighter-rouge, figure.highlight {
|
106
106
|
max-width: variables.$max-content-width;
|
107
107
|
}
|
108
108
|
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
@use 'sass:list';
|
2
|
+
|
3
|
+
@mixin generateUtilityClasses($prefix, $property) {
|
4
|
+
$scales: [0, .25, .5, 1, 1.5, 3];
|
5
|
+
|
6
|
+
@for $i from 1 through list.length($scales) {
|
7
|
+
// scale of current index
|
8
|
+
$scale: list.nth($scales, $i);
|
9
|
+
$space: var(--spacer);
|
10
|
+
|
11
|
+
// create property
|
12
|
+
.#{$prefix}-#{$i - 1} {
|
13
|
+
#{$property}: calc(var(--spacer) * $scale);
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
// Margin utilities (ex: m-0, mt-1, mb-5)
|
19
|
+
@include generateUtilityClasses(m, margin);
|
20
|
+
@include generateUtilityClasses(mt, margin-top);
|
21
|
+
@include generateUtilityClasses(mb, margin-bottom);
|
22
|
+
|
23
|
+
// Padding utilities (ex: p-0, pt-1, pb-5)
|
24
|
+
@include generateUtilityClasses(p, padding);
|
25
|
+
@include generateUtilityClasses(pt, padding-top);
|
26
|
+
@include generateUtilityClasses(pb, padding-bottom);
|
data/_sass/_variables.scss
CHANGED
@@ -75,7 +75,6 @@ $wcag-code-on-dark: color.scale(#fb4934, $lightness: 8%);
|
|
75
75
|
--quote-color: var(--blue-dark);
|
76
76
|
--quote-accent: var(--blue);
|
77
77
|
--code-color: var(--red-dark);
|
78
|
-
--code-color-wcag: var(--red-dark);
|
79
78
|
}
|
80
79
|
|
81
80
|
/* Dark theme specific contrast and colors */
|
@@ -94,7 +93,6 @@ $wcag-code-on-dark: color.scale(#fb4934, $lightness: 8%);
|
|
94
93
|
--alert: var(--yellow);
|
95
94
|
--quote-color: var(--blue-light);
|
96
95
|
--quote-accent: var(--blue);
|
97
|
-
--code-color:
|
98
|
-
--code-color-wcag: #{$wcag-code-on-dark};
|
96
|
+
--code-color: #{$wcag-code-on-dark};
|
99
97
|
}
|
100
98
|
}
|
data/_sass/code/_wrappers.scss
CHANGED
@@ -11,7 +11,13 @@ pre {
|
|
11
11
|
|
12
12
|
code {
|
13
13
|
font-size: 85%;
|
14
|
-
|
14
|
+
}
|
15
|
+
|
16
|
+
// Only apply code color to inline
|
17
|
+
// code elements. Multiline are handled
|
18
|
+
// through Rouge (and applies gruvbox.scss styles)
|
19
|
+
code:not(pre>code) {
|
20
|
+
color: var(--code-color);
|
15
21
|
}
|
16
22
|
|
17
23
|
pre {
|
@@ -32,10 +38,6 @@ pre {
|
|
32
38
|
margin-bottom: 0;
|
33
39
|
}
|
34
40
|
|
35
|
-
code {
|
36
|
-
color: var(--code-color);
|
37
|
-
}
|
38
|
-
|
39
41
|
// Triple backticks (code fencing) doubles the .highlight elements
|
40
42
|
.highlight {
|
41
43
|
padding: 0;
|
data/assets/main.scss
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-gruv-poole
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamison Griffith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -59,10 +59,13 @@ files:
|
|
59
59
|
- _layouts/privacy-policy.html
|
60
60
|
- _sass/_base.scss
|
61
61
|
- _sass/_components.scss
|
62
|
+
- _sass/_custom.scss
|
63
|
+
- _sass/_grid.scss
|
62
64
|
- _sass/_home.scss
|
63
65
|
- _sass/_masthead.scss
|
64
66
|
- _sass/_mixins.scss
|
65
67
|
- _sass/_posts.scss
|
68
|
+
- _sass/_utilities.scss
|
66
69
|
- _sass/_variables.scss
|
67
70
|
- _sass/code/_gruvbox.scss
|
68
71
|
- _sass/code/_wrappers.scss
|