astro-accelerator 6.0.20 → 6.1.1

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.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "6.0.20",
2
+ "version": "6.1.1",
3
3
  "author": "Steve Fenton",
4
4
  "name": "astro-accelerator",
5
5
  "description": "A super-lightweight, accessible, SEO-friendly starter project for Astro",
@@ -1,3 +1,55 @@
1
+ :root,
2
+ body.mode-light {
3
+ --fore: #233;
4
+ --aft: #DFF;
5
+ --aft-image: #DFF;
6
+
7
+ --fore-link: #355;
8
+ --fore-link-alt: #699;
9
+ --aft-link-alt: #e6e6eC;
10
+
11
+ --fore-input: var(--fore);
12
+ --aft-input: var(--aft);
13
+
14
+ --fore-block: #333;
15
+ --aft-block: #BEE;
16
+ --icon-block: #FF0;
17
+ --icon-block-alpha: rgba(from var(--icon-block) r g b / 0.4);
18
+
19
+ --fore-table-head: #DFF;
20
+ --aft-table-head: #233;
21
+ --fore-table-row-odd: #333;
22
+ --aft-table-row-odd: #DFF;
23
+ --fore-table-row-even: #333;
24
+ --aft-table-row-even: #CFF;
25
+ }
26
+
27
+ body.mode-dark {
28
+ --fore: #DFF;
29
+ --aft: #233;
30
+ --aft-image: #DDD;
31
+
32
+ --fore-link: #AFF;
33
+ --fore-link-alt: #FF0;
34
+ --aft-link-alt: #232323;
35
+
36
+ --fore-input: var(--fore);
37
+ --aft-input: var(--aft);
38
+
39
+ --fore-block: #DFF;
40
+ --aft-block: #011;
41
+ --icon-block: #FF0;
42
+ --icon-block-alpha: rgba(from var(--icon-block) r g b / 0.4);
43
+
44
+ --fore-table-head: #DFF;
45
+ --aft-table-head: #244;
46
+ --fore-table-row-odd: #DFF;
47
+ --aft-table-row-odd: #355;
48
+ --fore-table-row-even: #DFF;
49
+ --aft-table-row-even: #466;
50
+ }
51
+
52
+
1
53
  @font-face {
2
54
  font-family: "hyper-reg";
3
55
  font-weight: normal;
@@ -23,29 +75,6 @@
23
75
  }
24
76
 
25
77
  :root {
26
- --fore: #233;
27
- --aft: #DFF;
28
- --aft-image: #DFF;
29
-
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);
36
-
37
- --fore-block: #333;
38
- --aft-block: #BEE;
39
- --icon-block: #FF0;
40
- --icon-block-alpha: rgba(from var(--icon-block) r g b / 0.4);
41
-
42
- --fore-table-head: #DFF;
43
- --aft-table-head: #233;
44
- --fore-table-row-odd: #333;
45
- --aft-table-row-odd: #DFF;
46
- --fore-table-row-even: #333;
47
- --aft-table-row-even: #CFF;
48
-
49
78
  --heading-font: 'hyper-bold', sans-serif;
50
79
  --content-font: 'hyper-reg', Verdana, Geneva, sans-serif;
51
80
  --code-font: 'hyper-mono', Consolas, 'Courier New', Courier, monospace;
@@ -86,78 +115,4 @@
86
115
  --search-height: 2rem;
87
116
  --search-dropdown-height: 65vh;
88
117
  --search-dropdown-duration: 0.2s;
89
- }
90
-
91
- @media (prefers-color-scheme: dark) {
92
- :root {
93
- --fore: #DFF;
94
- --aft: #233;
95
- --aft-image: #DDD;
96
-
97
- --fore-link: #AFF;
98
- --fore-link-alt: #FF0;
99
- --aft-link-alt: #232323;
100
-
101
- --fore-input: var(--fore);
102
- --aft-input: var(--aft);
103
-
104
- --fore-block: #DFF;
105
- --aft-block: #011;
106
- --icon-block: #FF0;
107
-
108
- --fore-table-head: #DFF;
109
- --aft-table-head: #244;
110
- --fore-table-row-odd: #DFF;
111
- --aft-table-row-odd: #355;
112
- --fore-table-row-even: #DFF;
113
- --aft-table-row-even: #466;
114
- }
115
- }
116
-
117
- body.mode-light {
118
- --fore: #233;
119
- --aft: #DFF;
120
- --aft-image: #DFF;
121
-
122
- --fore-link: #355;
123
- --fore-link-alt: #699;
124
- --aft-link-alt: #e6e6eC;
125
-
126
- --fore-input: var(--fore);
127
- --aft-input: var(--aft);
128
-
129
- --fore-block: #333;
130
- --aft-block: #BEE;
131
- --icon-block: #FF0;
132
-
133
- --fore-table-head: #DFF;
134
- --aft-table-head: #233;
135
- --fore-table-row-odd: #333;
136
- --aft-table-row-odd: #DFF;
137
- --fore-table-row-even: #333;
138
- --aft-table-row-even: #CFF;
139
- }
140
-
141
- body.mode-dark {
142
- --fore: #DFF;
143
- --aft: #233;
144
- --aft-image: #DDD;
145
-
146
- --fore-link: #AFF;
147
- --fore-link-alt: #FF0;
148
- --aft-link-alt: #232323;
149
-
150
- --fore-input: var(--fore);
151
- --aft-input: var(--aft);
152
-
153
- --fore-block: #DFF;
154
- --aft-block: #011;
155
- --icon-block: #FF0;
156
-
157
- --fore-table-head: #DFF;
158
- --aft-table-head: #244;
159
- --fore-table-row-odd: #DFF;
160
- --aft-table-row-odd: #355;
161
- --fore-table-row-even: #DFF;
162
- --aft-table-row-even: #466;
163
- }
118
+ }
@@ -96,6 +96,19 @@ stats.stop();
96
96
  position: relative;
97
97
  z-index: 100;
98
98
  }
99
+
100
+ .site-header .theme-toggle .sun-icon,
101
+ .site-header .theme-toggle .moon-icon {
102
+ display: none;
103
+ }
104
+
105
+ body.mode-dark .site-header .theme-toggle .sun-icon {
106
+ display: block;
107
+ }
108
+
109
+ body.mode-light .site-header .theme-toggle .moon-icon {
110
+ display: block;
111
+ }
99
112
  </style>
100
113
 
101
114
  <header class="site-header">
@@ -115,14 +128,29 @@ stats.stop();
115
128
  fill="none"
116
129
  stroke-width="1"
117
130
  stroke-linecap="round"
118
- stroke-linejoin="round">
119
- <path d="M12 2v2"></path>
120
- <path d="M12 20v2"></path>
121
- <path d="M2 12h2"></path>
122
- <path d="M4.93 4.93l1.41 1.41"></path>
123
- <path d="M4.93 19.07l1.41 -1.41"></path>
124
- <path d="M12 6 A 6 6 0 0 0 12 18 A 6 6 0 0 0 12 6 A 8 8 0 0 1 12 18"
125
- ></path>
131
+ stroke-linejoin="round"
132
+ class="sun-icon">
133
+ <circle cx="12" cy="12" r="5"></circle>
134
+ <line x1="12" y1="1" x2="12" y2="3"></line>
135
+ <line x1="12" y1="21" x2="12" y2="23"></line>
136
+ <line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
137
+ <line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
138
+ <line x1="1" y1="12" x2="3" y2="12"></line>
139
+ <line x1="21" y1="12" x2="23" y2="12"></line>
140
+ <line x1="4.22" y1="19.07" x2="5.64" y2="17.66"></line>
141
+ <line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
142
+ </svg>
143
+ <svg
144
+ xmlns="http://www.w3.org/2000/svg"
145
+ width="32"
146
+ height="32"
147
+ viewBox="0 0 24 24"
148
+ fill="none"
149
+ stroke-width="1"
150
+ stroke-linecap="round"
151
+ stroke-linejoin="round"
152
+ class="moon-icon">
153
+ <path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
126
154
  </svg>
127
155
  </a>
128
156
  <a