hematite 0.1.16 → 0.1.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/recent_posts.html +1 -1
- data/_sass/_colors.scss +2 -2
- data/_sass/_elements.scss +19 -0
- data/_sass/_rogue.scss +17 -0
- data/assets/js/fixTasklists.mjs +21 -0
- data/assets/js/main.mjs +2 -0
- data/assets/js/sidebar.mjs +7 -6
- metadata +10 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9871fa407bada3c6ea89174286d18c636368cb1d5f682034645ef30f133dadf4
|
4
|
+
data.tar.gz: ee26cdd47410d26122a37931f53293855ce18220605477633795abd9baa506b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2550bc917619d6386ed93a874bb55b815433ada94ed8917f6d011307622db1fd300ddee934f43aadcee654a63415151546571e7c13fb2b0d9677545cff88b534
|
7
|
+
data.tar.gz: 68680acd809cedbacdc5a4a62488b8293f8d92fefd184b64c41337d1f30e7c9737929527a8f5d27e3aabe1361deaf70330e17dd876439d29637e06c5c4ebb8e8
|
data/_includes/recent_posts.html
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
{% for post in site.posts limit:recent_post_limit %}
|
6
6
|
<li>
|
7
7
|
<h2>
|
8
|
-
<a href="{{ post.url }}">{{ post.title }}</a>
|
8
|
+
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
9
9
|
<span class="post-date">{{ post.date | date_to_string }}</span>
|
10
10
|
</h2>
|
11
11
|
<p class="post-description">{{ post.content | strip_html | truncate: 200 }}</p>
|
data/_sass/_colors.scss
CHANGED
@@ -70,8 +70,8 @@
|
|
70
70
|
--primary-text-color: white;
|
71
71
|
--secondary-text-color: white;
|
72
72
|
--text-color-faint: #ccc;
|
73
|
-
--link-color: #
|
74
|
-
--visited-link-color: #
|
73
|
+
--link-color: #fb3;
|
74
|
+
--visited-link-color: #f3b;
|
75
75
|
|
76
76
|
--selected-item-fg-color: white;
|
77
77
|
--selected-item-bg-color: #530033;
|
data/_sass/_elements.scss
CHANGED
@@ -186,6 +186,25 @@ a.settings-btn {
|
|
186
186
|
}
|
187
187
|
}
|
188
188
|
|
189
|
+
div.boxed {
|
190
|
+
border: 1px solid var(--line-color-light);
|
191
|
+
border-radius: 2px;
|
192
|
+
padding: 14px;
|
193
|
+
}
|
194
|
+
|
195
|
+
ul.task-list {
|
196
|
+
li.task-list-item {
|
197
|
+
&::marker {
|
198
|
+
content: "";
|
199
|
+
}
|
200
|
+
|
201
|
+
.task-list-item-checkbox {
|
202
|
+
margin-left: -15px;
|
203
|
+
margin-right: 15px;
|
204
|
+
}
|
205
|
+
}
|
206
|
+
}
|
207
|
+
|
189
208
|
// Invert while trying to preserve color hue.
|
190
209
|
@mixin img-invert {
|
191
210
|
filter: invert(1) hue-rotate(180deg);
|
data/_sass/_rogue.scss
CHANGED
@@ -47,4 +47,21 @@
|
|
47
47
|
.n, .nv, .nf, .nt, .na, .nx, .nd {
|
48
48
|
color: var(--syntax-name-fg);
|
49
49
|
}
|
50
|
+
|
51
|
+
// Markdown
|
52
|
+
|
53
|
+
// Headings
|
54
|
+
.gh, .gs {
|
55
|
+
font-weight: bold;
|
56
|
+
}
|
57
|
+
|
58
|
+
// Italics
|
59
|
+
.ge {
|
60
|
+
font-style: italic;
|
61
|
+
}
|
62
|
+
|
63
|
+
// Code
|
64
|
+
.sb {
|
65
|
+
border: 1px solid var(--line-color-light);
|
66
|
+
}
|
50
67
|
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
|
2
|
+
export default () => {
|
3
|
+
const taskLists = document.querySelectorAll('.task-list-item > input.task-list-item-checkbox');
|
4
|
+
|
5
|
+
for (const input of taskLists) {
|
6
|
+
|
7
|
+
// Disabled checkboxes have styling that make their values hard
|
8
|
+
// to see. Effectively disable them, without actually setting the
|
9
|
+
// disabled property.
|
10
|
+
input.setAttribute('aria-disabled', 'true');
|
11
|
+
input.removeAttribute('disabled');
|
12
|
+
|
13
|
+
const origValue = input.checked;
|
14
|
+
input.addEventListener('input', () => {
|
15
|
+
input.checked = origValue;
|
16
|
+
});
|
17
|
+
input.addEventListener('click', () => {
|
18
|
+
input.checked = origValue;
|
19
|
+
});
|
20
|
+
}
|
21
|
+
};
|
data/assets/js/main.mjs
CHANGED
@@ -4,6 +4,7 @@ import handleSidebar from "./sidebar.mjs";
|
|
4
4
|
import handleSearch from "./search.mjs";
|
5
5
|
import autoExpandDropdowns from "./dropdownExpander.mjs";
|
6
6
|
import makeElemsScrollable from "./scrollables.mjs";
|
7
|
+
import fixTaskLists from './fixTasklists.mjs';
|
7
8
|
import Settings from "./Settings.mjs";
|
8
9
|
|
9
10
|
// After loading elements, images, css, etc.
|
@@ -19,6 +20,7 @@ addEventListener("load", () => {
|
|
19
20
|
addEventListener("DOMContentLoaded", () => {
|
20
21
|
handleSidebar();
|
21
22
|
makeElemsScrollable();
|
23
|
+
fixTaskLists();
|
22
24
|
});
|
23
25
|
|
24
26
|
// Apply user-specified settings
|
data/assets/js/sidebar.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { stringLookup } from "./strings.mjs";
|
2
2
|
import { announceForAccessibility } from "./PageAlert.mjs";
|
3
|
-
|
3
|
+
import AsyncUtil from "./AsyncUtil.mjs";
|
4
4
|
|
5
5
|
function handleSidebar() {
|
6
6
|
const toggleBtn = document.querySelector(`button#toggle_sidebar_btn`);
|
@@ -38,10 +38,12 @@ function handleSidebar() {
|
|
38
38
|
};
|
39
39
|
|
40
40
|
// Expand the sidebar with/without animation.
|
41
|
-
const autoExpandSidebar = (noAnimations) => {
|
41
|
+
const autoExpandSidebar = async (noAnimations) => {
|
42
42
|
if (noAnimations) {
|
43
43
|
// Don't animate the sidebar if auto-expanding.
|
44
44
|
sidebar.style.transition = "none";
|
45
|
+
|
46
|
+
await AsyncUtil.nextAnimationFrame();
|
45
47
|
}
|
46
48
|
|
47
49
|
let remainingSpace = window.innerWidth - mainContainer.clientWidth;
|
@@ -54,14 +56,13 @@ function handleSidebar() {
|
|
54
56
|
setSidebarOpen(false);
|
55
57
|
}
|
56
58
|
|
57
|
-
|
58
59
|
updateBtn();
|
59
60
|
|
60
61
|
if (noAnimations) {
|
62
|
+
await AsyncUtil.nextAnimationFrame();
|
63
|
+
|
61
64
|
// Reset the sidebar's transition.
|
62
|
-
|
63
|
-
sidebar.style.transition = "";
|
64
|
-
});
|
65
|
+
sidebar.style.transition = "";
|
65
66
|
}
|
66
67
|
};
|
67
68
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hematite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henry Heino
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -16,15 +16,15 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '4.
|
19
|
+
version: '4.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '4.
|
27
|
-
description:
|
26
|
+
version: '4.3'
|
27
|
+
description:
|
28
28
|
email:
|
29
29
|
- personalizedrefrigerator@gmail.com
|
30
30
|
executables: []
|
@@ -83,6 +83,7 @@ files:
|
|
83
83
|
- assets/js/UrlHelper.mjs
|
84
84
|
- assets/js/assertions.mjs
|
85
85
|
- assets/js/dropdownExpander.mjs
|
86
|
+
- assets/js/fixTasklists.mjs
|
86
87
|
- assets/js/layout/calendar.mjs
|
87
88
|
- assets/js/layout/post.mjs
|
88
89
|
- assets/js/layout/remark_slideshow.mjs
|
@@ -177,7 +178,7 @@ homepage: https://github.com/personalizedrefrigerator/jekyll-hematite-theme
|
|
177
178
|
licenses:
|
178
179
|
- MIT
|
179
180
|
metadata: {}
|
180
|
-
post_install_message:
|
181
|
+
post_install_message:
|
181
182
|
rdoc_options: []
|
182
183
|
require_paths:
|
183
184
|
- lib
|
@@ -192,8 +193,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
193
|
- !ruby/object:Gem::Version
|
193
194
|
version: '0'
|
194
195
|
requirements: []
|
195
|
-
rubygems_version: 3.3.
|
196
|
-
signing_key:
|
196
|
+
rubygems_version: 3.3.25
|
197
|
+
signing_key:
|
197
198
|
specification_version: 4
|
198
199
|
summary: A responsive and elegant Jekyll theme.
|
199
200
|
test_files: []
|