astro-accelerator 5.10.0 → 5.10.2

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.
@@ -1,94 +1,113 @@
1
- /**
2
- * Recommended Tools
3
- * Check accessibility for colour combinations
4
- * https://toolness.github.io/accessible-color-matrix/
5
- *
6
- * @format
7
- */
8
-
9
- :root {
10
- --fore: #333;
11
- --fore-headings: #225;
12
- --aft: #fbfbfc;
1
+ @font-face {
2
+ font-family: "hyper-reg";
3
+ font-weight: normal;
4
+ font-style: normal;
5
+ src: url("AtkinsonHyperlegibleNext-Regular.otf");
6
+ font-display: block;
7
+ }
13
8
 
14
- --fore-link: #2d4295;
15
- --fore-link-alt: #4d71ff;
16
- --aft-link-alt: #f3f5ff;
9
+ @font-face {
10
+ font-family: "hyper-bold";
11
+ font-weight: bold;
12
+ font-style: normal;
13
+ src: url("AtkinsonHyperlegibleNext-Bold.otf");
14
+ font-display: block;
15
+ }
17
16
 
18
- --fore-head: #333;
19
- --aft-head: #e6e8f1;
20
- --icon-head: #2d4295;
17
+ @font-face {
18
+ font-family: "hyper-mono";
19
+ font-weight: bold;
20
+ font-style: normal;
21
+ src: url("AtkinsonHyperlegibleMono-Regular.otf");
22
+ font-display: block;
23
+ }
21
24
 
22
- --fore-breadcrumb: #333;
23
- --aft-breadcrumb: #f3f5ff;
25
+ :root {
26
+ --fore: #233;
27
+ --aft: #DFF;
28
+ --aft-image: #DFF;
24
29
 
25
- --link-head: #2d4295;
26
- --link-alt-head: #2a4dd8;
30
+ --fore-link: #355;
31
+ --fore-link-alt: #699;
32
+ --aft-link-alt: #e6e6eC;
33
+
34
+ --fore-input: var(--fore);
35
+ --aft-input: var(--aft);
27
36
 
28
37
  --fore-block: #333;
29
- --aft-block: #f3f5ff;
30
- --icon-block: #4d71ff;
38
+ --aft-block: #BEE;
39
+ --icon-block: #FF0;
31
40
 
32
- --fore-table-head: #fdfdfe;
33
- --aft-table-head: #2f3141;
41
+ --fore-table-head: #DFF;
42
+ --aft-table-head: #233;
34
43
  --fore-table-row-odd: #333;
35
- --aft-table-row-odd: #fdfdfe;
44
+ --aft-table-row-odd: #DFF;
36
45
  --fore-table-row-even: #333;
37
- --aft-table-row-even: #f3f5ff;
46
+ --aft-table-row-even: #CFF;
47
+
48
+ --heading-font: 'hyper-bold', sans-serif;
49
+ --content-font: 'hyper-reg', Verdana, Geneva, sans-serif;
50
+ --code-font: 'hyper-mono', Consolas, 'Courier New', Courier, monospace;
51
+ --unicode-font: font-family: "Segoe UI Symbol", "Arial Unicode MS", "DejaVu Sans", "Meiryo UI", "MS UI Gothic", "Everson Mono Unicode", Meiryo, "MS Gothic", "MS Mincho", "MS PGothic", "MS PMincho", "Meslo LG L", "Meslo LG L DZ", "Meslo M L", "Meslo M L DZ", "Meslo S L", "Meslo S L DZ", "Symbola", "DejaVu Sans Condensed", "DejaVu Sans Mono", Code2000, "Everson Mono", Quivira, sans-serif;
38
52
 
39
- --heading-font: Georgia, 'Times New Roman', Times, serif;
40
- --content-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
41
- --code-font: Consolas, 'Courier New', Courier, monospace;
42
- --unicode-font: 'Segoe UI Symbol', 'Arial Unicode MS', sans-serif;
53
+ --font-size-meta: 0.9rem;
54
+ --font-size-h1: 3rem;
55
+ --font-size-h2: 2.3rem;
56
+ --font-size-h3: 2rem;
57
+ --font-size-h4: 1.7rem;
58
+ --font-size-h5: 1.7rem;
59
+ --font-size-h6: 1.7rem;
43
60
 
61
+ --paragraph-margin: 1.2rem;
44
62
  --block-gap: 2rem;
63
+ --block-gap-l: 3rem;
45
64
  --block-radius: 0.3rem;
65
+ --block-radius-round: 20px;
46
66
 
47
67
  --marker-size: 1.2rem;
48
- --paragraph-margin: 1.2rem;
49
68
 
50
- --box-shadow: 0 12px 24px -12px rgb(0 0 0 / 80%);
69
+ --box-shadow: 0 12px 24px -12px rgb(0 0 0 / 50%);
51
70
  --box-shadow-slight: 0 6px 12px -6px rgb(0 0 0 / 40%);
52
71
 
53
- --content-width: 78vw;
54
- --navigation-width: 260px;
55
- --grid-gap: 1.5rem;
56
- --grid-max-width: 60rem;
57
- --grid-width: 90vw;
72
+ --box-shadow-unselected: rgb(0 0 0 / 6%) 0px 2px 4px, rgb(0 0 0 / 5%) 0px 0.5px 1px;
73
+ --transform-selected: translate3d(0px, -1px, 0px);
74
+
75
+ --content-width: 50rem;
76
+ --navigation-width: 300px;
77
+ --grid-gap: 1rem;
78
+ --grid-gap-s: 0.4rem;
79
+
80
+ /* Calculate the mobile width by removing l/r columns */
81
+ --content-width-mobile: calc(100vw - 1rem);
58
82
 
59
- /* Calculate the mobile width by removing l/r columns and grid gap */
60
- --content-width-mobile: calc(100vw - (1rem * 2));
83
+ /* Search variables */
84
+ --search-height: 2rem;
85
+ --search-dropdown-height: 65vh;
86
+ --search-dropdown-duration: 0.2s;
61
87
  }
62
88
 
63
89
  @media (prefers-color-scheme: dark) {
64
90
  :root {
65
- --fore: #ccc;
66
- --fore-headings: #cce;
67
- --aft: #333;
68
-
69
- --fore-link: #abb9ef;
70
- --fore-link-alt: #abb9ef;
91
+ --fore: #DFF;
92
+ --aft: #233;
93
+ --aft-image: #DDD;
94
+
95
+ --fore-link: #AFF;
96
+ --fore-link-alt: #FF0;
71
97
  --aft-link-alt: #232323;
72
98
 
73
- --fore-head: #ccc;
74
- --aft-head: #222;
75
- --icon-head: #abb9ef;
76
-
77
- --fore-breadcrumb: #ccc;
78
- --aft-breadcrumb: #2c2c2c;
79
-
80
- --link-head: #abb9ef;
81
- --link-alt-head: #6580ed;
99
+ --fore-input: #var(--fore);
100
+ --aft-input: var(--aft);
82
101
 
83
- --fore-block: #ccc;
84
- --aft-block: #111;
85
- --icon-block: #abb9ef;
102
+ --fore-block: #DFF;
103
+ --aft-block: #011;
104
+ --icon-block: #FF0;
86
105
 
87
- --fore-table-head: #ccc;
88
- --aft-table-head: #222;
89
- --fore-table-row-odd: #ccc;
90
- --aft-table-row-odd: #333;
91
- --fore-table-row-even: #ccc;
92
- --aft-table-row-even: #444;
106
+ --fore-table-head: #DFF;
107
+ --aft-table-head: #244;
108
+ --fore-table-row-odd: #DFF;
109
+ --aft-table-row-odd: #355;
110
+ --fore-table-row-even: #DFF;
111
+ --aft-table-row-even: #466;
93
112
  }
94
113
  }
package/src/config.ts CHANGED
@@ -50,8 +50,7 @@ const SITE: Site = {
50
50
  },
51
51
  images: {
52
52
  // Generated using https://ausi.github.io/respimagelint/
53
- contentSize:
54
- '(min-width: 1280px) 668px, (min-width: 880px) calc(72.11vw - 241px), calc(100vw - 64px)',
53
+ contentSize: '(min-width: 1280px) 668px, (min-width: 880px) calc(72.11vw - 241px), calc(100vw - 64px)',
55
54
  listerSize:
56
55
  '(min-width: 1300px) 350px, (min-width: 880px) calc(34.25vw - 88px), (min-width: 700px) 50vw, calc(100vw - 32px)',
57
56
  authorSize: '50px',
@@ -67,7 +66,9 @@ const OPEN_GRAPH = {
67
66
  };
68
67
 
69
68
  const HEADER_SCRIPTS = `
70
- <!-- HEADER SCRIPTS -->
69
+ <meta name="copyright" content="Steve Fenton">
70
+ <link rel="preload" href="/css/AtkinsonHyperlegibleNext-Bold.otf" as="font" crossorigin>
71
+ <link rel="preload" href="/css/AtkinsonHyperlegibleNext-Regular.otf" as="font" crossorigin>
71
72
  `.trim();
72
73
 
73
74
  export { SITE, OPEN_GRAPH, HEADER_SCRIPTS };