@goodfellow-cms/admin 0.6.0 → 0.8.0
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/dist/editor.js +723 -23
- package/dist/{entry-values-BrY3L0Ai.js → entry-values-Bu8ljnoX.js} +765 -409
- package/dist/es-Dxyy-khR.js +2122 -0
- package/dist/index.d.ts +222 -8
- package/dist/index.js +4703 -3043
- package/dist/plugin-protocol-BgYL9WSm.js +458 -0
- package/dist/plugin.js +38 -3
- package/package.json +6 -5
- package/plugin.css +43 -39
- package/styles.css +483 -12
- package/dist/plugin-protocol-DkvBDqsF.js +0 -119
package/plugin.css
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* The base look of a plugin's admin frame: the admin panel's colors, as
|
|
3
|
-
* `--gfa-*` custom properties that follow its light or dark choice, its
|
|
4
|
-
* font, and
|
|
5
|
-
* the properties in styles of their own.
|
|
3
|
+
* `--gfa-*` custom properties that follow its light or dark choice, and its
|
|
4
|
+
* font, and on screens, the screens' spacing and plain buttons, fields and
|
|
5
|
+
* headings. A plugin's screens can use the properties in styles of their own.
|
|
6
|
+
* An editor plugin's frame (`gfa-plugin-editor`) gets the colors and font
|
|
7
|
+
* only, since what it draws is its own, and the site's blocks among it.
|
|
6
8
|
*/
|
|
7
9
|
:root {
|
|
8
10
|
color-scheme: light dark;
|
|
@@ -66,65 +68,67 @@ body {
|
|
|
66
68
|
sans-serif;
|
|
67
69
|
}
|
|
68
70
|
|
|
71
|
+
*,
|
|
72
|
+
*::before,
|
|
73
|
+
*::after {
|
|
74
|
+
box-sizing: border-box;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* The rest is for screens only. */
|
|
78
|
+
|
|
69
79
|
/* Spaced as the admin panel's other screens, since a screen's frame fills the screen. */
|
|
70
|
-
body {
|
|
80
|
+
:where(html:not(.gfa-plugin-editor)) body {
|
|
71
81
|
padding: 24px;
|
|
72
82
|
max-width: 960px;
|
|
73
83
|
}
|
|
74
84
|
|
|
75
85
|
/* Nothing in a screen's frame scrolls on its own: the frame grows with it. */
|
|
76
|
-
html {
|
|
86
|
+
html:not(.gfa-plugin-editor) {
|
|
77
87
|
overflow: hidden;
|
|
78
88
|
}
|
|
79
89
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
box-sizing: border-box;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
h1,
|
|
87
|
-
h2,
|
|
88
|
-
h3 {
|
|
90
|
+
:where(html:not(.gfa-plugin-editor)) h1,
|
|
91
|
+
:where(html:not(.gfa-plugin-editor)) h2,
|
|
92
|
+
:where(html:not(.gfa-plugin-editor)) h3 {
|
|
89
93
|
line-height: 1.25;
|
|
90
94
|
margin: 0 0 0.75rem;
|
|
91
95
|
}
|
|
92
96
|
|
|
93
|
-
h1 {
|
|
97
|
+
:where(html:not(.gfa-plugin-editor)) h1 {
|
|
94
98
|
font-size: 24px;
|
|
95
99
|
margin-bottom: 16px;
|
|
96
100
|
}
|
|
97
101
|
|
|
98
|
-
h2 {
|
|
102
|
+
:where(html:not(.gfa-plugin-editor)) h2 {
|
|
99
103
|
font-size: 17px;
|
|
100
104
|
}
|
|
101
105
|
|
|
102
|
-
h3 {
|
|
106
|
+
:where(html:not(.gfa-plugin-editor)) h3 {
|
|
103
107
|
font-size: 15px;
|
|
104
108
|
margin-top: 1.25rem;
|
|
105
109
|
}
|
|
106
110
|
|
|
107
|
-
section {
|
|
111
|
+
:where(html:not(.gfa-plugin-editor)) section {
|
|
108
112
|
margin-top: 2rem;
|
|
109
113
|
}
|
|
110
114
|
|
|
111
|
-
p {
|
|
115
|
+
:where(html:not(.gfa-plugin-editor)) p {
|
|
112
116
|
margin: 0 0 0.75rem;
|
|
113
117
|
}
|
|
114
118
|
|
|
115
|
-
a {
|
|
119
|
+
:where(html:not(.gfa-plugin-editor)) a {
|
|
116
120
|
color: var(--gfa-accent);
|
|
117
121
|
}
|
|
118
122
|
|
|
119
|
-
label {
|
|
123
|
+
:where(html:not(.gfa-plugin-editor)) label {
|
|
120
124
|
display: block;
|
|
121
125
|
font-weight: 600;
|
|
122
126
|
margin-bottom: 0.25rem;
|
|
123
127
|
}
|
|
124
128
|
|
|
125
|
-
input,
|
|
126
|
-
select,
|
|
127
|
-
textarea {
|
|
129
|
+
:where(html:not(.gfa-plugin-editor)) input,
|
|
130
|
+
:where(html:not(.gfa-plugin-editor)) select,
|
|
131
|
+
:where(html:not(.gfa-plugin-editor)) textarea {
|
|
128
132
|
font: inherit;
|
|
129
133
|
color: inherit;
|
|
130
134
|
background: var(--gfa-surface);
|
|
@@ -135,7 +139,7 @@ textarea {
|
|
|
135
139
|
max-width: 32rem;
|
|
136
140
|
}
|
|
137
141
|
|
|
138
|
-
button {
|
|
142
|
+
:where(html:not(.gfa-plugin-editor)) button {
|
|
139
143
|
font: inherit;
|
|
140
144
|
font-weight: 600;
|
|
141
145
|
cursor: pointer;
|
|
@@ -146,24 +150,24 @@ button {
|
|
|
146
150
|
padding: 0.4rem 0.9rem;
|
|
147
151
|
}
|
|
148
152
|
|
|
149
|
-
button:disabled {
|
|
153
|
+
:where(html:not(.gfa-plugin-editor)) button:disabled {
|
|
150
154
|
cursor: default;
|
|
151
155
|
opacity: 0.6;
|
|
152
156
|
}
|
|
153
157
|
|
|
154
|
-
:focus-visible {
|
|
158
|
+
:where(html:not(.gfa-plugin-editor)) :focus-visible {
|
|
155
159
|
outline: 2px solid var(--gfa-accent);
|
|
156
160
|
outline-offset: 2px;
|
|
157
161
|
}
|
|
158
162
|
|
|
159
|
-
input[type="checkbox"],
|
|
160
|
-
input[type="radio"] {
|
|
163
|
+
:where(html:not(.gfa-plugin-editor)) input[type="checkbox"],
|
|
164
|
+
:where(html:not(.gfa-plugin-editor)) input[type="radio"] {
|
|
161
165
|
width: auto;
|
|
162
166
|
margin: 0 0.4rem 0 0;
|
|
163
167
|
}
|
|
164
168
|
|
|
165
|
-
small,
|
|
166
|
-
.gfa-hint {
|
|
169
|
+
:where(html:not(.gfa-plugin-editor)) small,
|
|
170
|
+
:where(html:not(.gfa-plugin-editor)) .gfa-hint {
|
|
167
171
|
display: block;
|
|
168
172
|
color: var(--gfa-muted);
|
|
169
173
|
font-size: 13px;
|
|
@@ -171,24 +175,24 @@ small,
|
|
|
171
175
|
max-width: 40rem;
|
|
172
176
|
}
|
|
173
177
|
|
|
174
|
-
ol,
|
|
175
|
-
ul {
|
|
178
|
+
:where(html:not(.gfa-plugin-editor)) ol,
|
|
179
|
+
:where(html:not(.gfa-plugin-editor)) ul {
|
|
176
180
|
padding-left: 1.25rem;
|
|
177
181
|
margin: 0 0 0.75rem;
|
|
178
182
|
max-width: 44rem;
|
|
179
183
|
}
|
|
180
184
|
|
|
181
|
-
li {
|
|
185
|
+
:where(html:not(.gfa-plugin-editor)) li {
|
|
182
186
|
margin-bottom: 0.5rem;
|
|
183
187
|
}
|
|
184
188
|
|
|
185
|
-
code,
|
|
186
|
-
pre {
|
|
189
|
+
:where(html:not(.gfa-plugin-editor)) code,
|
|
190
|
+
:where(html:not(.gfa-plugin-editor)) pre {
|
|
187
191
|
font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
|
|
188
192
|
font-size: 13px;
|
|
189
193
|
}
|
|
190
194
|
|
|
191
|
-
pre {
|
|
195
|
+
:where(html:not(.gfa-plugin-editor)) pre {
|
|
192
196
|
margin: 0.4rem 0 0;
|
|
193
197
|
padding: 0.5rem 0.75rem;
|
|
194
198
|
max-width: 40rem;
|
|
@@ -198,11 +202,11 @@ pre {
|
|
|
198
202
|
border-radius: var(--gfa-radius);
|
|
199
203
|
}
|
|
200
204
|
|
|
201
|
-
details {
|
|
205
|
+
:where(html:not(.gfa-plugin-editor)) details {
|
|
202
206
|
margin: 0.75rem 0;
|
|
203
207
|
}
|
|
204
208
|
|
|
205
|
-
summary {
|
|
209
|
+
:where(html:not(.gfa-plugin-editor)) summary {
|
|
206
210
|
cursor: pointer;
|
|
207
211
|
font-weight: 600;
|
|
208
212
|
}
|
package/styles.css
CHANGED
|
@@ -177,6 +177,153 @@ body,
|
|
|
177
177
|
white-space: nowrap;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
+
/* The header's links, the site's address and the account: in the header itself, or under the menu button in narrow windows. */
|
|
181
|
+
.gfa-topbar-menu {
|
|
182
|
+
display: contents;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.gfa-menu-button {
|
|
186
|
+
display: none;
|
|
187
|
+
align-items: center;
|
|
188
|
+
justify-content: center;
|
|
189
|
+
flex-shrink: 0;
|
|
190
|
+
width: 36px;
|
|
191
|
+
height: 36px;
|
|
192
|
+
padding: 0;
|
|
193
|
+
border: 1px solid var(--gfa-input-border);
|
|
194
|
+
border-radius: var(--gfa-radius);
|
|
195
|
+
background: var(--gfa-surface);
|
|
196
|
+
color: var(--gfa-text);
|
|
197
|
+
cursor: pointer;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
@media (min-width: 721px) {
|
|
201
|
+
.gfa-topbar-menu > .gfa-account,
|
|
202
|
+
.gfa-topbar-menu > .gfa-language {
|
|
203
|
+
order: 1;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/* The admin panel's language, as small as the header's other controls. */
|
|
208
|
+
.gfa-language select {
|
|
209
|
+
height: 28px;
|
|
210
|
+
padding: 0 6px;
|
|
211
|
+
border: 1px solid var(--gfa-input-border);
|
|
212
|
+
border-radius: var(--gfa-radius);
|
|
213
|
+
background: var(--gfa-surface);
|
|
214
|
+
color: var(--gfa-text);
|
|
215
|
+
font: inherit;
|
|
216
|
+
font-size: 13px;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
@media (max-width: 720px) {
|
|
220
|
+
.gfa-topbar {
|
|
221
|
+
position: relative;
|
|
222
|
+
gap: 12px;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.gfa-brand {
|
|
226
|
+
flex: 1;
|
|
227
|
+
min-width: 0;
|
|
228
|
+
max-width: none;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.gfa-menu-button {
|
|
232
|
+
display: inline-flex;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.gfa-topbar-menu {
|
|
236
|
+
display: none;
|
|
237
|
+
position: absolute;
|
|
238
|
+
top: 100%;
|
|
239
|
+
left: 0;
|
|
240
|
+
right: 0;
|
|
241
|
+
z-index: 50;
|
|
242
|
+
flex-direction: column;
|
|
243
|
+
align-items: stretch;
|
|
244
|
+
gap: 12px;
|
|
245
|
+
max-height: calc(100vh - var(--gfa-topbar-height));
|
|
246
|
+
overflow-y: auto;
|
|
247
|
+
padding: 8px 16px 16px;
|
|
248
|
+
background: var(--gfa-surface);
|
|
249
|
+
border-bottom: 1px solid var(--gfa-border);
|
|
250
|
+
box-shadow: 0 8px 16px rgb(0 0 0 / 0.12);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.gfa-topbar-menu[data-open] {
|
|
254
|
+
display: flex;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.gfa-topbar-menu .gfa-nav {
|
|
258
|
+
flex-direction: column;
|
|
259
|
+
flex: none;
|
|
260
|
+
overflow: visible;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.gfa-topbar-menu .gfa-nav a {
|
|
264
|
+
padding: 10px 12px;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.gfa-topbar-menu .gfa-topbar-link {
|
|
268
|
+
padding: 0 12px;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.gfa-topbar-menu .gfa-account {
|
|
272
|
+
flex-wrap: wrap;
|
|
273
|
+
padding: 12px 12px 0;
|
|
274
|
+
border-top: 1px solid var(--gfa-border);
|
|
275
|
+
white-space: normal;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.gfa-topbar-menu .gfa-language {
|
|
279
|
+
padding: 0 12px;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/* Dark mode on or off: a track with a sun or moon on its thumb. */
|
|
284
|
+
.gfa-dark-switch {
|
|
285
|
+
position: relative;
|
|
286
|
+
flex-shrink: 0;
|
|
287
|
+
width: 44px;
|
|
288
|
+
height: 24px;
|
|
289
|
+
padding: 0;
|
|
290
|
+
border: 1px solid var(--gfa-input-border);
|
|
291
|
+
border-radius: 999px;
|
|
292
|
+
background: var(--gfa-bg);
|
|
293
|
+
cursor: pointer;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.gfa-dark-switch-thumb {
|
|
297
|
+
position: absolute;
|
|
298
|
+
top: 2px;
|
|
299
|
+
left: 2px;
|
|
300
|
+
display: grid;
|
|
301
|
+
place-items: center;
|
|
302
|
+
width: 18px;
|
|
303
|
+
height: 18px;
|
|
304
|
+
border-radius: 50%;
|
|
305
|
+
background: var(--gfa-surface);
|
|
306
|
+
color: var(--gfa-muted);
|
|
307
|
+
box-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
|
|
308
|
+
transition: transform 150ms ease;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.gfa-dark-switch[aria-checked="true"] {
|
|
312
|
+
background: var(--gfa-accent);
|
|
313
|
+
border-color: var(--gfa-accent);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.gfa-dark-switch[aria-checked="true"] .gfa-dark-switch-thumb {
|
|
317
|
+
transform: translateX(20px);
|
|
318
|
+
color: var(--gfa-accent);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
@media (prefers-reduced-motion: reduce) {
|
|
322
|
+
.gfa-dark-switch-thumb {
|
|
323
|
+
transition: none;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
|
|
180
327
|
.gfa-content {
|
|
181
328
|
flex: 1;
|
|
182
329
|
min-height: 0;
|
|
@@ -439,7 +586,9 @@ body,
|
|
|
439
586
|
.gfa-button:focus-visible,
|
|
440
587
|
.gfa-input:focus-visible,
|
|
441
588
|
.gfa-nav a:focus-visible,
|
|
442
|
-
.gfa-tab:focus-visible
|
|
589
|
+
.gfa-tab:focus-visible,
|
|
590
|
+
.gfa-dark-switch:focus-visible,
|
|
591
|
+
.gfa-menu-button:focus-visible {
|
|
443
592
|
outline: 2px solid var(--gfa-accent);
|
|
444
593
|
outline-offset: 2px;
|
|
445
594
|
}
|
|
@@ -1013,6 +1162,39 @@ body,
|
|
|
1013
1162
|
min-height: 0;
|
|
1014
1163
|
}
|
|
1015
1164
|
|
|
1165
|
+
/* The search box at the top of Puck's block list, and what it finds. */
|
|
1166
|
+
.gfa-block-search-box {
|
|
1167
|
+
padding: 12px 16px 4px;
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
.gfa-block-search-input {
|
|
1171
|
+
box-sizing: border-box;
|
|
1172
|
+
width: 100%;
|
|
1173
|
+
padding: 6px 10px;
|
|
1174
|
+
border: 1px solid var(--gfa-input-border);
|
|
1175
|
+
border-radius: 6px;
|
|
1176
|
+
background: var(--gfa-surface);
|
|
1177
|
+
color: var(--gfa-text);
|
|
1178
|
+
font: inherit;
|
|
1179
|
+
font-size: 14px;
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
.gfa-block-search-input:focus-visible {
|
|
1183
|
+
outline: 2px solid var(--gfa-accent);
|
|
1184
|
+
outline-offset: 1px;
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
.gfa-block-search-results {
|
|
1188
|
+
padding: 8px 16px 16px;
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
.gfa-block-search-none {
|
|
1192
|
+
margin: 0;
|
|
1193
|
+
padding: 12px 16px;
|
|
1194
|
+
color: var(--gfa-muted);
|
|
1195
|
+
font-size: 14px;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1016
1198
|
/* The editor's header, outside the frame that runs the site's code. */
|
|
1017
1199
|
.gfa-editor-header {
|
|
1018
1200
|
display: flex;
|
|
@@ -1097,6 +1279,47 @@ body,
|
|
|
1097
1279
|
background: var(--gfa-bg);
|
|
1098
1280
|
}
|
|
1099
1281
|
|
|
1282
|
+
/* An editor plugin's frame, with what shows over it until the editor has opened. */
|
|
1283
|
+
.gfa-plugin-editor-wrap {
|
|
1284
|
+
position: relative;
|
|
1285
|
+
flex: 1;
|
|
1286
|
+
min-width: 0;
|
|
1287
|
+
display: flex;
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
.gfa-editor-loading {
|
|
1291
|
+
position: absolute;
|
|
1292
|
+
inset: 0;
|
|
1293
|
+
display: flex;
|
|
1294
|
+
flex-direction: column;
|
|
1295
|
+
align-items: center;
|
|
1296
|
+
justify-content: center;
|
|
1297
|
+
gap: 12px;
|
|
1298
|
+
background: var(--gfa-bg);
|
|
1299
|
+
color: var(--gfa-muted);
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
.gfa-spinner {
|
|
1303
|
+
width: 28px;
|
|
1304
|
+
height: 28px;
|
|
1305
|
+
border: 3px solid var(--gfa-border);
|
|
1306
|
+
border-top-color: var(--gfa-accent);
|
|
1307
|
+
border-radius: 50%;
|
|
1308
|
+
animation: gfa-spin 0.8s linear infinite;
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
@keyframes gfa-spin {
|
|
1312
|
+
to {
|
|
1313
|
+
transform: rotate(360deg);
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1318
|
+
.gfa-spinner {
|
|
1319
|
+
animation-duration: 2.4s;
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1100
1323
|
/* The frames that run the site's code: the editor fills its page, and its canvas can be a phone's width. */
|
|
1101
1324
|
:root.gfa-frame,
|
|
1102
1325
|
.gfa-frame body {
|
|
@@ -1370,6 +1593,33 @@ body,
|
|
|
1370
1593
|
}
|
|
1371
1594
|
|
|
1372
1595
|
.gfa-media-actions .gfa-button,
|
|
1596
|
+
/* A setting only the site's owners may change, shown to editors as it is (frame/owners-only.tsx). */
|
|
1597
|
+
.gfa-locked-field {
|
|
1598
|
+
padding: 0 16px 16px;
|
|
1599
|
+
font:
|
|
1600
|
+
14px / 1.5 ui-sans-serif,
|
|
1601
|
+
system-ui,
|
|
1602
|
+
sans-serif;
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
.gfa-locked-field-label {
|
|
1606
|
+
margin-bottom: 8px;
|
|
1607
|
+
font-weight: 600;
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
.gfa-locked-field-value {
|
|
1611
|
+
padding: 10px 12px;
|
|
1612
|
+
border: 1px solid var(--gfa-border);
|
|
1613
|
+
border-radius: 4px;
|
|
1614
|
+
background: var(--gfa-bg);
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
.gfa-locked-field-note {
|
|
1618
|
+
margin: 6px 0 0;
|
|
1619
|
+
color: var(--gfa-muted);
|
|
1620
|
+
font-size: 13px;
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1373
1623
|
/* A table's cells, in the editor's fields. */
|
|
1374
1624
|
.gfa-table-field {
|
|
1375
1625
|
padding: 0 16px 16px;
|
|
@@ -1418,6 +1668,138 @@ body,
|
|
|
1418
1668
|
margin-top: 8px;
|
|
1419
1669
|
}
|
|
1420
1670
|
|
|
1671
|
+
/* A block's Style field in the editor (frame/style-field.tsx). */
|
|
1672
|
+
.gfa-style-field {
|
|
1673
|
+
display: grid;
|
|
1674
|
+
gap: 14px;
|
|
1675
|
+
padding: 0 16px 16px;
|
|
1676
|
+
font:
|
|
1677
|
+
14px / 1.5 ui-sans-serif,
|
|
1678
|
+
system-ui,
|
|
1679
|
+
sans-serif;
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
.gfa-style-title {
|
|
1683
|
+
font-weight: 600;
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1686
|
+
.gfa-style-group {
|
|
1687
|
+
display: grid;
|
|
1688
|
+
gap: 6px;
|
|
1689
|
+
min-width: 0;
|
|
1690
|
+
margin: 0;
|
|
1691
|
+
padding: 0;
|
|
1692
|
+
border: 0;
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
.gfa-style-choice {
|
|
1696
|
+
display: grid;
|
|
1697
|
+
gap: 4px;
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1700
|
+
.gfa-style-label {
|
|
1701
|
+
padding: 0;
|
|
1702
|
+
color: var(--gfa-text);
|
|
1703
|
+
font-size: 13px;
|
|
1704
|
+
font-weight: 600;
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
.gfa-style-segments {
|
|
1708
|
+
display: flex;
|
|
1709
|
+
flex-wrap: wrap;
|
|
1710
|
+
gap: 4px;
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
.gfa-style-segment {
|
|
1714
|
+
padding: 4px 8px;
|
|
1715
|
+
border: 1px solid var(--gfa-input-border);
|
|
1716
|
+
border-radius: var(--gfa-radius);
|
|
1717
|
+
background: var(--gfa-surface);
|
|
1718
|
+
color: var(--gfa-text);
|
|
1719
|
+
font: inherit;
|
|
1720
|
+
font-size: 13px;
|
|
1721
|
+
cursor: pointer;
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1724
|
+
.gfa-style-segment[aria-pressed="true"] {
|
|
1725
|
+
border-color: var(--gfa-accent);
|
|
1726
|
+
background: var(--gfa-accent);
|
|
1727
|
+
color: var(--gfa-accent-text);
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
.gfa-style-swatches {
|
|
1731
|
+
display: flex;
|
|
1732
|
+
flex-wrap: wrap;
|
|
1733
|
+
gap: 6px;
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
.gfa-style-swatch {
|
|
1737
|
+
position: relative;
|
|
1738
|
+
width: 26px;
|
|
1739
|
+
height: 26px;
|
|
1740
|
+
padding: 0;
|
|
1741
|
+
overflow: hidden;
|
|
1742
|
+
border: 1px solid var(--gfa-input-border);
|
|
1743
|
+
border-radius: 50%;
|
|
1744
|
+
cursor: pointer;
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
.gfa-style-swatch[aria-pressed="true"] {
|
|
1748
|
+
outline: 2px solid var(--gfa-accent);
|
|
1749
|
+
outline-offset: 2px;
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
/* "As the block has it": a struck-through swatch. */
|
|
1753
|
+
.gfa-style-swatch-none {
|
|
1754
|
+
background: linear-gradient(
|
|
1755
|
+
135deg,
|
|
1756
|
+
var(--gfa-surface) 45%,
|
|
1757
|
+
var(--gfa-muted) 45%,
|
|
1758
|
+
var(--gfa-muted) 55%,
|
|
1759
|
+
var(--gfa-surface) 55%
|
|
1760
|
+
);
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1763
|
+
/* A color of the editor's own: the browser's color picker, filling the swatch. */
|
|
1764
|
+
.gfa-style-swatch-own {
|
|
1765
|
+
background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
.gfa-style-swatch-own input {
|
|
1769
|
+
position: absolute;
|
|
1770
|
+
inset: 0;
|
|
1771
|
+
width: 100%;
|
|
1772
|
+
height: 100%;
|
|
1773
|
+
opacity: 0;
|
|
1774
|
+
cursor: pointer;
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1777
|
+
.gfa-style-swatch:disabled,
|
|
1778
|
+
.gfa-style-segment:disabled {
|
|
1779
|
+
cursor: default;
|
|
1780
|
+
opacity: 0.5;
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
.gfa-style-sides {
|
|
1784
|
+
display: grid;
|
|
1785
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1786
|
+
gap: 8px;
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1789
|
+
.gfa-style-check {
|
|
1790
|
+
display: flex;
|
|
1791
|
+
align-items: center;
|
|
1792
|
+
gap: 6px;
|
|
1793
|
+
font-size: 13px;
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
.gfa-style-warning {
|
|
1797
|
+
padding: 6px 8px;
|
|
1798
|
+
border-radius: var(--gfa-radius);
|
|
1799
|
+
background: var(--gfa-warning-bg);
|
|
1800
|
+
color: var(--gfa-warning-text);
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1421
1803
|
.gfa-media-chooser .gfa-button {
|
|
1422
1804
|
min-height: 30px;
|
|
1423
1805
|
padding: 0 10px;
|
|
@@ -1702,17 +2084,6 @@ body,
|
|
|
1702
2084
|
--puck-color-white: light-dark(#ffffff, #111827);
|
|
1703
2085
|
}
|
|
1704
2086
|
|
|
1705
|
-
.gfa-theme-menu {
|
|
1706
|
-
min-height: 32px;
|
|
1707
|
-
padding: 4px 8px;
|
|
1708
|
-
border: 1px solid var(--gfa-input-border);
|
|
1709
|
-
border-radius: var(--gfa-radius);
|
|
1710
|
-
background: var(--gfa-surface);
|
|
1711
|
-
color: var(--gfa-text);
|
|
1712
|
-
font: inherit;
|
|
1713
|
-
font-size: 14px;
|
|
1714
|
-
}
|
|
1715
|
-
|
|
1716
2087
|
/* The Domain screen's records: values such as verification codes are long and unbroken. */
|
|
1717
2088
|
.gfa-records code {
|
|
1718
2089
|
overflow-wrap: anywhere;
|
|
@@ -1865,6 +2236,69 @@ body,
|
|
|
1865
2236
|
padding-left: 20px;
|
|
1866
2237
|
}
|
|
1867
2238
|
|
|
2239
|
+
/* Comments */
|
|
2240
|
+
.gfa-comments-thread {
|
|
2241
|
+
padding: 12px 16px;
|
|
2242
|
+
border: 1px solid var(--gfa-border);
|
|
2243
|
+
border-radius: var(--gfa-radius);
|
|
2244
|
+
}
|
|
2245
|
+
|
|
2246
|
+
.gfa-comments-thread > summary {
|
|
2247
|
+
display: flex;
|
|
2248
|
+
flex-wrap: wrap;
|
|
2249
|
+
align-items: center;
|
|
2250
|
+
gap: 8px;
|
|
2251
|
+
cursor: pointer;
|
|
2252
|
+
}
|
|
2253
|
+
|
|
2254
|
+
.gfa-comments-actions {
|
|
2255
|
+
display: flex;
|
|
2256
|
+
flex-wrap: wrap;
|
|
2257
|
+
align-items: center;
|
|
2258
|
+
gap: 8px;
|
|
2259
|
+
margin-top: 8px;
|
|
2260
|
+
}
|
|
2261
|
+
|
|
2262
|
+
.gfa-comment-list {
|
|
2263
|
+
display: grid;
|
|
2264
|
+
gap: 12px;
|
|
2265
|
+
margin: 12px 0 0;
|
|
2266
|
+
padding: 0;
|
|
2267
|
+
list-style: none;
|
|
2268
|
+
}
|
|
2269
|
+
|
|
2270
|
+
.gfa-comment-list .gfa-comment-list {
|
|
2271
|
+
padding-left: 16px;
|
|
2272
|
+
border-left: 2px solid var(--gfa-border);
|
|
2273
|
+
}
|
|
2274
|
+
|
|
2275
|
+
.gfa-comment-byline {
|
|
2276
|
+
display: flex;
|
|
2277
|
+
flex-wrap: wrap;
|
|
2278
|
+
align-items: center;
|
|
2279
|
+
gap: 6px;
|
|
2280
|
+
margin: 0;
|
|
2281
|
+
}
|
|
2282
|
+
|
|
2283
|
+
.gfa-comment-text {
|
|
2284
|
+
margin: 4px 0 0;
|
|
2285
|
+
white-space: pre-line;
|
|
2286
|
+
overflow-wrap: anywhere;
|
|
2287
|
+
}
|
|
2288
|
+
|
|
2289
|
+
.gfa-comment-hidden .gfa-comment-text {
|
|
2290
|
+
color: var(--gfa-muted);
|
|
2291
|
+
}
|
|
2292
|
+
|
|
2293
|
+
.gfa-comment-quote {
|
|
2294
|
+
margin: 0;
|
|
2295
|
+
padding: 8px 12px;
|
|
2296
|
+
border-left: 3px solid var(--gfa-border);
|
|
2297
|
+
color: var(--gfa-muted);
|
|
2298
|
+
white-space: pre-line;
|
|
2299
|
+
overflow-wrap: anywhere;
|
|
2300
|
+
}
|
|
2301
|
+
|
|
1868
2302
|
/* Failed rebuilds */
|
|
1869
2303
|
.gfa-deploy .gfa-deploy-why {
|
|
1870
2304
|
padding: 0 4px;
|
|
@@ -2123,3 +2557,40 @@ body,
|
|
|
2123
2557
|
padding: 0;
|
|
2124
2558
|
border: 0;
|
|
2125
2559
|
}
|
|
2560
|
+
|
|
2561
|
+
/* Blocks' icons in the block list, in place of Puck's drag handle, which every block shares. */
|
|
2562
|
+
.gfa-drawer-item {
|
|
2563
|
+
position: relative;
|
|
2564
|
+
}
|
|
2565
|
+
|
|
2566
|
+
.gfa-drawer-item .gfa-block-icon {
|
|
2567
|
+
position: absolute;
|
|
2568
|
+
top: 50%;
|
|
2569
|
+
left: 10px;
|
|
2570
|
+
transform: translateY(-50%);
|
|
2571
|
+
flex-shrink: 0;
|
|
2572
|
+
color: var(--gfa-muted);
|
|
2573
|
+
pointer-events: none;
|
|
2574
|
+
}
|
|
2575
|
+
|
|
2576
|
+
.gfa-drawer-item [class*="_DrawerItem-draggable_"] {
|
|
2577
|
+
justify-content: flex-start;
|
|
2578
|
+
padding-left: 34px;
|
|
2579
|
+
}
|
|
2580
|
+
|
|
2581
|
+
.gfa-drawer-item [class*="_DrawerItem-draggable_"] > :last-child:not([class*="_DrawerItem-name_"]) {
|
|
2582
|
+
display: none;
|
|
2583
|
+
}
|
|
2584
|
+
|
|
2585
|
+
.gfa-fieldset {
|
|
2586
|
+
display: grid;
|
|
2587
|
+
gap: 6px;
|
|
2588
|
+
margin: 0 0 16px;
|
|
2589
|
+
padding: 0;
|
|
2590
|
+
border: 0;
|
|
2591
|
+
}
|
|
2592
|
+
|
|
2593
|
+
.gfa-fieldset legend {
|
|
2594
|
+
margin-bottom: 6px;
|
|
2595
|
+
font-weight: 600;
|
|
2596
|
+
}
|