minimal-mistakes-jekyll 4.26.0 → 4.26.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/_includes/copyright.html +1 -1
- data/_includes/copyright.js +1 -1
- data/_sass/minimal-mistakes/_copyright.scss +1 -1
- data/_sass/minimal-mistakes/_utilities.scss +51 -117
- data/assets/js/_main.js +20 -4
- data/assets/js/main.min.js +2 -2
- data/assets/js/main.min.js.map +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ce66800cc5df8bf05e350eda4c42eb8531be72e239930a9b5d0004c5978d121
|
4
|
+
data.tar.gz: caaf958143a1cb62c92e665782dc5108deb13866655dad5b0f4f18f289071f91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2b501d000f03cc3149096f927559d163fc44f2955099f271411fafbcd3bb9dcdea22f24034c0aeb7c6561427b0c9fab4b1caac47c5a64c91ce3e241f2b902e5
|
7
|
+
data.tar.gz: d5a2373825ded0f91e71492095d91e8f7e65296c56ab41afd2b0d58098de63937927ceed9b9d6f7c7284c7a542bc4cbe0e08dfb22a84415a470ed3d81a87c600
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,22 @@
|
|
4
4
|
|
5
5
|
### Bug Fixes
|
6
6
|
|
7
|
+
- Disable copy button on invalid syntax highlighting blocks to avoid positioning issues.
|
8
|
+
- Fix typo for `fa-dribbble` in `_utilities.scss`.
|
9
|
+
- Restrict "auto scroll sticky ToC to content" feature to Chromium browsers for now. [#4826](https://github.com/mmistakes/minimal-mistakes/issues/4826)
|
10
|
+
|
11
|
+
### Documentation & Maintenance
|
12
|
+
|
13
|
+
- Rewrite social icons SCSS with a loop.
|
14
|
+
|
15
|
+
### Enhancements
|
16
|
+
|
17
|
+
- Change the icon of a copy button into a tick for 1.5 seconds on successful copy.
|
18
|
+
|
19
|
+
## [4.26.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.26.0)
|
20
|
+
|
21
|
+
### Bug Fixes
|
22
|
+
|
7
23
|
- Fix an unclosed `<p>` tag in `page__hero.html`, near `page.header.actions`.
|
8
24
|
- Remove overlay and revert X to hamburger icon when popup disappears. [#3958](https://github.com/mmistakes/minimal-mistakes/pull/3958)
|
9
25
|
- Fix SEO title when it contains a vertical bar. [#3094](https://github.com/mmistakes/minimal-mistakes/pull/3094) [#3113](https://github.com/mmistakes/minimal-mistakes/pull/3113)
|
data/README.md
CHANGED
@@ -121,7 +121,7 @@ To install:
|
|
121
121
|
bundle
|
122
122
|
```
|
123
123
|
|
124
|
-
4. Add `remote_theme: "mmistakes/minimal-mistakes@4.26.
|
124
|
+
4. Add `remote_theme: "mmistakes/minimal-mistakes@4.26.1"` to your `_config.yml` file. Remove any other `theme:` or `remote_theme:` entry.
|
125
125
|
|
126
126
|
<!--
|
127
127
|
Dev note: The version number is currently hard-coded in these files:
|
data/_includes/copyright.html
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<!--
|
2
|
-
Minimal Mistakes Jekyll Theme 4.26.
|
2
|
+
Minimal Mistakes Jekyll Theme 4.26.1 by Michael Rose
|
3
3
|
Copyright 2013-2024 Michael Rose - mademistakes.com | @mmistakes
|
4
4
|
Free for personal and commercial use under the MIT license
|
5
5
|
https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE
|
data/_includes/copyright.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Minimal Mistakes Jekyll Theme 4.26.
|
2
|
+
* Minimal Mistakes Jekyll Theme 4.26.1 by Michael Rose
|
3
3
|
* Copyright 2013-2024 Michael Rose - mademistakes.com | @mmistakes
|
4
4
|
* Free for personal and commercial use under the MIT license
|
5
5
|
* https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Minimal Mistakes Jekyll Theme 4.26.
|
2
|
+
* Minimal Mistakes Jekyll Theme 4.26.1 by Michael Rose
|
3
3
|
* Copyright 2013-2024 Michael Rose - mademistakes.com | @mmistakes
|
4
4
|
* Free for personal and commercial use under the MIT license
|
5
5
|
* https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE
|
@@ -211,118 +211,35 @@ body:hover .visually-hidden button {
|
|
211
211
|
color: $text-color;
|
212
212
|
}
|
213
213
|
|
214
|
-
|
215
|
-
|
216
|
-
color:
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
color:
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
color:
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
color:
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
color:
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
.fa-github-alt,
|
244
|
-
.fa-github-square {
|
245
|
-
color: $github-color;
|
246
|
-
}
|
247
|
-
|
248
|
-
.fa-gitlab {
|
249
|
-
color: $gitlab-color;
|
250
|
-
}
|
251
|
-
|
252
|
-
.fa-instagram {
|
253
|
-
color: $instagram-color;
|
254
|
-
}
|
255
|
-
|
256
|
-
.fa-keybase {
|
257
|
-
color: $keybase-color;
|
258
|
-
}
|
259
|
-
|
260
|
-
.fa-lastfm,
|
261
|
-
.fa-lastfm-square {
|
262
|
-
color: $lastfm-color;
|
263
|
-
}
|
264
|
-
|
265
|
-
.fa-linkedin,
|
266
|
-
.fa-linkedin-in {
|
267
|
-
color: $linkedin-color;
|
268
|
-
}
|
269
|
-
|
270
|
-
.fa-mastodon,
|
271
|
-
.fa-mastodon-square {
|
272
|
-
color: $mastodon-color;
|
273
|
-
}
|
274
|
-
|
275
|
-
.fa-pinterest,
|
276
|
-
.fa-pinterest-p,
|
277
|
-
.fa-pinterest-square {
|
278
|
-
color: $pinterest-color;
|
279
|
-
}
|
280
|
-
|
281
|
-
.fa-reddit {
|
282
|
-
color: $reddit-color;
|
283
|
-
}
|
284
|
-
|
285
|
-
.fa-rss,
|
286
|
-
.fa-rss-square {
|
287
|
-
color: $rss-color;
|
288
|
-
}
|
289
|
-
|
290
|
-
.fa-soundcloud {
|
291
|
-
color: $soundcloud-color;
|
292
|
-
}
|
293
|
-
|
294
|
-
.fa-stack-exchange,
|
295
|
-
.fa-stack-overflow {
|
296
|
-
color: $stackoverflow-color;
|
297
|
-
}
|
298
|
-
|
299
|
-
.fa-tumblr,
|
300
|
-
.fa-tumblr-square {
|
301
|
-
color: $tumblr-color;
|
302
|
-
}
|
303
|
-
|
304
|
-
.fa-twitter,
|
305
|
-
.fa-twitter-square {
|
306
|
-
color: $twitter-color;
|
307
|
-
}
|
308
|
-
|
309
|
-
.fa-vimeo,
|
310
|
-
.fa-vimeo-square,
|
311
|
-
.fa-vimeo-v {
|
312
|
-
color: $vimeo-color;
|
313
|
-
}
|
314
|
-
|
315
|
-
.fa-vine {
|
316
|
-
color: $vine-color;
|
317
|
-
}
|
318
|
-
|
319
|
-
.fa-youtube {
|
320
|
-
color: $youtube-color;
|
321
|
-
}
|
322
|
-
|
323
|
-
.fa-xing,
|
324
|
-
.fa-xing-square {
|
325
|
-
color: $xing-color;
|
214
|
+
@each $color, $icons in (
|
215
|
+
$behance-color: ".fa-behance, .fa-behance-square",
|
216
|
+
$bitbucket-color: ".fa-bitbucket",
|
217
|
+
$dribbble-color: ".fa-dribbble, .fa-dribbble-square",
|
218
|
+
$facebook-color: ".fa-facebook, .fa-facebook-square, .fa-facebook-f",
|
219
|
+
$flickr-color: ".fa-flickr",
|
220
|
+
$foursquare-color: ".fa-foursquare",
|
221
|
+
$github-color: ".fa-github, .fa-github-alt, .fa-github-square",
|
222
|
+
$gitlab-color: ".fa-gitlab",
|
223
|
+
$instagram-color: ".fa-instagram",
|
224
|
+
$keybase-color: ".fa-keybase",
|
225
|
+
$lastfm-color: ".fa-lastfm, .fa-lastfm-square",
|
226
|
+
$linkedin-color: ".fa-linkedin, .fa-linkedin-in",
|
227
|
+
$mastodon-color: ".fa-mastodon, .fa-mastodon-square",
|
228
|
+
$pinterest-color: ".fa-pinterest, .fa-pinterest-p, .fa-pinterest-square",
|
229
|
+
$reddit-color: ".fa-reddit",
|
230
|
+
$rss-color: ".fa-rss, .fa-rss-square",
|
231
|
+
$soundcloud-color: ".fa-soundcloud",
|
232
|
+
$stackoverflow-color: ".fa-stack-exchange, .fa-stack-overflow",
|
233
|
+
$tumblr-color: ".fa-tumblr, .fa-tumblr-square",
|
234
|
+
$twitter-color: ".fa-twitter, .fa-twitter-square",
|
235
|
+
$vimeo-color: ".fa-vimeo, .fa-vimeo-square, .fa-vimeo-v",
|
236
|
+
$vine-color: ".fa-vine",
|
237
|
+
$xing-color: ".fa-xing, .fa-xing-square",
|
238
|
+
$youtube-color: ".fa-youtube",
|
239
|
+
) {
|
240
|
+
#{$icons} {
|
241
|
+
color: $color;
|
242
|
+
}
|
326
243
|
}
|
327
244
|
}
|
328
245
|
|
@@ -608,25 +525,26 @@ a.reversefootnote {
|
|
608
525
|
}
|
609
526
|
|
610
527
|
pre {
|
528
|
+
&.highlight .clipboard-copy-button {
|
529
|
+
color: #ffffca;
|
530
|
+
}
|
531
|
+
|
611
532
|
.clipboard-copy-button {
|
612
533
|
display: block;
|
613
534
|
position: absolute;
|
614
535
|
top: 0.6em;
|
615
536
|
right: 0.5em;
|
537
|
+
width: 1.8em;
|
538
|
+
height: 1.5em;
|
616
539
|
z-index: 1;
|
617
540
|
background: none;
|
618
541
|
border: none;
|
619
542
|
outline: none;
|
620
543
|
border-radius: 0.1em;
|
621
544
|
padding: 0.2em 0.5em;
|
622
|
-
color: white;
|
623
545
|
opacity: 0.4;
|
624
546
|
transition: color 0.25s linear -0.25s, opacity 0.25s linear;
|
625
547
|
|
626
|
-
&:hover {
|
627
|
-
color: #ffffca;
|
628
|
-
}
|
629
|
-
|
630
548
|
&::before {
|
631
549
|
content: '';
|
632
550
|
position: absolute;
|
@@ -637,6 +555,22 @@ pre {
|
|
637
555
|
z-index: 2;
|
638
556
|
}
|
639
557
|
|
558
|
+
i {
|
559
|
+
position: absolute;
|
560
|
+
top: 0.25em;
|
561
|
+
right: 0.25em;
|
562
|
+
&.copied {
|
563
|
+
opacity: 0;
|
564
|
+
}
|
565
|
+
}
|
566
|
+
|
567
|
+
&.copied i {
|
568
|
+
opacity: 0;
|
569
|
+
&.copied {
|
570
|
+
opacity: 1;
|
571
|
+
}
|
572
|
+
}
|
573
|
+
|
640
574
|
@at-root {
|
641
575
|
.no-copy & {
|
642
576
|
display: none;
|
data/assets/js/_main.js
CHANGED
@@ -61,7 +61,7 @@ $(document).ready(function () {
|
|
61
61
|
}
|
62
62
|
|
63
63
|
// Auto scroll sticky ToC with content
|
64
|
-
|
64
|
+
const scrollTocToContent = function (event) {
|
65
65
|
var target = event.target;
|
66
66
|
var scrollOptions = { behavior: "auto", block: "nearest", inline: "start" };
|
67
67
|
|
@@ -75,7 +75,12 @@ $(document).ready(function () {
|
|
75
75
|
} else {
|
76
76
|
target.scrollIntoView(scrollOptions);
|
77
77
|
}
|
78
|
-
}
|
78
|
+
};
|
79
|
+
|
80
|
+
// Has issues on Firefox, whitelist Chrome for now
|
81
|
+
if (!!window.chrome) {
|
82
|
+
document.addEventListener("gumshoeActivate", scrollTocToContent);
|
83
|
+
}
|
79
84
|
|
80
85
|
// add lightbox class to all image links
|
81
86
|
$(
|
@@ -190,12 +195,23 @@ $(document).ready(function () {
|
|
190
195
|
var result = copyText(codeBlock.innerText);
|
191
196
|
// Restore the focus to the button
|
192
197
|
thisButton.focus();
|
198
|
+
if (result) {
|
199
|
+
if (thisButton.interval !== null) {
|
200
|
+
clearInterval(thisButton.interval);
|
201
|
+
}
|
202
|
+
thisButton.classList.add('copied');
|
203
|
+
thisButton.interval = setTimeout(function () {
|
204
|
+
thisButton.classList.remove('copied');
|
205
|
+
clearInterval(thisButton.interval);
|
206
|
+
thisButton.interval = null;
|
207
|
+
}, 1500);
|
208
|
+
}
|
193
209
|
return result;
|
194
210
|
};
|
195
211
|
|
196
212
|
if (window.enable_copy_code_button) {
|
197
213
|
document
|
198
|
-
.querySelectorAll(".page__content pre > code")
|
214
|
+
.querySelectorAll(".page__content pre.highlight > code")
|
199
215
|
.forEach(function (element, index, parentList) {
|
200
216
|
// Locate the <pre> element
|
201
217
|
var container = element.parentElement;
|
@@ -206,7 +222,7 @@ $(document).ready(function () {
|
|
206
222
|
var copyButton = document.createElement("button");
|
207
223
|
copyButton.title = "Copy to clipboard";
|
208
224
|
copyButton.className = "clipboard-copy-button";
|
209
|
-
copyButton.innerHTML = '<span class="sr-only">Copy code</span><i class="far fa-copy"></i>';
|
225
|
+
copyButton.innerHTML = '<span class="sr-only">Copy code</span><i class="far fa-fw fa-copy"></i><i class="fas fa-fw fa-check copied"></i>';
|
210
226
|
copyButton.addEventListener("click", copyButtonEventListener);
|
211
227
|
container.prepend(copyButton);
|
212
228
|
});
|