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.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +43 -0
  3. data/README.md +2 -2
  4. data/_data/ui-text.yml +115 -9
  5. data/_includes/archive-single.html +1 -1
  6. data/_includes/breadcrumbs.html +1 -1
  7. data/_includes/copyright.html +2 -2
  8. data/_includes/copyright.js +2 -2
  9. data/_includes/documents-collection.html +2 -2
  10. data/_includes/figure +2 -2
  11. data/_includes/footer.html +1 -1
  12. data/_includes/head.html +1 -1
  13. data/_includes/post_pagination.html +3 -3
  14. data/_includes/seo.html +5 -1
  15. data/_includes/social-share.html +10 -6
  16. data/_layouts/archive-taxonomy.html +1 -1
  17. data/_layouts/archive.html +1 -1
  18. data/_layouts/default.html +2 -2
  19. data/_layouts/home.html +1 -3
  20. data/_layouts/search.html +1 -1
  21. data/_layouts/single.html +10 -3
  22. data/_layouts/splash.html +1 -1
  23. data/_sass/minimal-mistakes/_archive.scss +51 -83
  24. data/_sass/minimal-mistakes/_base.scss +6 -6
  25. data/_sass/minimal-mistakes/_buttons.scss +5 -4
  26. data/_sass/minimal-mistakes/_copyright.scss +2 -2
  27. data/_sass/minimal-mistakes/_footer.scss +6 -8
  28. data/_sass/minimal-mistakes/_forms.scss +20 -31
  29. data/_sass/minimal-mistakes/_masthead.scss +6 -8
  30. data/_sass/minimal-mistakes/_navigation.scss +37 -39
  31. data/_sass/minimal-mistakes/_notices.scss +1 -1
  32. data/_sass/minimal-mistakes/_page.scss +28 -45
  33. data/_sass/minimal-mistakes/_reset.scss +5 -8
  34. data/_sass/minimal-mistakes/_search.scss +3 -6
  35. data/_sass/minimal-mistakes/_sidebar.scss +23 -27
  36. data/_sass/minimal-mistakes/_syntax.scss +10 -5
  37. data/_sass/minimal-mistakes/_tables.scss +2 -2
  38. data/_sass/minimal-mistakes/_utilities.scss +25 -41
  39. data/_sass/minimal-mistakes/_variables.scss +4 -1
  40. data/_sass/minimal-mistakes/skins/_contrast.scss +1 -1
  41. data/assets/css/main.scss +1 -1
  42. data/assets/js/_main.js +19 -15
  43. data/assets/js/main.min.js +3 -3
  44. data/assets/js/main.min.js.map +1 -1
  45. data/assets/js/plugins/jquery.greedy-navigation.js +5 -1
  46. metadata +2 -2
@@ -83,20 +83,11 @@ body:hover .visually-hidden button {
83
83
  Type
84
84
  ========================================================================== */
85
85
 
86
- .text-left {
87
- text-align: left;
88
- }
89
-
90
- .text-center {
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-right: 0.5em;
109
+ margin-inline-end: 0.5em;
119
110
  opacity: 1;
120
111
  }
121
112
  }
122
113
 
123
114
  .task-list .task-list {
124
- margin-left: 1em;
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-left: auto;
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-left: auto;
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-left: auto;
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-left: auto;
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-right: -1 * span(2.5 of 12) !important;
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
- &:before,
260
- &:after {
246
+ &::before,
247
+ &::after {
261
248
  content: "";
262
249
  position: absolute;
263
- left: 0;
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
- left: 0;
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
- &:before {
372
+ &::before {
386
373
  position: absolute;
387
374
  content: "";
388
375
  top: 0;
389
- left: 0;
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
- left: 50%;
407
- margin-left: -150px;
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
- left: 0;
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
- right: 0.5em;
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
- top: 0;
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
- right: 0.25em;
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: 16 !default;
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: #ff0000 !default;
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
@@ -6,4 +6,4 @@ search: false
6
6
  @charset "utf-8";
7
7
 
8
8
  @import "minimal-mistakes/skins/{{ site.minimal_mistakes_skin | default: 'default' }}"; // skin
9
- @import "minimal-mistakes"; // main partials
9
+ @import "minimal-mistakes"; // main partials
data/assets/js/_main.js CHANGED
@@ -123,21 +123,25 @@ $(document).ready(function () {
123
123
  });
124
124
 
125
125
  // Add anchors for headings
126
- document
127
- .querySelector(".page__content")
128
- .querySelectorAll("h1, h2, h3, h4, h5, h6")
129
- .forEach(function (element) {
130
- var id = element.getAttribute("id");
131
- if (id) {
132
- var anchor = document.createElement("a");
133
- anchor.className = "header-link";
134
- anchor.href = "#" + id;
135
- anchor.innerHTML =
136
- '<span class="sr-only">Permalink</span><i class="fas fa-link"></i>';
137
- anchor.title = "Permalink";
138
- element.appendChild(anchor);
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) {