astro-accelerator 5.10.14 → 5.10.16

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.16",
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 {
@@ -390,7 +392,7 @@ nav.skip-links a:focus {
390
392
  padding-block: 2rem;
391
393
  width: var(--content-width);
392
394
  margin-inline: auto;
393
- max-width: calc(100vw - 1rem);
395
+ max-width: calc(100vw - 2rem);
394
396
  stroke: var(--fore);
395
397
  }
396
398
 
@@ -514,7 +516,7 @@ details.sub-nav details {
514
516
  /* Main content group */
515
517
 
516
518
  .content-group {
517
- margin-inline: 0.5rem;
519
+ margin-inline: 1rem;
518
520
  display: grid;
519
521
  gap: var(--grid-gap);
520
522
  justify-content: center;
@@ -553,6 +555,12 @@ details.sub-nav details {
553
555
  hyphens: auto;
554
556
  }
555
557
 
558
+ .page-content {
559
+ h2, h3, h4, h5, h6 {
560
+ text-align: left;
561
+ }
562
+ }
563
+
556
564
  .page-content > h2:nth-child(1) {
557
565
  margin-top: 0;
558
566
  }
@@ -1141,6 +1149,8 @@ pre.astro-code code {
1141
1149
  text-align: right;
1142
1150
  position: relative;
1143
1151
  z-index: 1;
1152
+ top: 0.6rem;
1153
+ left: 0.4rem;
1144
1154
  }
1145
1155
 
1146
1156
  .copy-button {
@@ -1160,48 +1170,34 @@ pre.astro-code code {
1160
1170
  max-height: 0px;
1161
1171
  margin: 0;
1162
1172
  width: 100%;
1163
- text-align: end;
1164
- z-index: 1;
1173
+ text-align: right;
1165
1174
  position: relative;
1166
- top: -1rem;
1175
+ z-index: 1;
1176
+ top: -1.3rem;
1177
+ left: 1.1rem;
1167
1178
  }
1168
1179
 
1169
- .magnify-icon {
1170
- opacity: 0;
1180
+ .magnify-button {
1171
1181
  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;
1182
+ fill: var(--aft);
1183
+ stroke: var(--fore-link-alt);
1184
+ background-color: transparent;
1185
+ opacity: 0;
1180
1186
  }
1181
1187
 
1182
- .input-touch .magnify-icon {
1188
+ .magnify-button:hover,
1189
+ .magnify-button:focus {
1190
+ stroke: var(--fore-link);
1191
+ transform: rotate(4deg);
1183
1192
  opacity: 1;
1184
1193
  }
1185
1194
 
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 {
1195
+ .input-touch .magnify-button {
1197
1196
  opacity: 1;
1198
1197
  }
1199
1198
 
1200
- .magnify-icon:hover,
1201
- .magnify-icon:focus,
1202
- .magnify-icon:focus-within {
1203
- stroke: var(--fore-link);
1204
- transform: rotate(4deg);
1199
+ figure:hover .magnify-button,
1200
+ figure:focus .magnify-button {
1205
1201
  opacity: 1;
1206
1202
  }
1207
1203
 
@@ -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');