astro-accelerator 5.10.13 → 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 +1 -1
- package/public/css/main.css +30 -39
- package/public/js/modules/figures.js +6 -2
package/package.json
CHANGED
package/public/css/main.css
CHANGED
|
@@ -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(--
|
|
97
|
+
color: var(--aft);
|
|
98
98
|
cursor: pointer;
|
|
99
99
|
font-size: 1.3rem;
|
|
100
|
-
padding: 0.
|
|
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:
|
|
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
|
|
137
|
+
blockquote > *:first-child:before {
|
|
138
138
|
content: '“';
|
|
139
139
|
color: var(--icon-block);
|
|
140
|
-
|
|
141
|
-
position: absolute;
|
|
140
|
+
display: inline;
|
|
142
141
|
font-family: var(--heading-font);
|
|
143
|
-
|
|
144
|
-
|
|
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
|
|
151
|
+
margin-inline: var(--paragraph-margin);
|
|
150
152
|
}
|
|
151
153
|
|
|
152
154
|
blockquote cite {
|
|
@@ -737,6 +739,7 @@ details.sub-nav details {
|
|
|
737
739
|
|
|
738
740
|
.post-list {
|
|
739
741
|
margin: 0;
|
|
742
|
+
text-align: left;
|
|
740
743
|
}
|
|
741
744
|
|
|
742
745
|
.post-list .list-item {
|
|
@@ -1140,6 +1143,8 @@ pre.astro-code code {
|
|
|
1140
1143
|
text-align: right;
|
|
1141
1144
|
position: relative;
|
|
1142
1145
|
z-index: 1;
|
|
1146
|
+
top: 0.6rem;
|
|
1147
|
+
left: 0.4rem;
|
|
1143
1148
|
}
|
|
1144
1149
|
|
|
1145
1150
|
.copy-button {
|
|
@@ -1159,48 +1164,34 @@ pre.astro-code code {
|
|
|
1159
1164
|
max-height: 0px;
|
|
1160
1165
|
margin: 0;
|
|
1161
1166
|
width: 100%;
|
|
1162
|
-
text-align:
|
|
1163
|
-
z-index: 1;
|
|
1167
|
+
text-align: right;
|
|
1164
1168
|
position: relative;
|
|
1165
|
-
|
|
1169
|
+
z-index: 1;
|
|
1170
|
+
top: -1.3rem;
|
|
1171
|
+
left: 1.1rem;
|
|
1166
1172
|
}
|
|
1167
1173
|
|
|
1168
|
-
.magnify-
|
|
1169
|
-
opacity: 0;
|
|
1174
|
+
.magnify-button {
|
|
1170
1175
|
border-radius: 0.2rem;
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
height: 2rem;
|
|
1176
|
-
overflow: hidden;
|
|
1177
|
-
display: inline-block;
|
|
1178
|
-
cursor: pointer;
|
|
1176
|
+
fill: var(--aft);
|
|
1177
|
+
stroke: var(--fore-link-alt);
|
|
1178
|
+
background-color: transparent;
|
|
1179
|
+
opacity: 0;
|
|
1179
1180
|
}
|
|
1180
1181
|
|
|
1181
|
-
.
|
|
1182
|
+
.magnify-button:hover,
|
|
1183
|
+
.magnify-button:focus {
|
|
1184
|
+
stroke: var(--fore-link);
|
|
1185
|
+
transform: rotate(4deg);
|
|
1182
1186
|
opacity: 1;
|
|
1183
1187
|
}
|
|
1184
1188
|
|
|
1185
|
-
.magnify-
|
|
1186
|
-
content: '↗';
|
|
1187
|
-
font-family: var(--unicode-font);
|
|
1188
|
-
font-size: 2rem;
|
|
1189
|
-
line-height: 2rem;
|
|
1190
|
-
top: 0.04em;
|
|
1191
|
-
position: relative;
|
|
1192
|
-
}
|
|
1193
|
-
|
|
1194
|
-
figure:hover .magnify-icon,
|
|
1195
|
-
figure:focus .magnify-icon {
|
|
1189
|
+
.input-touch .magnify-button {
|
|
1196
1190
|
opacity: 1;
|
|
1197
1191
|
}
|
|
1198
1192
|
|
|
1199
|
-
.magnify-
|
|
1200
|
-
.magnify-
|
|
1201
|
-
.magnify-icon:focus-within {
|
|
1202
|
-
stroke: var(--fore-link);
|
|
1203
|
-
transform: rotate(4deg);
|
|
1193
|
+
figure:hover .magnify-button,
|
|
1194
|
+
figure:focus .magnify-button {
|
|
1204
1195
|
opacity: 1;
|
|
1205
1196
|
}
|
|
1206
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(
|
|
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');
|