lexxy 0.7.2.beta → 0.7.3.beta
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.
- checksums.yaml +4 -4
- data/app/assets/javascript/lexxy.js +827 -552
- data/app/assets/javascript/lexxy.js.br +0 -0
- data/app/assets/javascript/lexxy.js.gz +0 -0
- data/app/assets/javascript/lexxy.js.map +1 -1
- data/app/assets/javascript/lexxy.min.js +2 -2
- data/app/assets/javascript/lexxy.min.js.br +0 -0
- data/app/assets/javascript/lexxy.min.js.gz +0 -0
- data/app/assets/stylesheets/lexxy-content.css +18 -2
- data/app/assets/stylesheets/lexxy-editor.css +318 -212
- data/app/assets/stylesheets/lexxy-variables.css +9 -3
- data/lib/lexxy/version.rb +1 -1
- metadata +1 -1
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
--lexxy-toolbar-gap: 2px;
|
|
11
|
+
--lexxy-toolbar-spacing: 0.5ch;
|
|
11
12
|
|
|
12
13
|
border: 1px solid var(--lexxy-color-ink-lighter);
|
|
13
14
|
border-radius: calc(var(--lexxy-radius) + var(--lexxy-toolbar-gap));
|
|
@@ -25,6 +26,14 @@
|
|
|
25
26
|
outline-offset: var(--lexxy-focus-ring-offset);
|
|
26
27
|
}
|
|
27
28
|
}
|
|
29
|
+
|
|
30
|
+
summary {
|
|
31
|
+
list-style: none;
|
|
32
|
+
|
|
33
|
+
&::-webkit-details-marker {
|
|
34
|
+
display: none;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
28
37
|
|
|
29
38
|
button,
|
|
30
39
|
summary {
|
|
@@ -34,6 +43,7 @@
|
|
|
34
43
|
border: none;
|
|
35
44
|
border-radius: var(--lexxy-radius);
|
|
36
45
|
cursor: pointer;
|
|
46
|
+
line-height: normal;
|
|
37
47
|
font-size: inherit;
|
|
38
48
|
inline-size: auto;
|
|
39
49
|
padding: 0;
|
|
@@ -55,16 +65,92 @@
|
|
|
55
65
|
|
|
56
66
|
table {
|
|
57
67
|
th, td {
|
|
58
|
-
|
|
59
|
-
|
|
68
|
+
position: relative;
|
|
69
|
+
transition: all 0.1s ease-in-out;
|
|
70
|
+
|
|
71
|
+
/* Used for column and row adding visualisations */
|
|
72
|
+
&:after {
|
|
73
|
+
box-shadow: 0 0 0 0 transparent, 0 0 0 0 transparent inset;
|
|
74
|
+
content: "";
|
|
75
|
+
display: block;
|
|
76
|
+
inset-block-start: -1px;
|
|
77
|
+
inset-block-end: -1px;
|
|
78
|
+
inset-inline-start: -1px;
|
|
79
|
+
inset-inline-end: -1px;
|
|
80
|
+
pointer-events: none;
|
|
81
|
+
position: absolute;
|
|
82
|
+
transition: box-shadow 0.1s ease-in-out;
|
|
83
|
+
z-index: 2;
|
|
60
84
|
}
|
|
61
85
|
|
|
62
86
|
&.lexxy-content__table-cell--selected {
|
|
63
87
|
background-color: var(--lexxy-color-table-cell-selected-bg);
|
|
64
|
-
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&.lexxy-content__table-cell--focus {
|
|
91
|
+
&:after {
|
|
92
|
+
box-shadow: 0 0 0 0 transparent, 0 0 0 2px var(--lexxy-color-table-cell-selected-border) inset;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&.lexxy-content__table-cell--highlight {
|
|
97
|
+
&[data-action="insert"] {
|
|
98
|
+
&[data-child-type="row"] {
|
|
99
|
+
&[data-direction="after"] {
|
|
100
|
+
&:after {
|
|
101
|
+
box-shadow:
|
|
102
|
+
0 var(--lexxy-table-cell-add-size) 0 0 var(--lexxy-color-table-cell-add),
|
|
103
|
+
0 calc(-1 * var(--lexxy-table-cell-add-size) - 1px) 0 0 var(--lexxy-color-table-cell-add) inset;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
&[data-direction="before"] {
|
|
107
|
+
&:after {
|
|
108
|
+
box-shadow:
|
|
109
|
+
0 calc(-1 * var(--lexxy-table-cell-add-size) - 1px) 0 0 var(--lexxy-color-table-cell-add),
|
|
110
|
+
0 var(--lexxy-table-cell-add-size) 0 0 var(--lexxy-color-table-cell-add) inset;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
&[data-child-type="column"] {
|
|
115
|
+
&[data-direction="after"] {
|
|
116
|
+
&:after {
|
|
117
|
+
box-shadow:
|
|
118
|
+
var(--lexxy-table-cell-add-size) 0 0 0 var(--lexxy-color-table-cell-add),
|
|
119
|
+
calc(-1 * var(--lexxy-table-cell-add-size) - 1px) 0 0 0 var(--lexxy-color-table-cell-add) inset;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
&[data-direction="before"] {
|
|
123
|
+
&:after {
|
|
124
|
+
box-shadow:
|
|
125
|
+
calc(-1 * var(--lexxy-table-cell-add-size) - 1px) 0 0 0 var(--lexxy-color-table-cell-add),
|
|
126
|
+
var(--lexxy-table-cell-add-size) 0 0 0 var(--lexxy-color-table-cell-add) inset;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
&[data-action="delete"] {
|
|
132
|
+
background-color: var(--lexxy-color-table-cell-remove);
|
|
133
|
+
color: var(--lexxy-color-red);
|
|
134
|
+
|
|
135
|
+
&:after { box-shadow: 0 0 0 0 transparent; }
|
|
136
|
+
}
|
|
137
|
+
&[data-action="toggle"] {
|
|
138
|
+
background-color: var(--lexxy-color-table-cell-toggle);
|
|
139
|
+
|
|
140
|
+
&:after { box-shadow: 0 0 0 0 transparent; }
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
tr.lexxy-content__table-cell--highlight[data-action="delete"] {
|
|
146
|
+
th, td {
|
|
147
|
+
background-color: var(--lexxy-color-table-cell-remove);
|
|
148
|
+
color: var(--lexxy-color-red);
|
|
149
|
+
|
|
150
|
+
&:after { box-shadow: 0 0 0 0 transparent; }
|
|
65
151
|
}
|
|
66
152
|
}
|
|
67
|
-
|
|
153
|
+
|
|
68
154
|
&.lexxy-content__table--selection {
|
|
69
155
|
::selection {
|
|
70
156
|
background: transparent;
|
|
@@ -72,6 +158,12 @@
|
|
|
72
158
|
}
|
|
73
159
|
}
|
|
74
160
|
|
|
161
|
+
&:has(.lexxy-content__table-cell--selected) {
|
|
162
|
+
lexxy-table-tools {
|
|
163
|
+
visibility: hidden;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
75
167
|
action-text-attachment {
|
|
76
168
|
cursor: pointer;
|
|
77
169
|
}
|
|
@@ -116,8 +208,8 @@
|
|
|
116
208
|
100% { opacity: 0;}
|
|
117
209
|
}
|
|
118
210
|
|
|
119
|
-
/*
|
|
120
|
-
/*
|
|
211
|
+
/* --------------------------------------------------------------------------
|
|
212
|
+
/* Toolbar */
|
|
121
213
|
|
|
122
214
|
:where(lexxy-toolbar) {
|
|
123
215
|
--lexxy-toolbar-icon-size: 1em;
|
|
@@ -138,7 +230,7 @@
|
|
|
138
230
|
|
|
139
231
|
:where(.lexxy-editor__toolbar-button) {
|
|
140
232
|
aspect-ratio: 1;
|
|
141
|
-
block-size:
|
|
233
|
+
block-size: var(--lexxy-toolbar-button-size);
|
|
142
234
|
color: currentColor;
|
|
143
235
|
display: grid;
|
|
144
236
|
place-items: center;
|
|
@@ -171,80 +263,29 @@
|
|
|
171
263
|
flex: 1;
|
|
172
264
|
}
|
|
173
265
|
|
|
174
|
-
/*
|
|
175
|
-
|
|
176
|
-
min-inline-size: 1lh;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
:where(.lexxy-editor__toolbar-overflow) {
|
|
180
|
-
display: none;
|
|
181
|
-
justify-self: flex-end;
|
|
182
|
-
position: relative;
|
|
183
|
-
z-index: 1;
|
|
184
|
-
|
|
185
|
-
summary {
|
|
186
|
-
list-style: none;
|
|
187
|
-
|
|
188
|
-
&::-webkit-details-marker {
|
|
189
|
-
display: none;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
[open] & {
|
|
193
|
-
background-color: var(--lexxy-color-ink-lightest);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
:where(.lexxy-editor__toolbar-overflow-menu) {
|
|
199
|
-
background-color: var(--lexxy-color-canvas);
|
|
200
|
-
border-radius: calc(var(--lexxy-radius) + var(--lexxy-toolbar-gap));
|
|
201
|
-
box-shadow: var(--lexxy-shadow);
|
|
202
|
-
display: grid;
|
|
203
|
-
grid-template-columns: repeat(4, 1fr);
|
|
204
|
-
gap: var(--lexxy-toolbar-gap);
|
|
205
|
-
inset-inline-end: 0;
|
|
206
|
-
padding: var(--lexxy-toolbar-gap);
|
|
207
|
-
position: absolute;
|
|
208
|
-
|
|
209
|
-
.lexxy-editor__toolbar-spacer {
|
|
210
|
-
display: none;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
* + .lexxy-editor__toolbar-spacer + button {
|
|
214
|
-
margin-left: 0.5lh;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/* Dropdowns
|
|
219
|
-
/* -------------------------------------------------------------------------- */
|
|
266
|
+
/* --------------------------------------------------------------------------
|
|
267
|
+
/* Dropdowns */
|
|
220
268
|
|
|
221
269
|
:where(.lexxy-editor__toolbar-dropdown) {
|
|
222
|
-
position: relative;
|
|
223
270
|
user-select: none;
|
|
224
271
|
-webkit-user-select: none;
|
|
225
272
|
|
|
226
|
-
|
|
227
|
-
--dropdown-padding: 1ch;
|
|
228
|
-
--dropdown-gap: calc(var(--dropdown-padding) / 2);
|
|
229
|
-
|
|
273
|
+
summary ~ * {
|
|
230
274
|
background-color: var(--lexxy-color-canvas);
|
|
231
275
|
border: 2px solid var(--lexxy-color-selected-hover);
|
|
232
|
-
border-radius: var(--lexxy-radius);
|
|
233
|
-
border-start-start-radius: 0;
|
|
276
|
+
border-radius: calc(var(--lexxy-radius) + var(--lexxy-toolbar-gap));
|
|
234
277
|
box-sizing: border-box;
|
|
278
|
+
box-shadow: var(--lexxy-shadow);
|
|
235
279
|
color: var(--lexxy-color-ink);
|
|
236
280
|
display: flex;
|
|
237
|
-
gap: var(--
|
|
238
|
-
inset-block-start: 2lh;
|
|
239
|
-
inset-inline-start: 0;
|
|
240
|
-
max-inline-size: 40ch;
|
|
281
|
+
gap: var(--lexxy-toolbar-gap);
|
|
241
282
|
margin: 0;
|
|
242
|
-
padding: var(--
|
|
283
|
+
padding: var(--lexxy-toolbar-spacing);
|
|
243
284
|
position: absolute;
|
|
244
285
|
z-index: 3;
|
|
245
286
|
}
|
|
246
287
|
|
|
247
|
-
&:is([open]) .lexxy-editor__toolbar-button {
|
|
288
|
+
&:is([open]) > .lexxy-editor__toolbar-button {
|
|
248
289
|
background-color: var(--lexxy-color-selected-hover);
|
|
249
290
|
border-end-end-radius: 0;
|
|
250
291
|
border-end-start-radius: 0;
|
|
@@ -254,258 +295,323 @@
|
|
|
254
295
|
}
|
|
255
296
|
}
|
|
256
297
|
|
|
257
|
-
[overflowing]
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
.lexxy-editor__toolbar-dropdown-content {
|
|
261
|
-
--dropdown-padding: 0.5ch;
|
|
262
|
-
inset-inline-end: var(--dropdown-padding);
|
|
263
|
-
inset-inline-start: var(--dropdown-padding);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
/* Link dropdown
|
|
269
|
-
/* -------------------------------------------------------------------------- */
|
|
270
|
-
|
|
271
|
-
:where(lexxy-link-dropdown) {
|
|
272
|
-
|
|
273
|
-
> * { flex: 1; }
|
|
274
|
-
|
|
275
|
-
.lexxy-editor__toolbar-dropdown-actions {
|
|
276
|
-
display: flex;
|
|
277
|
-
font-size: var(--lexxy-text-small);
|
|
278
|
-
flex: 1 1 0%;
|
|
279
|
-
gap: 1ch;
|
|
280
|
-
margin-block-start: 1ch;
|
|
298
|
+
[overflowing] &:not(.lexxy-editor__toolbar-overflow) summary ~ * {
|
|
299
|
+
inset-inline-end: var(--lexxy-toolbar-spacing);
|
|
300
|
+
inset-inline-start: var(--lexxy-toolbar-spacing);
|
|
281
301
|
}
|
|
282
302
|
|
|
283
|
-
input[type="url"],
|
|
284
303
|
button {
|
|
285
|
-
line-height: 1.5lh;
|
|
286
|
-
padding-inline: 1ch;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
input[type="url"] {
|
|
290
|
-
background-color: var(--lexxy-color-canvas);
|
|
291
|
-
border: 1px solid var(--lexxy-color-ink-lighter);
|
|
292
|
-
border-radius: var(--lexxy-radius);
|
|
293
304
|
color: var(--lexxy-color-text);
|
|
294
|
-
box-sizing: border-box;
|
|
295
|
-
inline-size: 100%;
|
|
296
|
-
min-inline-size: 40ch;
|
|
297
305
|
|
|
298
|
-
|
|
299
|
-
|
|
306
|
+
&:hover {
|
|
307
|
+
opacity: 0.8;
|
|
300
308
|
}
|
|
301
309
|
}
|
|
302
310
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
color: var(--lexxy-color-text);
|
|
306
|
-
inline-size: 100%;
|
|
307
|
-
justify-content: center;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
button[type="submit"] {
|
|
311
|
-
background-color: var(--lexxy-color-accent-dark);
|
|
312
|
-
color: var(--lexxy-color-ink-inverted);
|
|
311
|
+
/* --------------------------------------------------------------------------
|
|
312
|
+
/* Overflow menu */
|
|
313
313
|
|
|
314
|
-
|
|
315
|
-
|
|
314
|
+
&.lexxy-editor__toolbar-overflow {
|
|
315
|
+
display: none;
|
|
316
|
+
justify-self: flex-end;
|
|
317
|
+
z-index: 1;
|
|
318
|
+
|
|
319
|
+
summary ~ * {
|
|
320
|
+
border-start-end-radius: 0;
|
|
321
|
+
display: grid;
|
|
322
|
+
grid-template-columns: repeat(4, 1fr);
|
|
323
|
+
inset-inline-end: var(--lexxy-toolbar-gap);
|
|
316
324
|
}
|
|
317
325
|
}
|
|
318
|
-
}
|
|
319
326
|
|
|
320
|
-
/*
|
|
321
|
-
/*
|
|
327
|
+
/* --------------------------------------------------------------------------
|
|
328
|
+
/* Link dropdown */
|
|
322
329
|
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
330
|
+
lexxy-link-dropdown {
|
|
331
|
+
font-size: var(--lexxy-text-small);
|
|
332
|
+
inset-inline-start: var(--lexxy-toolbar-spacing);
|
|
333
|
+
inset-inline-end: var(--lexxy-toolbar-spacing);
|
|
326
334
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
gap: var(--dropdown-gap);
|
|
335
|
+
form {
|
|
336
|
+
display: flex;
|
|
337
|
+
flex: 1;
|
|
338
|
+
gap: var(--lexxy-toolbar-spacing);
|
|
332
339
|
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
inline-size: var(--button-size);
|
|
336
|
-
min-inline-size: var(--button-size);
|
|
337
|
-
max-inline-size: var(--button-size);
|
|
340
|
+
[overflowing] & {
|
|
341
|
+
display: block;
|
|
338
342
|
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
display: inline-block;
|
|
343
|
-
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
344
|
-
position: absolute;
|
|
345
|
-
inset-block-start: 0;
|
|
346
|
-
inset-block-end: 0;
|
|
347
|
-
inset-inline-end: 0;
|
|
348
|
-
inset-inline-start: 0;
|
|
343
|
+
.lexxy-editor__toolbar-dropdown-actions {
|
|
344
|
+
margin-block-start: var(--lexxy-toolbar-spacing);
|
|
345
|
+
}
|
|
349
346
|
}
|
|
350
347
|
}
|
|
351
|
-
}
|
|
352
348
|
|
|
353
|
-
|
|
354
|
-
|
|
349
|
+
.lexxy-editor__toolbar-dropdown-actions {
|
|
350
|
+
display: flex;
|
|
351
|
+
flex: 1;
|
|
352
|
+
gap: var(--lexxy-toolbar-spacing);
|
|
353
|
+
}
|
|
355
354
|
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
355
|
+
input[type="url"] {
|
|
356
|
+
background-color: var(--lexxy-color-canvas);
|
|
357
|
+
border: 1px solid var(--lexxy-color-ink-lighter);
|
|
358
|
+
border-radius: var(--lexxy-radius);
|
|
359
|
+
color: var(--lexxy-color-text);
|
|
360
|
+
block-size: var(--lexxy-toolbar-button-size);
|
|
361
|
+
box-sizing: border-box;
|
|
362
|
+
font-size: var(--lexxy-text-small);
|
|
363
|
+
flex: 2;
|
|
364
|
+
inline-size: 100%;
|
|
365
|
+
line-height: normal;
|
|
366
|
+
padding-block: 0;
|
|
367
|
+
padding-inline: 1ch;
|
|
368
|
+
}
|
|
360
369
|
|
|
361
|
-
|
|
362
|
-
|
|
370
|
+
button {
|
|
371
|
+
background-color: var(--lexxy-color-ink-lightest);
|
|
372
|
+
inline-size: 100%;
|
|
373
|
+
padding-inline: 2ch;
|
|
363
374
|
}
|
|
364
375
|
|
|
365
|
-
|
|
366
|
-
|
|
376
|
+
button[type="submit"] {
|
|
377
|
+
background-color: var(--lexxy-color-accent-dark);
|
|
378
|
+
color: var(--lexxy-color-ink-inverted);
|
|
367
379
|
|
|
368
|
-
&:
|
|
369
|
-
|
|
380
|
+
&:hover {
|
|
381
|
+
background-color: var(--lexxy-color-accent-medium);
|
|
370
382
|
}
|
|
371
383
|
}
|
|
372
384
|
}
|
|
373
385
|
|
|
374
|
-
|
|
375
|
-
|
|
386
|
+
/* --------------------------------------------------------------------------
|
|
387
|
+
/* Color dropdown */
|
|
388
|
+
|
|
389
|
+
&:has(lexxy-highlight-dropdown) {
|
|
390
|
+
position: relative;
|
|
391
|
+
|
|
392
|
+
[overflowing] & {
|
|
393
|
+
position: static;
|
|
394
|
+
}
|
|
376
395
|
}
|
|
377
|
-
|
|
378
|
-
[overflowing] & {
|
|
379
|
-
inline-size: fit-content;
|
|
380
396
|
|
|
381
|
-
|
|
382
|
-
|
|
397
|
+
lexxy-highlight-dropdown {
|
|
398
|
+
--max-inline-size: calc(var(--max-colors) * (var(--lexxy-toolbar-button-size) + var(--lexxy-toolbar-spacing)));
|
|
399
|
+
border-start-start-radius: 0;
|
|
400
|
+
display: flex;
|
|
401
|
+
gap: var(--lexxy-toolbar-spacing);
|
|
402
|
+
flex-direction: column;
|
|
403
|
+
font-size: var(--lexxy-text-small);
|
|
404
|
+
inset-inline-start: 0;
|
|
405
|
+
max-inline-size: var(--max-inline-size);
|
|
406
|
+
|
|
407
|
+
button {
|
|
408
|
+
position: relative;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.lexxy-highlight-colors {
|
|
412
|
+
display: grid;
|
|
413
|
+
gap: var(--lexxy-toolbar-gap);
|
|
414
|
+
grid-template-columns: repeat(auto-fill, minmax(var(--lexxy-toolbar-button-size), 1fr));
|
|
415
|
+
max-inline-size: var(--max-inline-size);
|
|
383
416
|
|
|
384
417
|
button {
|
|
385
|
-
|
|
418
|
+
block-size: unset;
|
|
419
|
+
inline-size: 100%;
|
|
386
420
|
|
|
387
421
|
&:after {
|
|
388
|
-
|
|
422
|
+
align-self: center;
|
|
423
|
+
content: "Aa";
|
|
424
|
+
display: inline-block;
|
|
425
|
+
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
426
|
+
position: absolute;
|
|
427
|
+
inset-block-start: 0;
|
|
428
|
+
inset-block-end: 0;
|
|
429
|
+
inset-inline-end: 0;
|
|
430
|
+
inset-inline-start: 0;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
&[aria-pressed="true"] {
|
|
434
|
+
background-color: transparent;
|
|
435
|
+
box-shadow: 0 0 0 2px currentColor inset;
|
|
436
|
+
|
|
437
|
+
&:after {
|
|
438
|
+
content: "✓";
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.lexxy-editor__toolbar-dropdown-reset {
|
|
445
|
+
background-color: var(--lexxy-color-ink-lightest);
|
|
446
|
+
|
|
447
|
+
&:is([disabled]) {
|
|
448
|
+
display: none;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
[overflowing] & {
|
|
453
|
+
.lexxy-highlight-colors {
|
|
454
|
+
button {
|
|
389
455
|
}
|
|
390
456
|
}
|
|
391
457
|
}
|
|
392
458
|
}
|
|
393
459
|
}
|
|
394
460
|
|
|
395
|
-
/* Table
|
|
461
|
+
/* Table Tools
|
|
396
462
|
/* -------------------------------------------------------------------------- */
|
|
397
463
|
|
|
398
|
-
:where(lexxy-table-
|
|
399
|
-
--button-size: 2.
|
|
464
|
+
:where(lexxy-table-tools) {
|
|
465
|
+
--button-size: 2.3lh;
|
|
466
|
+
--table-tools-radius: calc(var(--lexxy-radius) * 1.5);
|
|
400
467
|
|
|
401
468
|
color: var(--lexxy-color-ink-inverted);
|
|
402
469
|
display: none;
|
|
403
470
|
flex-direction: row;
|
|
404
471
|
font-size: var(--lexxy-text-small);
|
|
405
472
|
gap: 0.25ch;
|
|
473
|
+
inset-inline-start: var(--lexxy-editor-padding);
|
|
406
474
|
line-height: 1;
|
|
407
475
|
position: absolute;
|
|
408
476
|
transform: translate(-50%, -120%);
|
|
409
477
|
z-index: 2;
|
|
410
478
|
|
|
411
479
|
.lexxy-table-control {
|
|
412
|
-
align-items:
|
|
480
|
+
align-items: stretch;
|
|
413
481
|
background-color: var(--lexxy-color-ink);
|
|
414
|
-
border-radius:
|
|
482
|
+
border-radius: var(--table-tools-radius);
|
|
415
483
|
display: flex;
|
|
416
484
|
flex-direction: row;
|
|
417
|
-
gap:
|
|
418
|
-
padding:
|
|
485
|
+
gap: 0.25ch;
|
|
486
|
+
padding: 0.25ch;
|
|
419
487
|
white-space: nowrap;
|
|
420
488
|
|
|
421
489
|
button,
|
|
422
490
|
summary {
|
|
423
|
-
aspect-ratio: 1 / 1;
|
|
424
491
|
align-items: center;
|
|
425
492
|
background-color: transparent;
|
|
426
|
-
border-radius: var(--lexxy-radius);
|
|
427
493
|
border: 0;
|
|
494
|
+
border-radius: var(--lexxy-radius);
|
|
428
495
|
color: var(--lexxy-color-ink-inverted);
|
|
429
496
|
cursor: pointer;
|
|
430
497
|
display: flex;
|
|
431
|
-
font-weight: bold;
|
|
432
498
|
justify-content: center;
|
|
433
499
|
line-height: 1;
|
|
434
|
-
list-style: none;
|
|
435
500
|
min-block-size: var(--button-size);
|
|
436
501
|
min-inline-size: var(--button-size);
|
|
437
|
-
padding: 0;
|
|
438
502
|
user-select: none;
|
|
439
503
|
-webkit-user-select: none;
|
|
440
504
|
|
|
441
|
-
&:hover
|
|
505
|
+
&:hover,
|
|
506
|
+
[open] &:is(summary) {
|
|
442
507
|
background-color: var(--lexxy-color-ink-medium);
|
|
443
508
|
}
|
|
444
509
|
|
|
445
510
|
&:focus-visible {
|
|
446
511
|
outline-color: var(--lexxy-focus-ring-color);
|
|
447
512
|
}
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
button {
|
|
516
|
+
aspect-ratio: 1 / 1;
|
|
517
|
+
font-weight: bold;
|
|
448
518
|
|
|
449
519
|
svg {
|
|
450
520
|
block-size: 1em;
|
|
451
521
|
inline-size: 1em;
|
|
452
522
|
fill: currentColor;
|
|
523
|
+
opacity: 0.8;
|
|
524
|
+
padding: 1px; /* Fixes weird Safari SVG clipping issue */
|
|
453
525
|
}
|
|
454
526
|
|
|
455
527
|
span {
|
|
456
528
|
display: none;
|
|
457
529
|
}
|
|
458
530
|
}
|
|
459
|
-
}
|
|
460
531
|
|
|
461
|
-
.lexxy-table-control__more-menu {
|
|
462
|
-
gap: 0;
|
|
463
|
-
padding: 0.25ch;
|
|
464
|
-
position: relative;
|
|
465
|
-
|
|
466
532
|
summary {
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
}
|
|
533
|
+
border: 1px solid var(--lexxy-color-ink-medium);
|
|
534
|
+
padding: 0 1.25ch;
|
|
470
535
|
}
|
|
471
536
|
|
|
472
|
-
.lexxy-table-control__more-menu
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
inset-inline-start: 0;
|
|
478
|
-
padding: 0;
|
|
479
|
-
position: absolute;
|
|
480
|
-
|
|
481
|
-
.lexxy-table-control__more-menu-section {
|
|
537
|
+
.lexxy-table-control__more-menu {
|
|
538
|
+
gap: 0;
|
|
539
|
+
position: relative;
|
|
540
|
+
|
|
541
|
+
.lexxy-table-control__more-menu-details {
|
|
482
542
|
background: var(--lexxy-color-ink);
|
|
483
|
-
border-radius:
|
|
543
|
+
border-radius: var(--table-tools-radius);
|
|
484
544
|
display: flex;
|
|
485
545
|
flex-direction: column;
|
|
546
|
+
gap: 0.25ch;
|
|
547
|
+
inset-block-start: 110%;
|
|
548
|
+
inset-inline-start: 50%;
|
|
486
549
|
padding: 0.25ch;
|
|
550
|
+
position: absolute;
|
|
551
|
+
transform: translateX(-50%);
|
|
552
|
+
|
|
553
|
+
button {
|
|
554
|
+
aspect-ratio: unset;
|
|
555
|
+
flex-direction: row;
|
|
556
|
+
font-weight: normal;
|
|
557
|
+
gap: 1ch;
|
|
558
|
+
justify-content: flex-start;
|
|
559
|
+
padding: 0.75ch;
|
|
560
|
+
padding-inline-end: 1.5ch;
|
|
561
|
+
white-space: nowrap;
|
|
562
|
+
|
|
563
|
+
span {
|
|
564
|
+
display: inline-block;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
svg {
|
|
568
|
+
block-size: 1.3lh;
|
|
569
|
+
inline-size: 1.3lh;
|
|
570
|
+
fill: currentColor;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
487
573
|
}
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
.lexxy-table-control__button--delete-table {
|
|
577
|
+
align-items: center;
|
|
578
|
+
aspect-ratio: unset;
|
|
579
|
+
block-size: auto;
|
|
580
|
+
font-weight: normal;
|
|
581
|
+
justify-content: center;
|
|
582
|
+
padding: 0 1ch;
|
|
488
583
|
|
|
489
|
-
|
|
490
|
-
|
|
584
|
+
svg {
|
|
585
|
+
min-block-size: 1em;
|
|
586
|
+
min-inline-size: 1em;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
span {
|
|
491
590
|
align-items: center;
|
|
591
|
+
background: var(--lexxy-color-ink);
|
|
592
|
+
border-radius: var(--table-tools-radius);
|
|
593
|
+
color: color-mix(in srgb, var(--lexxy-color-ink-inverted) 80%, transparent);
|
|
492
594
|
display: flex;
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
padding
|
|
595
|
+
inset-inline-end: calc(var(--button-size) + 1ch);
|
|
596
|
+
inset-block-start: 0;
|
|
597
|
+
inset-block-end: 0;
|
|
598
|
+
inset-inline-start: 0;
|
|
599
|
+
justify-content: center;
|
|
600
|
+
padding: 0.5ch 1ch;
|
|
601
|
+
position: absolute;
|
|
602
|
+
transition: all 0.2s ease-out;
|
|
603
|
+
opacity: 0;
|
|
604
|
+
pointer-events: none;
|
|
499
605
|
white-space: nowrap;
|
|
606
|
+
}
|
|
500
607
|
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
608
|
+
&:hover {
|
|
609
|
+
background-color: var(--lexxy-color-red);
|
|
610
|
+
|
|
611
|
+
svg { color: var(--lexxy-color-ink-inverted); }
|
|
504
612
|
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
inline-size: 1.3lh;
|
|
508
|
-
fill: currentColor;
|
|
613
|
+
span {
|
|
614
|
+
opacity: 1;
|
|
509
615
|
}
|
|
510
616
|
}
|
|
511
617
|
}
|