astro-accelerator 4.0.26 → 4.0.27

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 (2) hide show
  1. package/package.json +6 -6
  2. package/public/css/main.css +57 -89
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.0.26",
2
+ "version": "4.0.27",
3
3
  "author": "Steve Fenton",
4
4
  "name": "astro-accelerator",
5
5
  "description": "A super-lightweight, accessible, SEO-friendly starter project for Astro",
@@ -32,19 +32,19 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@astrojs/mdx": "^2.3.1",
35
- "astro": "^4.7.0",
35
+ "astro": "^4.9.2",
36
36
  "astro-accelerator-utils": "^0.3.7",
37
- "cspell": "^8.7.0",
38
- "csv": "^6.3.8",
37
+ "cspell": "^8.8.3",
38
+ "csv": "^6.3.9",
39
39
  "hast-util-from-selector": "^3.0.0",
40
40
  "html-to-text": "^9.0.5",
41
41
  "keyword-extractor": "^0.0.28",
42
42
  "optional": "^0.1.4",
43
43
  "remark-directive": "^3.0.0",
44
- "sharp": "^0.33.3"
44
+ "sharp": "^0.33.4"
45
45
  },
46
46
  "devDependencies": {
47
- "@playwright/test": "^1.43.1"
47
+ "@playwright/test": "^1.44.1"
48
48
  },
49
49
  "files": [
50
50
  ".npmrc",
@@ -256,6 +256,10 @@ nav.skip-links a:focus {
256
256
  background-color: var(--aft-breadcrumb);
257
257
  color: var(--fore-breadcrumb);
258
258
  padding: 0 1em;
259
+
260
+ @media (max-width: 860px) {
261
+ text-align: center;
262
+ }
259
263
  }
260
264
 
261
265
  .site-breadcrumbs li {
@@ -278,12 +282,6 @@ nav.skip-links a:focus {
278
282
  text-decoration: none;
279
283
  }
280
284
 
281
- @media (max-width: 860px) {
282
- .site-breadcrumbs ol {
283
- text-align: center;
284
- }
285
- }
286
-
287
285
  /* Header */
288
286
 
289
287
  .site-header {
@@ -316,10 +314,8 @@ nav.skip-links a:focus {
316
314
  .site-header .site-title {
317
315
  letter-spacing: -1px;
318
316
  text-transform: uppercase;
319
- }
320
317
 
321
- @media (min-width: 338px) {
322
- .site-header .site-title {
318
+ @media (min-width: 338px) {
323
319
  flex-shrink: 0;
324
320
  }
325
321
  }
@@ -347,20 +343,18 @@ nav.site-nav.sticky {
347
343
  nav.site-nav h2 {
348
344
  margin-top: 0.1em;
349
345
  display: none;
350
- }
351
346
 
352
- @media (max-width: 860px) {
353
- nav.site-nav h2 {
347
+ @media (max-width: 860px) {
354
348
  display: block;
355
349
  }
356
-
357
- nav.site-nav {
358
- grid-row: 2;
359
- }
360
350
  }
361
351
 
362
352
  .site-nav {
363
353
  margin-top: 2rem;
354
+
355
+ @media (max-width: 860px) {
356
+ grid-row: 2;
357
+ }
364
358
  }
365
359
 
366
360
  .site-nav li {
@@ -414,20 +408,18 @@ nav.site-nav h2 {
414
408
  background-color: var(--aft-breadcrumb);
415
409
  z-index: 10;
416
410
  box-shadow: var(--box-shadow);
411
+
412
+ @media (max-width: 860px) {
413
+ display: none;
414
+ }
417
415
  }
418
416
 
419
417
  .site-nav-bar h2 {
420
418
  display: none;
421
- }
422
419
 
423
- @media (max-width: 860px) {
424
- .site-nav-bar h2 {
420
+ @media (max-width: 860px) {
425
421
  display: block;
426
422
  }
427
-
428
- .site-nav-bar {
429
- display: none;
430
- }
431
423
  }
432
424
 
433
425
  .site-nav-bar ul {
@@ -475,6 +467,16 @@ nav.site-nav h2 {
475
467
  'left menu content right';
476
468
  gap: var(--grid-gap);
477
469
  padding-top: 0;
470
+
471
+ @media (max-width: 860px) {
472
+ grid-template-columns: 1rem auto 1rem;
473
+ grid-template-rows: auto auto auto;
474
+ gap: 0;
475
+ grid-template-areas:
476
+ 'top top top'
477
+ 'left content right'
478
+ 'left menu right';
479
+ }
478
480
  }
479
481
 
480
482
  .content-group header {
@@ -504,20 +506,8 @@ nav.site-nav h2 {
504
506
  grid-area: content;
505
507
  width: calc(var(--content-width) - var(--navigation-width));
506
508
  max-width: calc(var(--grid-max-width) - var(--navigation-width));
507
- }
508
509
 
509
- @media (max-width: 860px) {
510
- .content-group {
511
- grid-template-columns: 1rem auto 1rem;
512
- grid-template-rows: auto auto auto;
513
- gap: 0;
514
- grid-template-areas:
515
- 'top top top'
516
- 'left content right'
517
- 'left menu right';
518
- }
519
-
520
- .content-group article > .page-content {
510
+ @media (max-width: 860px) {
521
511
  width: unset;
522
512
  max-width: var(--content-width-mobile);
523
513
  }
@@ -593,6 +583,10 @@ nav.site-nav h2 {
593
583
  grid-template-columns: repeat(auto-fit, minmax(18rem, 22rem));
594
584
  justify-content: center;
595
585
  gap: var(--block-gap);
586
+
587
+ @media (max-width: 680px) {
588
+ grid-template-columns: 1fr;
589
+ }
596
590
  }
597
591
 
598
592
  .footer-columns h2 {
@@ -604,12 +598,6 @@ nav.site-nav h2 {
604
598
  margin: var(--paragraph-margin) 0;
605
599
  }
606
600
 
607
- @media (max-width: 680px) {
608
- .footer-columns {
609
- display: block;
610
- }
611
- }
612
-
613
601
  /* Overlay (Mobile Navigation, Search) */
614
602
 
615
603
  .overlay {
@@ -726,6 +714,10 @@ nav.site-nav h2 {
726
714
  border-bottom: 0.0625rem solid;
727
715
  border-color: var(--search-item-border-color);
728
716
  position: relative;
717
+
718
+ @media (max-width: 930px) {
719
+ padding: 1rem;
720
+ }
729
721
  }
730
722
 
731
723
  .site-search-results-item:hover,
@@ -763,12 +755,6 @@ nav.site-nav h2 {
763
755
  transform: translateY(-50%) translateX(0);
764
756
  }
765
757
 
766
- @media (max-width: 930px) {
767
- .site-search-results-item {
768
- padding: 1rem;
769
- }
770
- }
771
-
772
758
  .result-wrapper {
773
759
  display: flex;
774
760
  padding: 1.5rem 3.6rem 1.75rem;
@@ -776,18 +762,15 @@ nav.site-nav h2 {
776
762
  flex-direction: column;
777
763
  gap: 0.56rem;
778
764
  text-align: left;
765
+ @media (max-width: 930px) {
766
+ padding: 1rem;
767
+ }
779
768
  }
780
769
 
781
770
  .result-wrapper:hover {
782
771
  background-color: initial;
783
772
  }
784
773
 
785
- @media (max-width: 930px) {
786
- .result-wrapper {
787
- padding: 1rem;
788
- }
789
- }
790
-
791
774
  .result-wrapper mark {
792
775
  background-color: var(--aft-mark);
793
776
  }
@@ -916,12 +899,6 @@ nav.site-nav h2 {
916
899
  color: var(--aft-link-alt);
917
900
  }
918
901
 
919
- @media (max-width: 860px) {
920
- form.site-search div {
921
- grid-template-columns: repeat(1, auto);
922
- }
923
- }
924
-
925
902
  /* Search dialog */
926
903
 
927
904
  .search-dialog {
@@ -932,6 +909,15 @@ nav.site-nav h2 {
932
909
  height: calc(90vh - 4em);
933
910
  width: calc(80vw - 6em);
934
911
  max-width: 860px;
912
+
913
+ @media (max-width: 860px) {
914
+ /* Fallback */
915
+ height: calc(100vh - 4rem);
916
+ width: calc(100vw - 6rem);
917
+ /* Ideal units */
918
+ height: calc(100dvh - 4rem);
919
+ width: calc(100dvw - 6rem);
920
+ }
935
921
  }
936
922
 
937
923
  .search-dialog::backdrop {
@@ -954,17 +940,6 @@ nav.site-nav h2 {
954
940
  stroke: var(--link-head);
955
941
  }
956
942
 
957
- @media (max-width: 860px) {
958
- .search-dialog {
959
- /* Fallback */
960
- height: calc(100vh - 4rem);
961
- width: calc(100vw - 6rem);
962
- /* Ideal units */
963
- height: calc(100dvh - 4rem);
964
- width: calc(100dvw - 6rem);
965
- }
966
- }
967
-
968
943
  /* Articles */
969
944
 
970
945
  .post-list {
@@ -983,6 +958,11 @@ nav.site-nav h2 {
983
958
  .post-list .list-item[data-image='true'] > article {
984
959
  display: grid;
985
960
  grid-template-columns: 1fr 1fr;
961
+ @media (max-width: 680px) {
962
+ /* This is deliberately 680, not 860 */
963
+ display: unset;
964
+ grid-template-columns: unset;
965
+ }
986
966
  }
987
967
 
988
968
  .post-list .list-item[data-image='false'] > article {
@@ -1010,6 +990,9 @@ nav.site-nav h2 {
1010
990
  width: 100%;
1011
991
  height: 100%;
1012
992
  object-fit: cover;
993
+ @media (max-width: 680px) {
994
+ max-height: 120px;
995
+ }
1013
996
  }
1014
997
 
1015
998
  .recent-updates li {
@@ -1020,18 +1003,6 @@ nav.site-nav h2 {
1020
1003
  display: block;
1021
1004
  }
1022
1005
 
1023
- @media (max-width: 680px) {
1024
- /* This is deliberately 680, not 860 */
1025
- .post-list .list-item[data-image='true'] > article {
1026
- display: unset;
1027
- grid-template-columns: unset;
1028
- }
1029
-
1030
- .post-list .list-item img {
1031
- max-height: 120px;
1032
- }
1033
- }
1034
-
1035
1006
  /* Paging */
1036
1007
 
1037
1008
  .post-paging {
@@ -1320,18 +1291,15 @@ figure:focus .magnify-icon {
1320
1291
  display: grid;
1321
1292
  grid-template-columns: 1fr 1fr;
1322
1293
  grid-gap: 1rem;
1294
+ @media (max-width: 680px) {
1295
+ grid-template-columns: 1fr;
1296
+ }
1323
1297
  }
1324
1298
 
1325
1299
  .simple-grid > * > * {
1326
1300
  width: 100%;
1327
1301
  }
1328
1302
 
1329
- @media (max-width: 680px) {
1330
- .simple-grid {
1331
- display: block;
1332
- }
1333
- }
1334
-
1335
1303
  button[data-share] {
1336
1304
  background-color: unset;
1337
1305
  cursor: pointer;