minimal-mistakes-jekyll 4.26.1 → 4.27.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/CHANGELOG.md +43 -0
- data/README.md +2 -2
- data/_data/ui-text.yml +115 -9
- data/_includes/archive-single.html +1 -1
- data/_includes/breadcrumbs.html +1 -1
- data/_includes/copyright.html +2 -2
- data/_includes/copyright.js +2 -2
- data/_includes/documents-collection.html +2 -2
- data/_includes/figure +2 -2
- data/_includes/footer.html +1 -1
- data/_includes/head.html +1 -1
- data/_includes/post_pagination.html +3 -3
- data/_includes/seo.html +5 -1
- data/_includes/social-share.html +10 -6
- data/_layouts/archive-taxonomy.html +1 -1
- data/_layouts/archive.html +1 -1
- data/_layouts/default.html +2 -2
- data/_layouts/home.html +1 -3
- data/_layouts/search.html +1 -1
- data/_layouts/single.html +10 -3
- data/_layouts/splash.html +1 -1
- data/_sass/minimal-mistakes/_archive.scss +51 -83
- data/_sass/minimal-mistakes/_base.scss +6 -6
- data/_sass/minimal-mistakes/_buttons.scss +5 -4
- data/_sass/minimal-mistakes/_copyright.scss +2 -2
- data/_sass/minimal-mistakes/_footer.scss +6 -8
- data/_sass/minimal-mistakes/_forms.scss +20 -31
- data/_sass/minimal-mistakes/_masthead.scss +6 -8
- data/_sass/minimal-mistakes/_navigation.scss +37 -39
- data/_sass/minimal-mistakes/_notices.scss +1 -1
- data/_sass/minimal-mistakes/_page.scss +28 -45
- data/_sass/minimal-mistakes/_reset.scss +5 -8
- data/_sass/minimal-mistakes/_search.scss +3 -6
- data/_sass/minimal-mistakes/_sidebar.scss +23 -27
- data/_sass/minimal-mistakes/_syntax.scss +10 -5
- data/_sass/minimal-mistakes/_tables.scss +2 -2
- data/_sass/minimal-mistakes/_utilities.scss +25 -41
- data/_sass/minimal-mistakes/_variables.scss +4 -1
- data/_sass/minimal-mistakes/skins/_contrast.scss +1 -1
- data/assets/css/main.scss +1 -1
- data/assets/js/_main.js +19 -15
- data/assets/js/main.min.js +3 -3
- data/assets/js/main.min.js.map +1 -1
- data/assets/js/plugins/jquery.greedy-navigation.js +5 -1
- metadata +2 -2
@@ -83,20 +83,11 @@ body:hover .visually-hidden button {
|
|
83
83
|
Type
|
84
84
|
========================================================================== */
|
85
85
|
|
86
|
-
|
87
|
-
|
88
|
-
}
|
89
|
-
|
90
|
-
|
91
|
-
text-align: center;
|
92
|
-
}
|
93
|
-
|
94
|
-
.text-right {
|
95
|
-
text-align: right;
|
96
|
-
}
|
97
|
-
|
98
|
-
.text-justify {
|
99
|
-
text-align: justify;
|
86
|
+
$text-alignments: left, right, start, end, center, justify;
|
87
|
+
@each $alignment in $text-alignments {
|
88
|
+
.text-#{$alignment} {
|
89
|
+
text-align: $alignment;
|
90
|
+
}
|
100
91
|
}
|
101
92
|
|
102
93
|
.text-nowrap {
|
@@ -108,20 +99,20 @@ body:hover .visually-hidden button {
|
|
108
99
|
========================================================================== */
|
109
100
|
|
110
101
|
.task-list {
|
111
|
-
padding:0;
|
102
|
+
padding: 0;
|
112
103
|
|
113
104
|
li {
|
114
105
|
list-style-type: none;
|
115
106
|
}
|
116
107
|
|
117
108
|
.task-list-item-checkbox {
|
118
|
-
margin-
|
109
|
+
margin-inline-end: 0.5em;
|
119
110
|
opacity: 1;
|
120
111
|
}
|
121
112
|
}
|
122
113
|
|
123
114
|
.task-list .task-list {
|
124
|
-
margin-
|
115
|
+
margin-inline-start: 1em;
|
125
116
|
}
|
126
117
|
|
127
118
|
/*
|
@@ -135,8 +126,7 @@ body:hover .visually-hidden button {
|
|
135
126
|
}
|
136
127
|
|
137
128
|
.wrapper {
|
138
|
-
margin-
|
139
|
-
margin-right: auto;
|
129
|
+
margin-inline: auto;
|
140
130
|
width: 100%;
|
141
131
|
}
|
142
132
|
|
@@ -148,8 +138,7 @@ body:hover .visually-hidden button {
|
|
148
138
|
|
149
139
|
.align-left {
|
150
140
|
display: block;
|
151
|
-
margin-
|
152
|
-
margin-right: auto;
|
141
|
+
margin-inline: auto;
|
153
142
|
|
154
143
|
@include breakpoint($small) {
|
155
144
|
float: left;
|
@@ -161,8 +150,7 @@ body:hover .visually-hidden button {
|
|
161
150
|
|
162
151
|
.align-right {
|
163
152
|
display: block;
|
164
|
-
margin-
|
165
|
-
margin-right: auto;
|
153
|
+
margin-inline: auto;
|
166
154
|
|
167
155
|
@include breakpoint($small) {
|
168
156
|
float: right;
|
@@ -174,15 +162,14 @@ body:hover .visually-hidden button {
|
|
174
162
|
|
175
163
|
.align-center {
|
176
164
|
display: block;
|
177
|
-
margin-
|
178
|
-
margin-right: auto;
|
165
|
+
margin-inline: auto;
|
179
166
|
}
|
180
167
|
|
181
168
|
/* file page content container */
|
182
169
|
|
183
170
|
.full {
|
184
171
|
@include breakpoint($large) {
|
185
|
-
margin-
|
172
|
+
margin-inline-end: -1 * span(2.5 of 12) !important;
|
186
173
|
}
|
187
174
|
}
|
188
175
|
|
@@ -256,11 +243,11 @@ body:hover .visually-hidden button {
|
|
256
243
|
-webkit-transition: 0.3s;
|
257
244
|
transition: 0.3s;
|
258
245
|
|
259
|
-
|
260
|
-
|
246
|
+
&::before,
|
247
|
+
&::after {
|
261
248
|
content: "";
|
262
249
|
position: absolute;
|
263
|
-
|
250
|
+
inset-inline-start: 0;
|
264
251
|
width: $navicon-width;
|
265
252
|
height: $navicon-height;
|
266
253
|
background: $primary-color;
|
@@ -308,7 +295,7 @@ body:hover .visually-hidden button {
|
|
308
295
|
content: '';
|
309
296
|
position: fixed;
|
310
297
|
top: 0;
|
311
|
-
|
298
|
+
inset-inline-start: 0;
|
312
299
|
width: 100%;
|
313
300
|
height: 100%;
|
314
301
|
opacity: 0;
|
@@ -382,11 +369,11 @@ body:hover .visually-hidden button {
|
|
382
369
|
overflow: hidden;
|
383
370
|
position: relative;
|
384
371
|
|
385
|
-
|
372
|
+
&::before {
|
386
373
|
position: absolute;
|
387
374
|
content: "";
|
388
375
|
top: 0;
|
389
|
-
|
376
|
+
inset-inline-start: 0;
|
390
377
|
width: 100%;
|
391
378
|
height: 100%;
|
392
379
|
z-index: 999;
|
@@ -403,8 +390,8 @@ body:hover .visually-hidden button {
|
|
403
390
|
position: fixed;
|
404
391
|
width: 300px;
|
405
392
|
top: 50%;
|
406
|
-
|
407
|
-
margin-
|
393
|
+
inset-inline-start: 50%;
|
394
|
+
margin-inline-start: -150px;
|
408
395
|
margin-top: -150px;
|
409
396
|
min-height: 0;
|
410
397
|
z-index: 9999;
|
@@ -495,7 +482,7 @@ a.reversefootnote {
|
|
495
482
|
embed {
|
496
483
|
position: absolute;
|
497
484
|
top: 0;
|
498
|
-
|
485
|
+
inset-inline-start: 0;
|
499
486
|
width: 100%;
|
500
487
|
height: 100%;
|
501
488
|
}
|
@@ -533,7 +520,7 @@ pre {
|
|
533
520
|
display: block;
|
534
521
|
position: absolute;
|
535
522
|
top: 0.6em;
|
536
|
-
|
523
|
+
inset-inline-end: 0.5em;
|
537
524
|
width: 1.8em;
|
538
525
|
height: 1.5em;
|
539
526
|
z-index: 1;
|
@@ -548,17 +535,14 @@ pre {
|
|
548
535
|
&::before {
|
549
536
|
content: '';
|
550
537
|
position: absolute;
|
551
|
-
|
552
|
-
right: 0;
|
553
|
-
bottom: 0;
|
554
|
-
left: 0;
|
538
|
+
inset: 0;
|
555
539
|
z-index: 2;
|
556
540
|
}
|
557
541
|
|
558
542
|
i {
|
559
543
|
position: absolute;
|
560
544
|
top: 0.25em;
|
561
|
-
|
545
|
+
inset-inline-end: 0.25em;
|
562
546
|
&.copied {
|
563
547
|
opacity: 0;
|
564
548
|
}
|
@@ -6,7 +6,10 @@
|
|
6
6
|
Typography
|
7
7
|
========================================================================== */
|
8
8
|
|
9
|
-
$doc-font-size:
|
9
|
+
$doc-font-size: 16px !default;
|
10
|
+
$doc-font-size-medium: $doc-font-size * 1.125 !default;
|
11
|
+
$doc-font-size-large: $doc-font-size * 1.25 !default;
|
12
|
+
$doc-font-size-x-large: $doc-font-size * 1.375 !default;
|
10
13
|
|
11
14
|
/* paragraph indention */
|
12
15
|
$paragraph-indent: false !default; // true, false (default)
|
@@ -5,7 +5,7 @@
|
|
5
5
|
/* Colors */
|
6
6
|
$text-color: #000 !default;
|
7
7
|
$muted-text-color: $text-color !default;
|
8
|
-
$primary-color: #
|
8
|
+
$primary-color: #b60000 !default;
|
9
9
|
$border-color: mix(#fff, $text-color, 75%) !default;
|
10
10
|
$footer-background-color: #000 !default;
|
11
11
|
$link-color: #0000ff !default;
|
data/assets/css/main.scss
CHANGED
data/assets/js/_main.js
CHANGED
@@ -123,21 +123,25 @@ $(document).ready(function () {
|
|
123
123
|
});
|
124
124
|
|
125
125
|
// Add anchors for headings
|
126
|
-
|
127
|
-
.querySelector(".page__content")
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
126
|
+
(function () {
|
127
|
+
var pageContentElement = document.querySelector(".page__content");
|
128
|
+
if (!pageContentElement) return;
|
129
|
+
|
130
|
+
pageContentElement
|
131
|
+
.querySelectorAll("h1, h2, h3, h4, h5, h6")
|
132
|
+
.forEach(function (element) {
|
133
|
+
var id = element.getAttribute("id");
|
134
|
+
if (id) {
|
135
|
+
var anchor = document.createElement("a");
|
136
|
+
anchor.className = "header-link";
|
137
|
+
anchor.href = "#" + id;
|
138
|
+
anchor.innerHTML =
|
139
|
+
'<span class="sr-only">Permalink</span><i class="fas fa-link"></i>';
|
140
|
+
anchor.title = "Permalink";
|
141
|
+
element.appendChild(anchor);
|
142
|
+
}
|
143
|
+
});
|
144
|
+
})();
|
141
145
|
|
142
146
|
// Add copy button for <pre> blocks
|
143
147
|
var copyText = function (text) {
|