astro-accelerator 5.10.14 → 5.10.15

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": "5.10.14",
2
+ "version": "5.10.15",
3
3
  "author": "Steve Fenton",
4
4
  "name": "astro-accelerator",
5
5
  "description": "A super-lightweight, accessible, SEO-friendly starter project for Astro",
@@ -94,10 +94,10 @@ textarea {
94
94
  button {
95
95
  background-color: var(--icon-block);
96
96
  border-radius: var(--block-radius);
97
- color: var(--fore);
97
+ color: var(--aft);
98
98
  cursor: pointer;
99
99
  font-size: 1.3rem;
100
- padding: 0.6rem;
100
+ padding: 0.5rem;
101
101
  }
102
102
 
103
103
  summary {
@@ -127,26 +127,28 @@ blockquote {
127
127
  background-color: var(--aft-block);
128
128
  font-size: 1.3rem;
129
129
  font-style: italic;
130
- padding: 0.1px 1.2em;
130
+ padding: var(--paragraph-margin);
131
131
  position: relative;
132
132
  box-shadow: var(--box-shadow);
133
133
  margin: var(--paragraph-margin) 0;
134
134
  border-radius: var(--block-radius);
135
135
  }
136
136
 
137
- blockquote::after {
137
+ blockquote > *:first-child:before {
138
138
  content: '“';
139
139
  color: var(--icon-block);
140
- font-size: 5em;
141
- position: absolute;
140
+ display: inline;
142
141
  font-family: var(--heading-font);
143
- transform: translate(-50%, -50%);
144
- top: 3.4rem;
142
+ font-size: 5em;
143
+ line-height: 1rem;
144
+ position: relative;
145
+ top: 0.4em;
146
+ right: 0.2em;
145
147
  }
146
148
 
147
149
  blockquote > *,
148
150
  blockquote > p {
149
- margin-inline-start: 2em;
151
+ margin-inline: var(--paragraph-margin);
150
152
  }
151
153
 
152
154
  blockquote cite {
@@ -1141,6 +1143,8 @@ pre.astro-code code {
1141
1143
  text-align: right;
1142
1144
  position: relative;
1143
1145
  z-index: 1;
1146
+ top: 0.6rem;
1147
+ left: 0.4rem;
1144
1148
  }
1145
1149
 
1146
1150
  .copy-button {
@@ -1160,48 +1164,34 @@ pre.astro-code code {
1160
1164
  max-height: 0px;
1161
1165
  margin: 0;
1162
1166
  width: 100%;
1163
- text-align: end;
1164
- z-index: 1;
1167
+ text-align: right;
1165
1168
  position: relative;
1166
- top: -1rem;
1169
+ z-index: 1;
1170
+ top: -1.3rem;
1171
+ left: 1.1rem;
1167
1172
  }
1168
1173
 
1169
- .magnify-icon {
1170
- opacity: 0;
1174
+ .magnify-button {
1171
1175
  border-radius: 0.2rem;
1172
- border: 1px solid var(--fore-link);
1173
- color: var(--fore-link);
1174
- line-height: 1;
1175
- width: 2rem;
1176
- height: 2rem;
1177
- overflow: hidden;
1178
- display: inline-block;
1179
- cursor: pointer;
1176
+ fill: var(--aft);
1177
+ stroke: var(--fore-link-alt);
1178
+ background-color: transparent;
1179
+ opacity: 0;
1180
1180
  }
1181
1181
 
1182
- .input-touch .magnify-icon {
1182
+ .magnify-button:hover,
1183
+ .magnify-button:focus {
1184
+ stroke: var(--fore-link);
1185
+ transform: rotate(4deg);
1183
1186
  opacity: 1;
1184
1187
  }
1185
1188
 
1186
- .magnify-icon:before {
1187
- content: '↗';
1188
- font-family: var(--unicode-font);
1189
- font-size: 2rem;
1190
- line-height: 2rem;
1191
- top: 0.04em;
1192
- position: relative;
1193
- }
1194
-
1195
- figure:hover .magnify-icon,
1196
- figure:focus .magnify-icon {
1189
+ .input-touch .magnify-button {
1197
1190
  opacity: 1;
1198
1191
  }
1199
1192
 
1200
- .magnify-icon:hover,
1201
- .magnify-icon:focus,
1202
- .magnify-icon:focus-within {
1203
- stroke: var(--fore-link);
1204
- transform: rotate(4deg);
1193
+ figure:hover .magnify-button,
1194
+ figure:focus .magnify-button {
1205
1195
  opacity: 1;
1206
1196
  }
1207
1197
 
@@ -11,15 +11,19 @@ import { qs, qsa } from './query.js';
11
11
 
12
12
  const activeClass = 'magnify-icon';
13
13
 
14
+ const icon = `<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"> <path d="M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"></path> <path d="M21 21l-6 -6"></path> </svg>`;
15
+
14
16
  /**
15
17
  * Enables opening image in new tab
16
18
  */
17
19
  function enhanceFigures() {
18
- qsa(`figure > p > img, [data-image] > .image__img`).forEach((node) => {
20
+ qsa(`figure > p > img, [data-image] > .image__img`).forEach(node => {
19
21
  const src = node.src;
20
22
 
21
23
  const magnify = document.createElement('button');
22
- magnify.classList.add(activeClass);
24
+ //magnify.classList.add(activeClass);
25
+ magnify.innerHTML = icon;
26
+ magnify.classList.add('magnify-button');
23
27
  magnify.title = 'Enlarge';
24
28
 
25
29
  const magnifyContainer = document.createElement('div');