hematite 0.1.16 → 0.1.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47d41c5ad077de2f9a92abb5b1b7cf4de0b161579c77de474ffaf112a859c412
4
- data.tar.gz: 6115ed1ddb55c51ff476305b0ffe2b8d13df1ad66e2062b1ea35fd776e467a69
3
+ metadata.gz: e13c30f8073a911e836692a8f9b71aaf1133582d58ad48492898624a8749bc8b
4
+ data.tar.gz: e30cb4599ba4bf530ea06f542f892ef6ef648075e538f8bd83f0772a4c9d05b4
5
5
  SHA512:
6
- metadata.gz: d0089e6c81f4cceb7940a7de6bd305a554182d807cd9443264261bfd35ecb99016377e00dcf1b3523f84ea2e6330b16214b18bb87a439bca870b9fd6b4e9d7ed
7
- data.tar.gz: 0ba240c05e96ffae702be804c3aef4d2f7785fa1192543836f69cf54c1ac726d58d5ca44a6578f5e3bf1eedd8a3b07be68a628048d46e12f759d11cb284fa93d
6
+ metadata.gz: 2d6be697d7284fdd38d3ebbb1c8be3e78df5d4ea940cdd9fa247c0dda17459c4d4022c3882550b43f820bd2fa90a39121fb505ec8113ed897ab3cb003974b42a
7
+ data.tar.gz: 6cce82827a078b6f60d8cba97000bb7ff51af34ca2ed63106a630a9d895ab71873755c1871918defb97e90191686dca426a8e3cdc1c4f61e958d26e7125b775a
@@ -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: #fa0;
74
- --visited-link-color: #f0a;
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
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.16
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henry Heino
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-05 00:00:00.000000000 Z
11
+ date: 2022-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -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