lesli_view 1.1.5 → 1.1.7

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.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +8 -0
  3. data/app/assets/stylesheets/lesli_view/{view.tailwind.css → view.css} +303 -1522
  4. data/lib/lesli_view/components/header.html.erb +2 -2
  5. data/lib/lesli_view/components/panel.html.erb +44 -26
  6. data/lib/lesli_view/components/timeline.html.erb +38 -25
  7. data/lib/lesli_view/components/timeline.rb +18 -5
  8. data/lib/lesli_view/components/toolbar.css +12 -8
  9. data/lib/lesli_view/components/toolbar.html.erb +3 -1
  10. data/lib/lesli_view/elements/button.html.erb +2 -0
  11. data/lib/lesli_view/elements/button.rb +4 -0
  12. data/lib/lesli_view/forms/builder_horizontal.rb +4 -0
  13. data/lib/lesli_view/forms/fields.rb +14 -0
  14. data/lib/lesli_view/items/activities.html.erb +5 -1
  15. data/lib/lesli_view/items/activities.rb +111 -11
  16. data/lib/lesli_view/items/attachment.html.erb +45 -0
  17. data/lib/lesli_view/items/attachment.rb +63 -0
  18. data/lib/lesli_view/items/attachments.html.erb +69 -34
  19. data/lib/lesli_view/items/attachments.rb +38 -2
  20. data/lib/lesli_view/items/discussion.html.erb +7 -5
  21. data/lib/lesli_view/items/discussion.rb +26 -0
  22. data/lib/lesli_view/items/discussions.html.erb +32 -17
  23. data/lib/lesli_view/items/discussions.rb +27 -5
  24. data/lib/lesli_view/items/task.html.erb +15 -6
  25. data/lib/lesli_view/items/task.rb +14 -0
  26. data/lib/lesli_view/items/tasks.html.erb +28 -15
  27. data/lib/lesli_view/items/tasks.rb +27 -2
  28. data/lib/lesli_view/layout/navigation_sidebar.css +19 -0
  29. data/lib/lesli_view/layout/navigation_sidebar.html.erb +52 -0
  30. data/lib/lesli_view/layout/navigation_sidebar.rb +24 -0
  31. data/lib/lesli_view/version.rb +2 -2
  32. data/lib/lesli_view.rb +2 -0
  33. data/readme.md +5 -3
  34. metadata +15 -8
  35. data/lib/lesli_view/components/panel.scss +0 -37
@@ -32,10 +32,14 @@ Building a better future, one line of code at a time.
32
32
  */
33
33
  @layer properties;
34
34
  @layer theme, components, utilities;
35
+ @import url("../lexxy.css") layer(components);
35
36
  @layer theme {
36
37
  :root, :host {
37
38
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', Arial,
38
39
  sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
40
+ --color-red-50: oklch(97.1% 0.013 17.38);
41
+ --color-red-500: oklch(63.7% 0.237 25.331);
42
+ --color-red-600: oklch(57.7% 0.245 27.325);
39
43
  --color-amber-50: oklch(98.7% 0.022 95.277);
40
44
  --color-amber-100: oklch(96.2% 0.059 95.617);
41
45
  --color-amber-200: oklch(92.4% 0.12 95.746);
@@ -97,10 +101,12 @@ Building a better future, one line of code at a time.
97
101
  --color-slate-700: oklch(37.2% 0.044 257.287);
98
102
  --color-slate-800: oklch(27.9% 0.041 260.031);
99
103
  --color-slate-900: oklch(20.8% 0.042 265.755);
104
+ --color-slate-950: oklch(12.9% 0.042 264.695);
100
105
  --color-white: #fff;
101
106
  --spacing: 0.25rem;
102
107
  --container-md: 28rem;
103
108
  --container-2xl: 42rem;
109
+ --container-3xl: 48rem;
104
110
  --container-7xl: 80rem;
105
111
  --text-xs: 0.75rem;
106
112
  --text-xs--line-height: calc(1 / 0.75);
@@ -123,16 +129,20 @@ Building a better future, one line of code at a time.
123
129
  --text-6xl: 3.75rem;
124
130
  --text-6xl--line-height: 1;
125
131
  --font-weight-light: 300;
132
+ --font-weight-normal: 400;
126
133
  --font-weight-medium: 500;
127
134
  --font-weight-semibold: 600;
128
135
  --font-weight-bold: 700;
129
136
  --tracking-tight: -0.025em;
137
+ --tracking-normal: 0em;
130
138
  --tracking-wide: 0.025em;
131
139
  --radius-sm: 0.25rem;
132
140
  --radius-md: 0.375rem;
133
141
  --radius-lg: 0.5rem;
134
142
  --radius-xl: 0.75rem;
135
143
  --radius-2xl: 1rem;
144
+ --ease-in: cubic-bezier(0.4, 0, 1, 1);
145
+ --ease-out: cubic-bezier(0, 0, 0.2, 1);
136
146
  --animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
137
147
  --blur-sm: 8px;
138
148
  --default-transition-duration: 150ms;
@@ -154,15 +164,30 @@ Building a better future, one line of code at a time.
154
164
  .absolute {
155
165
  position: absolute;
156
166
  }
167
+ .fixed {
168
+ position: fixed;
169
+ }
157
170
  .relative {
158
171
  position: relative;
159
172
  }
173
+ .sticky {
174
+ position: sticky;
175
+ }
160
176
  .inset-0 {
161
177
  inset: 0px;
162
178
  }
179
+ .inset-y-0 {
180
+ inset-block: 0px;
181
+ }
182
+ .top-0 {
183
+ top: 0px;
184
+ }
163
185
  .top-7 {
164
186
  top: calc(var(--spacing) * 7);
165
187
  }
188
+ .right-0 {
189
+ right: 0px;
190
+ }
166
191
  .bottom-0 {
167
192
  bottom: 0px;
168
193
  }
@@ -175,6 +200,12 @@ Building a better future, one line of code at a time.
175
200
  .z-10 {
176
201
  z-index: 10;
177
202
  }
203
+ .z-40 {
204
+ z-index: 40;
205
+ }
206
+ .z-50 {
207
+ z-index: 50;
208
+ }
178
209
  .col-start-1 {
179
210
  grid-column-start: 1;
180
211
  }
@@ -238,8 +269,8 @@ Building a better future, one line of code at a time.
238
269
  .mt-6 {
239
270
  margin-top: calc(var(--spacing) * 6);
240
271
  }
241
- .mt-14 {
242
- margin-top: calc(var(--spacing) * 14);
272
+ .mt-16 {
273
+ margin-top: calc(var(--spacing) * 16);
243
274
  }
244
275
  .-mr-px {
245
276
  margin-right: -1px;
@@ -259,8 +290,8 @@ Building a better future, one line of code at a time.
259
290
  .mb-5 {
260
291
  margin-bottom: calc(var(--spacing) * 5);
261
292
  }
262
- .mb-10 {
263
- margin-bottom: calc(var(--spacing) * 10);
293
+ .mb-12 {
294
+ margin-bottom: calc(var(--spacing) * 12);
264
295
  }
265
296
  .ml-1\.5 {
266
297
  margin-left: calc(var(--spacing) * 1.5);
@@ -280,6 +311,10 @@ Building a better future, one line of code at a time.
280
311
  .inline-flex {
281
312
  display: inline-flex;
282
313
  }
314
+ .size-11 {
315
+ width: calc(var(--spacing) * 11);
316
+ height: calc(var(--spacing) * 11);
317
+ }
283
318
  .size-\[60px\] {
284
319
  width: 60px;
285
320
  height: 60px;
@@ -313,9 +348,18 @@ Building a better future, one line of code at a time.
313
348
  .h-36 {
314
349
  height: calc(var(--spacing) * 36);
315
350
  }
351
+ .h-dvh {
352
+ height: 100dvh;
353
+ }
316
354
  .h-full {
317
355
  height: 100%;
318
356
  }
357
+ .max-h-72 {
358
+ max-height: calc(var(--spacing) * 72);
359
+ }
360
+ .max-h-dvh {
361
+ max-height: 100dvh;
362
+ }
319
363
  .min-h-0 {
320
364
  min-height: 0px;
321
365
  }
@@ -374,8 +418,16 @@ Building a better future, one line of code at a time.
374
418
  --tw-translate-x: calc(calc(1 / 2 * 100%) * -1);
375
419
  translate: var(--tw-translate-x) var(--tw-translate-y);
376
420
  }
377
- .cursor-not-allowed {
378
- cursor: not-allowed;
421
+ .translate-x-0 {
422
+ --tw-translate-x: 0px;
423
+ translate: var(--tw-translate-x) var(--tw-translate-y);
424
+ }
425
+ .translate-x-8 {
426
+ --tw-translate-x: calc(var(--spacing) * 8);
427
+ translate: var(--tw-translate-x) var(--tw-translate-y);
428
+ }
429
+ .transform {
430
+ transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
379
431
  }
380
432
  .cursor-pointer {
381
433
  cursor: pointer;
@@ -383,15 +435,15 @@ Building a better future, one line of code at a time.
383
435
  .list-none {
384
436
  list-style-type: none;
385
437
  }
386
- .grid-cols-1 {
387
- grid-template-columns: repeat(1, minmax(0, 1fr));
388
- }
389
438
  .grid-cols-7 {
390
439
  grid-template-columns: repeat(7, minmax(0, 1fr));
391
440
  }
392
441
  .grid-cols-\[1\.5rem_minmax\(0\,1fr\)\] {
393
442
  grid-template-columns: 1.5rem minmax(0,1fr);
394
443
  }
444
+ .grid-cols-\[minmax\(0\,1fr\)_auto\] {
445
+ grid-template-columns: minmax(0,1fr) auto;
446
+ }
395
447
  .flex-col {
396
448
  flex-direction: column;
397
449
  }
@@ -404,6 +456,9 @@ Building a better future, one line of code at a time.
404
456
  .items-start {
405
457
  align-items: flex-start;
406
458
  }
459
+ .justify-between {
460
+ justify-content: space-between;
461
+ }
407
462
  .justify-center {
408
463
  justify-content: center;
409
464
  }
@@ -425,6 +480,11 @@ Building a better future, one line of code at a time.
425
480
  .gap-6 {
426
481
  gap: calc(var(--spacing) * 6);
427
482
  }
483
+ :where(.space-y-1 > :not(:last-child)) {
484
+ --tw-space-y-reverse: 0;
485
+ margin-block-start: calc(var(--spacing) * var(--tw-space-y-reverse));
486
+ margin-block-end: calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)));
487
+ }
428
488
  :where(.space-y-2 > :not(:last-child)) {
429
489
  --tw-space-y-reverse: 0;
430
490
  margin-block-start: calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));
@@ -443,6 +503,9 @@ Building a better future, one line of code at a time.
443
503
  .gap-x-4 {
444
504
  column-gap: calc(var(--spacing) * 4);
445
505
  }
506
+ .justify-self-end {
507
+ justify-self: flex-end;
508
+ }
446
509
  .truncate {
447
510
  overflow: hidden;
448
511
  text-overflow: ellipsis;
@@ -454,6 +517,12 @@ Building a better future, one line of code at a time.
454
517
  .overflow-x-auto {
455
518
  overflow-x: auto;
456
519
  }
520
+ .overflow-y-auto {
521
+ overflow-y: auto;
522
+ }
523
+ .overscroll-contain {
524
+ overscroll-behavior: contain;
525
+ }
457
526
  .rounded-2xl {
458
527
  border-radius: var(--radius-2xl);
459
528
  }
@@ -552,6 +621,12 @@ Building a better future, one line of code at a time.
552
621
  .bg-slate-300 {
553
622
  background-color: var(--color-slate-300);
554
623
  }
624
+ .bg-slate-950\/25 {
625
+ background-color: color-mix(in srgb, oklch(12.9% 0.042 264.695) 25%, transparent);
626
+ @supports (color: color-mix(in lab, red, red)) {
627
+ background-color: color-mix(in oklab, var(--color-slate-950) 25%, transparent);
628
+ }
629
+ }
555
630
  .bg-white {
556
631
  background-color: var(--color-white);
557
632
  }
@@ -597,6 +672,9 @@ Building a better future, one line of code at a time.
597
672
  .p-0 {
598
673
  padding: 0px;
599
674
  }
675
+ .p-2 {
676
+ padding: calc(var(--spacing) * 2);
677
+ }
600
678
  .p-3 {
601
679
  padding: calc(var(--spacing) * 3);
602
680
  }
@@ -606,6 +684,9 @@ Building a better future, one line of code at a time.
606
684
  .p-6 {
607
685
  padding: calc(var(--spacing) * 6);
608
686
  }
687
+ .px-3 {
688
+ padding-inline: calc(var(--spacing) * 3);
689
+ }
609
690
  .px-4 {
610
691
  padding-inline: calc(var(--spacing) * 4);
611
692
  }
@@ -615,6 +696,9 @@ Building a better future, one line of code at a time.
615
696
  .py-0\.5 {
616
697
  padding-block: calc(var(--spacing) * 0.5);
617
698
  }
699
+ .py-2 {
700
+ padding-block: calc(var(--spacing) * 2);
701
+ }
618
702
  .py-2\.5 {
619
703
  padding-block: calc(var(--spacing) * 2.5);
620
704
  }
@@ -633,6 +717,9 @@ Building a better future, one line of code at a time.
633
717
  .pt-5 {
634
718
  padding-top: calc(var(--spacing) * 5);
635
719
  }
720
+ .pb-2 {
721
+ padding-bottom: calc(var(--spacing) * 2);
722
+ }
636
723
  .pb-3 {
637
724
  padding-bottom: calc(var(--spacing) * 3);
638
725
  }
@@ -727,6 +814,10 @@ Building a better future, one line of code at a time.
727
814
  --tw-font-weight: var(--font-weight-medium);
728
815
  font-weight: var(--font-weight-medium);
729
816
  }
817
+ .font-normal {
818
+ --tw-font-weight: var(--font-weight-normal);
819
+ font-weight: var(--font-weight-normal);
820
+ }
730
821
  .font-semibold {
731
822
  --tw-font-weight: var(--font-weight-semibold);
732
823
  font-weight: var(--font-weight-semibold);
@@ -735,6 +826,10 @@ Building a better future, one line of code at a time.
735
826
  --tw-tracking: 0.2em;
736
827
  letter-spacing: 0.2em;
737
828
  }
829
+ .tracking-normal {
830
+ --tw-tracking: var(--tracking-normal);
831
+ letter-spacing: var(--tracking-normal);
832
+ }
738
833
  .tracking-tight {
739
834
  --tw-tracking: var(--tracking-tight);
740
835
  letter-spacing: var(--tracking-tight);
@@ -752,6 +847,9 @@ Building a better future, one line of code at a time.
752
847
  .whitespace-nowrap {
753
848
  white-space: nowrap;
754
849
  }
850
+ .whitespace-pre-wrap {
851
+ white-space: pre-wrap;
852
+ }
755
853
  .text-\[var\(--lesli-color-primary\)\] {
756
854
  color: var(--lesli-color-primary);
757
855
  }
@@ -764,6 +862,9 @@ Building a better future, one line of code at a time.
764
862
  .text-cyan-500 {
765
863
  color: var(--color-cyan-500);
766
864
  }
865
+ .text-red-600 {
866
+ color: var(--color-red-600);
867
+ }
767
868
  .text-sky-600 {
768
869
  color: var(--color-sky-600);
769
870
  }
@@ -788,12 +889,18 @@ Building a better future, one line of code at a time.
788
889
  .text-slate-800 {
789
890
  color: var(--color-slate-800);
790
891
  }
892
+ .text-slate-900 {
893
+ color: var(--color-slate-900);
894
+ }
791
895
  .text-white {
792
896
  color: var(--color-white);
793
897
  }
794
898
  .capitalize {
795
899
  text-transform: capitalize;
796
900
  }
901
+ .normal-case {
902
+ text-transform: none;
903
+ }
797
904
  .uppercase {
798
905
  text-transform: uppercase;
799
906
  }
@@ -810,9 +917,19 @@ Building a better future, one line of code at a time.
810
917
  .underline-offset-4 {
811
918
  text-underline-offset: 4px;
812
919
  }
920
+ .opacity-0 {
921
+ opacity: 0%;
922
+ }
813
923
  .opacity-30 {
814
924
  opacity: 30%;
815
925
  }
926
+ .opacity-100 {
927
+ opacity: 100%;
928
+ }
929
+ .shadow-2xl {
930
+ --tw-shadow: 0 25px 50px -12px var(--tw-shadow-color, rgb(0 0 0 / 0.25));
931
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
932
+ }
816
933
  .shadow-lg {
817
934
  --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
818
935
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
@@ -866,16 +983,63 @@ Building a better future, one line of code at a time.
866
983
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
867
984
  transition-duration: var(--tw-duration, var(--default-transition-duration));
868
985
  }
986
+ .transition-transform {
987
+ transition-property: transform, translate, scale, rotate;
988
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
989
+ transition-duration: var(--tw-duration, var(--default-transition-duration));
990
+ }
991
+ .duration-100 {
992
+ --tw-duration: 100ms;
993
+ transition-duration: 100ms;
994
+ }
869
995
  .duration-150 {
870
996
  --tw-duration: 150ms;
871
997
  transition-duration: 150ms;
872
998
  }
999
+ .ease-in {
1000
+ --tw-ease: var(--ease-in);
1001
+ transition-timing-function: var(--ease-in);
1002
+ }
1003
+ .ease-out {
1004
+ --tw-ease: var(--ease-out);
1005
+ transition-timing-function: var(--ease-out);
1006
+ }
873
1007
  .ring-inset {
874
1008
  --tw-ring-inset: inset;
875
1009
  }
876
1010
  .group-last\:hidden:is(:where(.group):last-child *) {
877
1011
  display: none;
878
1012
  }
1013
+ .group-open\:rotate-180:is(:where(.group):is([open], :popover-open, :open) *) {
1014
+ rotate: 180deg;
1015
+ }
1016
+ .file\:mr-4::file-selector-button {
1017
+ margin-right: calc(var(--spacing) * 4);
1018
+ }
1019
+ .file\:border-0::file-selector-button {
1020
+ border-style: var(--tw-border-style);
1021
+ border-width: 0px;
1022
+ }
1023
+ .file\:bg-slate-100::file-selector-button {
1024
+ background-color: var(--color-slate-100);
1025
+ }
1026
+ .file\:px-4::file-selector-button {
1027
+ padding-inline: calc(var(--spacing) * 4);
1028
+ }
1029
+ .file\:py-2\.5::file-selector-button {
1030
+ padding-block: calc(var(--spacing) * 2.5);
1031
+ }
1032
+ .file\:text-sm::file-selector-button {
1033
+ font-size: var(--text-sm);
1034
+ line-height: var(--tw-leading, var(--text-sm--line-height));
1035
+ }
1036
+ .file\:font-medium::file-selector-button {
1037
+ --tw-font-weight: var(--font-weight-medium);
1038
+ font-weight: var(--font-weight-medium);
1039
+ }
1040
+ .file\:text-slate-700::file-selector-button {
1041
+ color: var(--color-slate-700);
1042
+ }
879
1043
  .last\:border-b-0:last-child {
880
1044
  border-bottom-style: var(--tw-border-style);
881
1045
  border-bottom-width: 0px;
@@ -887,12 +1051,21 @@ Building a better future, one line of code at a time.
887
1051
  .hover\:border-slate-300:hover {
888
1052
  border-color: var(--color-slate-300);
889
1053
  }
1054
+ .hover\:border-slate-400:hover {
1055
+ border-color: var(--color-slate-400);
1056
+ }
1057
+ .hover\:bg-red-50:hover {
1058
+ background-color: var(--color-red-50);
1059
+ }
890
1060
  .hover\:bg-sky-50:hover {
891
1061
  background-color: var(--color-sky-50);
892
1062
  }
893
1063
  .hover\:bg-slate-50:hover {
894
1064
  background-color: var(--color-slate-50);
895
1065
  }
1066
+ .hover\:bg-slate-100:hover {
1067
+ background-color: var(--color-slate-100);
1068
+ }
896
1069
  .hover\:text-sky-800:hover {
897
1070
  color: var(--color-sky-800);
898
1071
  }
@@ -902,11 +1075,17 @@ Building a better future, one line of code at a time.
902
1075
  .hover\:underline:hover {
903
1076
  text-decoration-line: underline;
904
1077
  }
1078
+ .hover\:file\:bg-slate-200:hover::file-selector-button {
1079
+ background-color: var(--color-slate-200);
1080
+ }
905
1081
  }
906
1082
  .focus\:ring-2:focus {
907
1083
  --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
908
1084
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
909
1085
  }
1086
+ .focus\:ring-\[var\(--lesli-color-primary\)\]:focus {
1087
+ --tw-ring-color: var(--lesli-color-primary);
1088
+ }
910
1089
  .focus\:ring-sky-500\/30:focus {
911
1090
  --tw-ring-color: color-mix(in srgb, oklch(68.5% 0.169 237.323) 30%, transparent);
912
1091
  @supports (color: color-mix(in lab, red, red)) {
@@ -927,12 +1106,28 @@ Building a better future, one line of code at a time.
927
1106
  --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
928
1107
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
929
1108
  }
1109
+ .focus-visible\:ring-4:focus-visible {
1110
+ --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
1111
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1112
+ }
930
1113
  .focus-visible\:ring-\[var\(--lesli-color-primary\)\]:focus-visible {
931
1114
  --tw-ring-color: var(--lesli-color-primary);
932
1115
  }
933
1116
  .focus-visible\:ring-blue-500:focus-visible {
934
1117
  --tw-ring-color: var(--color-blue-500);
935
1118
  }
1119
+ .focus-visible\:ring-red-500\/40:focus-visible {
1120
+ --tw-ring-color: color-mix(in srgb, oklch(63.7% 0.237 25.331) 40%, transparent);
1121
+ @supports (color: color-mix(in lab, red, red)) {
1122
+ --tw-ring-color: color-mix(in oklab, var(--color-red-500) 40%, transparent);
1123
+ }
1124
+ }
1125
+ .focus-visible\:ring-sky-500\/20:focus-visible {
1126
+ --tw-ring-color: color-mix(in srgb, oklch(68.5% 0.169 237.323) 20%, transparent);
1127
+ @supports (color: color-mix(in lab, red, red)) {
1128
+ --tw-ring-color: color-mix(in oklab, var(--color-sky-500) 20%, transparent);
1129
+ }
1130
+ }
936
1131
  .focus-visible\:outline-2:focus-visible {
937
1132
  outline-style: var(--tw-outline-style);
938
1133
  outline-width: 2px;
@@ -950,9 +1145,6 @@ Building a better future, one line of code at a time.
950
1145
  .focus-visible\:ring-inset:focus-visible {
951
1146
  --tw-ring-inset: inset;
952
1147
  }
953
- .disabled\:cursor-not-allowed:disabled {
954
- cursor: not-allowed;
955
- }
956
1148
  @media (prefers-reduced-motion: no-preference) {
957
1149
  .motion-safe\:animate-pulse {
958
1150
  animation: var(--animate-pulse);
@@ -977,15 +1169,27 @@ Building a better future, one line of code at a time.
977
1169
  .sm\:w-40 {
978
1170
  width: calc(var(--spacing) * 40);
979
1171
  }
1172
+ .sm\:max-w-2xl {
1173
+ max-width: var(--container-2xl);
1174
+ }
980
1175
  .sm\:flex-row {
981
1176
  flex-direction: row;
982
1177
  }
1178
+ .sm\:items-center {
1179
+ align-items: center;
1180
+ }
1181
+ .sm\:justify-between {
1182
+ justify-content: space-between;
1183
+ }
983
1184
  .sm\:gap-4 {
984
1185
  gap: calc(var(--spacing) * 4);
985
1186
  }
986
1187
  .sm\:p-4 {
987
1188
  padding: calc(var(--spacing) * 4);
988
1189
  }
1190
+ .sm\:p-6 {
1191
+ padding: calc(var(--spacing) * 6);
1192
+ }
989
1193
  .sm\:p-8 {
990
1194
  padding: calc(var(--spacing) * 8);
991
1195
  }
@@ -1031,21 +1235,12 @@ Building a better future, one line of code at a time.
1031
1235
  .md\:mb-0 {
1032
1236
  margin-bottom: 0px;
1033
1237
  }
1034
- .md\:grid-cols-\[minmax\(0\,1fr\)_auto\] {
1035
- grid-template-columns: minmax(0,1fr) auto;
1036
- }
1037
1238
  .md\:grid-cols-\[minmax\(8rem\,auto\)_1\.5rem_minmax\(0\,1fr\)\] {
1038
1239
  grid-template-columns: minmax(8rem,auto) 1.5rem minmax(0,1fr);
1039
1240
  }
1040
- .md\:items-start {
1041
- align-items: flex-start;
1042
- }
1043
1241
  .md\:gap-x-6 {
1044
1242
  column-gap: calc(var(--spacing) * 6);
1045
1243
  }
1046
- .md\:justify-self-end {
1047
- justify-self: flex-end;
1048
- }
1049
1244
  .md\:pt-1 {
1050
1245
  padding-top: var(--spacing);
1051
1246
  }
@@ -1054,12 +1249,35 @@ Building a better future, one line of code at a time.
1054
1249
  }
1055
1250
  }
1056
1251
  @media (width >= 64rem) {
1252
+ .lg\:sticky {
1253
+ position: sticky;
1254
+ }
1255
+ .lg\:top-4 {
1256
+ top: calc(var(--spacing) * 4);
1257
+ }
1258
+ .lg\:w-60 {
1259
+ width: calc(var(--spacing) * 60);
1260
+ }
1261
+ .lg\:max-w-3xl {
1262
+ max-width: var(--container-3xl);
1263
+ }
1264
+ .lg\:shrink-0 {
1265
+ flex-shrink: 0;
1266
+ }
1267
+ .lg\:grid-cols-\[minmax\(0\,1fr\)_minmax\(12rem\,0\.35fr\)_auto\] {
1268
+ grid-template-columns: minmax(0,1fr) minmax(12rem,0.35fr) auto;
1269
+ }
1270
+ .lg\:items-end {
1271
+ align-items: flex-end;
1272
+ }
1057
1273
  .lg\:px-8 {
1058
1274
  padding-inline: calc(var(--spacing) * 8);
1059
1275
  }
1060
1276
  }
1277
+ .\[\&\:\:-webkit-details-marker\]\:hidden::-webkit-details-marker {
1278
+ display: none;
1279
+ }
1061
1280
  }
1062
- @charset "UTF-8";
1063
1281
  :root {
1064
1282
  --lesli-color-primary-50: #F2F7FF;
1065
1283
  --lesli-color-primary-100: #E3EEFF;
@@ -1384,1518 +1602,30 @@ Building a better future, one line of code at a time.
1384
1602
  --lesli-font-size: var(--lesli-theme-font-size, 16px);
1385
1603
  --lesli-font-color: var(--lesli-theme-font-color, black);
1386
1604
  }
1387
- @layer theme {
1388
- :root {
1389
- --lexxy-color-ink: oklch(20% 0 0);
1390
- --lexxy-color-ink-medium: oklch(40% 0 0);
1391
- --lexxy-color-ink-light: oklch(60% 0 0);
1392
- --lexxy-color-ink-lighter: oklch(85% 0 0);
1393
- --lexxy-color-ink-lightest: oklch(96% 0 0);
1394
- --lexxy-color-ink-inverted: white;
1395
- --lexxy-color-accent-dark: oklch(57% 0.19 260);
1396
- --lexxy-color-accent-medium: oklch(75% 0.196 258);
1397
- --lexxy-color-accent-light: oklch(88% 0.026 254);
1398
- --lexxy-color-accent-lightest: oklch(92% 0.026 254);
1399
- --lexxy-color-red: oklch(60% 0.15 27);
1400
- --lexxy-color-green: oklch(60% 0.15 145);
1401
- --lexxy-color-blue: oklch(66% 0.196 258);
1402
- --lexxy-color-purple: oklch(60% 0.15 305);
1403
- --lexxy-color-code-token-att: #d73a49;
1404
- --lexxy-color-code-token-comment: #6a737d;
1405
- --lexxy-color-code-token-function: #6f42c1;
1406
- --lexxy-color-code-token-operator: #d73a49;
1407
- --lexxy-color-code-token-property: #005cc5;
1408
- --lexxy-color-code-token-punctuation: #24292e;
1409
- --lexxy-color-code-token-selector: #22863a;
1410
- --lexxy-color-code-token-variable: #e36209;
1411
- --lexxy-color-canvas: var(--lexxy-color-ink-inverted);
1412
- --lexxy-color-text: var(--lexxy-color-ink);
1413
- --lexxy-color-text-subtle: var(--lexxy-color-ink-medium);
1414
- --lexxy-color-link: var(--lexxy-color-accent-dark);
1415
- --lexxy-color-selected: var(--lexxy-color-accent-lightest);
1416
- --lexxy-color-selected-hover: var(--lexxy-color-accent-light);
1417
- --lexxy-color-selected-dark: var(--lexxy-color-blue);
1418
- --lexxy-color-selected-50: var(--lexxy-color-selected-dark);
1419
- @supports (color: color-mix(in lab, red, red)) {
1420
- --lexxy-color-selected-50: color-mix(in oklch, var(--lexxy-color-selected-dark) 50%, transparent);
1421
- }
1422
- --lexxy-color-code-bg: var(--lexxy-color-ink-lightest);
1423
- --lexxy-color-floating-controls-separator: rgba(128, 128, 128, 0.3);
1424
- --highlight-1: rgb(136, 118, 38);
1425
- --highlight-2: rgb(185, 94, 6);
1426
- --highlight-3: rgb(207, 0, 0);
1427
- --highlight-4: rgb(216, 28, 170);
1428
- --highlight-5: rgb(144, 19, 254);
1429
- --highlight-6: rgb(5, 98, 185);
1430
- --highlight-7: rgb(17, 138, 15);
1431
- --highlight-8: rgb(148, 82, 22);
1432
- --highlight-9: rgb(102, 102, 102);
1433
- --highlight-bg-1: rgba(229, 223, 6, 0.3);
1434
- --highlight-bg-2: rgba(255, 185, 87, 0.3);
1435
- --highlight-bg-3: rgba(255, 118, 118, 0.3);
1436
- --highlight-bg-4: rgba(248, 137, 216, 0.3);
1437
- --highlight-bg-5: rgba(190, 165, 255, 0.3);
1438
- --highlight-bg-6: rgba(124, 192, 252, 0.3);
1439
- --highlight-bg-7: rgba(140, 255, 129, 0.3);
1440
- --highlight-bg-8: rgba(221, 170, 123, 0.3);
1441
- --highlight-bg-9: rgba(200, 200, 200, 0.3);
1442
- --lexxy-color-table-header-bg: var(--lexxy-color-ink-lightest);
1443
- --lexxy-color-table-cell-border: var(--lexxy-color-ink-lighter);
1444
- --lexxy-color-table-cell-selected: var(--lexxy-color-selected);
1445
- --lexxy-color-table-cell-selected-border: var(--lexxy-color-selected-dark);
1446
- --lexxy-color-table-cell-selected-bg: var(--lexxy-color-accent-lightest);
1447
- --lexxy-color-table-cell-add: var(--lexxy-color-selected-50);
1448
- --lexxy-color-table-cell-toggle: var(--lexxy-color-accent-lightest);
1449
- --lexxy-color-table-cell-remove: oklch(60% 0.15 27 / 0.1);
1450
- --lexxy-table-cell-add-size: 4px;
1451
- --lexxy-font-base: system-ui, sans-serif;
1452
- --lexxy-font-mono: ui-monospace, "Menlo", "Monaco", Consolas, monospace;
1453
- --lexxy-text-small: 0.875rem;
1454
- --lexxy-content-margin: 1rem;
1455
- --lexxy-focus-ring-color: var(--lexxy-color-accent-dark);
1456
- --lexxy-focus-ring-offset: -2px;
1457
- --lexxy-focus-ring-size: 2px;
1458
- --lexxy-toolbar-button-size: 2lh;
1459
- --lexxy-radius: 0.5ch;
1460
- --lexxy-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
1461
- --lexxy-z-popup: 1000;
1462
- }
1463
- }
1464
1605
  @layer components {
1465
- @import url("lexxy-variables.css");
1466
- :where(.lexxy-content) {
1467
- color: var(--lexxy-color-ink);
1468
- h1, h2, h3, h4, h5, h6 {
1469
- display: block;
1470
- font-weight: bold;
1471
- hyphens: auto;
1472
- margin-block: 0 var(--lexxy-content-margin);
1473
- overflow-wrap: break-word;
1474
- @supports (text-wrap: balance) {
1475
- text-wrap: balance;
1476
- }
1477
- }
1478
- h1 {
1479
- font-size: 2rem;
1480
- }
1481
- h2 {
1482
- font-size: 1.5rem;
1483
- }
1484
- h3 {
1485
- font-size: 1.25rem;
1486
- }
1487
- h4 {
1488
- font-size: 1rem;
1489
- }
1490
- h5 {
1491
- font-size: 0.875rem;
1492
- }
1493
- h6 {
1494
- font-size: 0.75rem;
1495
- }
1496
- p, ul, ol, dl, blockquote, figure, .attachment, .attachment-gallery {
1497
- margin-block: 0 var(--lexxy-content-margin);
1498
- position: relative;
1499
- &:not(lexxy-editor &) {
1500
- overflow-wrap: break-word;
1501
- @supports (text-wrap: pretty) {
1502
- text-wrap: pretty;
1503
- }
1504
- }
1505
- }
1506
- .lexxy-content__italic {
1507
- font-style: italic;
1508
- }
1509
- .lexxy-content__bold {
1510
- font-weight: bold;
1511
- }
1512
- .lexxy-content__strikethrough {
1513
- text-decoration: line-through;
1514
- }
1515
- .lexxy-content__underline {
1516
- text-decoration: underline;
1517
- }
1518
- .lexxy-content__strikethrough.lexxy-content__underline {
1519
- text-decoration: line-through underline;
1520
- }
1521
- mark, .lexxy-content__highlight {
1522
- background-color: transparent;
1523
- color: inherit;
1524
- }
1525
- blockquote {
1526
- border-inline-start: 0.25em solid var(--lexxy-color-ink-lighter);
1527
- font-style: italic;
1528
- margin: var(--lexxy-content-margin) 0;
1529
- padding: 0.5lh 2ch;
1530
- p:last-child {
1531
- margin-block-end: 0;
1532
- }
1533
- }
1534
- p:empty {
1535
- display: none;
1536
- }
1537
- a {
1538
- color: var(--lexxy-color-link);
1539
- text-decoration: underline;
1540
- }
1541
- img, video, embed, object {
1542
- inline-size: auto;
1543
- margin-inline: auto;
1544
- max-block-size: 32rem;
1545
- object-fit: contain;
1546
- a:has(&) {
1547
- display: inline-block;
1548
- }
1549
- }
1550
- code, pre {
1551
- background-color: var(--lexxy-color-ink-lightest);
1552
- border-radius: var(--lexxy-radius);
1553
- color: var(--lexxy-color-ink);
1554
- font-family: var(--lexxy-font-mono);
1555
- font-size: 0.9em;
1556
- padding: 0.25ch 0.5ch;
1557
- &:is(pre), &[data-language] {
1558
- border-radius: var(--lexxy-radius);
1559
- display: block;
1560
- hyphens: none;
1561
- margin-block: 0 var(--lexxy-content-margin);
1562
- overflow-x: auto;
1563
- overflow-wrap: break-word;
1564
- padding: 1ch;
1565
- tab-size: 2;
1566
- white-space: pre;
1567
- @supports (text-wrap: nowrap) {
1568
- text-wrap: nowrap;
1569
- }
1570
- }
1571
- }
1572
- ol, ul:not(.lexxy-prompt-menu) {
1573
- margin-inline-start: calc(var(--lexxy-content-margin) * 1.5);
1574
- padding: 0;
1575
- }
1576
- ul {
1577
- list-style-type: disc;
1578
- }
1579
- ol {
1580
- list-style-type: decimal;
1581
- }
1582
- li.lexxy-nested-listitem {
1583
- list-style-type: none;
1584
- ol, ul {
1585
- margin-block-end: 0;
1586
- }
1587
- }
1588
- hr {
1589
- border: 0;
1590
- border-block-end: 1px solid currentColor;
1591
- inline-size: 20%;
1592
- margin: calc(0.5em + var(--lexxy-content-margin)) 0;
1593
- }
1594
- .horizontal-divider {
1595
- margin: 0;
1596
- padding: calc(0.5em + var(--lexxy-content-margin)) 0;
1597
- hr {
1598
- margin: 0;
1599
- }
1600
- }
1601
- *:has(+ .horizontal-divider) {
1602
- margin-block-end: 0;
1603
- }
1604
- > :last-child {
1605
- margin-block-end: 0;
1606
- }
1607
- .code-token__attr, .token.attr-name, .token.atrule, .token.attr, .token.keyword {
1608
- color: var(--lexxy-color-code-token-att);
1609
- }
1610
- .code-token__property, .token.boolean, .token.constant, .token.number, .token.property, .token.symbol, .token.tag {
1611
- color: var(--lexxy-color-code-token-property);
1612
- }
1613
- .code-token__selector, .token.attr-value, .token.builtin, .token.char, .token.inserted, .token.line, .token.selector, .token.string {
1614
- color: var(--lexxy-color-code-token-selector);
1615
- }
1616
- .code-token__comment, .token.cdata, .token.comment, .token.doctype, .token.prolog {
1617
- color: var(--lexxy-color-code-token-comment);
1618
- font-style: italic;
1619
- }
1620
- .code-token__operator, .token.deleted, .token.entity, .token.operator, .token.url, code[data-language="diff"] .code-token__operator + .code-token__selector {
1621
- color: var(--lexxy-color-code-token-operator);
1622
- }
1623
- .code-token__function, .token.class, .token.class-name, .token.function {
1624
- color: var(--lexxy-color-code-token-function);
1625
- }
1626
- .code-token__variable, .token.important, .token.namespace, .token.regex, .token.variable {
1627
- color: var(--lexxy-color-code-token-variable);
1628
- }
1629
- .code-token__punctuation, .token.punctuation {
1630
- color: var(--lexxy-color-code-token-punctuation);
1631
- }
1632
- :where(.lexxy-content__table-wrapper) {
1633
- margin: 0;
1634
- margin-block: 1ch;
1635
- overflow-x: auto;
1636
- }
1637
- table {
1638
- border-collapse: collapse;
1639
- border-spacing: 0;
1640
- inline-size: calc(100% - 0.5ch);
1641
- margin: 0.25ch;
1642
- th, td {
1643
- border: 1px solid var(--lexxy-color-ink-lighter);
1644
- min-width: 5ch;
1645
- max-width: 50ch;
1646
- padding: 1ch;
1647
- text-align: start;
1648
- word-break: normal;
1649
- *:last-child {
1650
- margin-block-end: 0;
1651
- }
1652
- &.lexxy-content__table-cell--header {
1653
- background-color: var(--lexxy-color-table-header-bg);
1654
- font-weight: bold;
1655
- }
1656
- *:is(code, pre) {
1657
- hyphens: auto;
1658
- white-space: pre-wrap;
1659
- @supports (text-wrap: wrap) {
1660
- text-wrap: wrap;
1661
- }
1662
- }
1663
- }
1664
- }
1665
- p:has(.attachment) {
1666
- text-align: center;
1667
- }
1668
- .attachment {
1669
- --lexxy-attachment-gap: 0.75ch;
1670
- block-size: auto;
1671
- box-sizing: border-box;
1672
- border-radius: var(--lexxy-radius);
1673
- display: block;
1674
- inline-size: fit-content;
1675
- margin-inline: auto;
1676
- max-inline-size: 100%;
1677
- min-inline-size: 10ch;
1678
- padding: var(--lexxy-attachment-gap);
1679
- position: relative;
1680
- text-align: center;
1681
- }
1682
- .attachment__caption {
1683
- color: var(--lexxy-color-text-subtle);
1684
- display: block;
1685
- font-size: var(--lexxy-text-small);
1686
- padding: 1ch;
1687
- }
1688
- .attachment__icon {
1689
- aspect-ratio: 4/5;
1690
- background-color: transparent;
1691
- @supports (color: color-mix(in lab, red, red)) {
1692
- background-color: color-mix(var(--lexxy-attachment-icon-color), transparent 90%);
1693
- }
1694
- block-size: 3lh;
1695
- border: 1px solid var(--lexxy-attachment-icon-color);
1696
- border-block-start-width: 1.5ch;
1697
- border-radius: var(--lexxy-radius);
1698
- box-sizing: border-box;
1699
- color: var(--lexxy-attachment-icon-color);
1700
- display: grid;
1701
- font-size: var(--lexxy-text-small);
1702
- font-weight: bold;
1703
- inline-size: auto;
1704
- overflow: hidden;
1705
- place-content: center;
1706
- text-transform: uppercase;
1707
- white-space: nowrap;
1708
- }
1709
- .attachment--preview {
1710
- img, video {
1711
- border-radius: var(--lexxy-radius);
1712
- block-size: auto;
1713
- display: block;
1714
- margin-inline: auto;
1715
- max-inline-size: 100%;
1716
- -webkit-user-select: none;
1717
- @supports (user-select: none) {
1718
- user-select: none;
1719
- }
1720
- }
1721
- > a {
1722
- display: block;
1723
- }
1724
- .attachment__caption {
1725
- padding-block-end: 0.5ch;
1726
- }
1727
- }
1728
- .attachment--file {
1729
- --lexxy-attachment-icon-color: var(--lexxy-color-text-subtle);
1730
- align-items: center;
1731
- display: flex;
1732
- flex-wrap: wrap;
1733
- inline-size: auto;
1734
- .attachment__caption {
1735
- display: grid;
1736
- flex: 1;
1737
- text-align: start;
1738
- }
1739
- .attachment__name {
1740
- color: var(--lexxy-color-ink);
1741
- font-weight: bold;
1742
- }
1743
- }
1744
- .attachment--psd, .attachment--key, .attachment--sketch, .attachment--ai, .attachment--eps, .attachment--indd, .attachment--svg, .attachment--ppt, .attachment--pptx {
1745
- --lexxy-attachment-icon-color: var(--lexxy-color-red);
1746
- }
1747
- .attachment--css, .attachment--php, .attachment--json, .attachment--htm, .attachment--html, .attachment--rb, .attachment--erb, .attachment--ts, .attachment--js {
1748
- --lexxy-attachment-icon-color: var(--lexxy-color-purple);
1749
- }
1750
- .attachment--txt, .attachment--pages, .attachment--rtf, .attachment--md, .attachment--doc, .attachment--docx {
1751
- --lexxy-attachment-icon-color: var(--lexxy-color-blue);
1752
- }
1753
- .attachment--csv, .attachment--numbers, .attachment--xls, .attachment--xlsx {
1754
- --lexxy-attachment-icon-color: var(--lexxy-color-green);
1755
- }
1756
- .attachment--error {
1757
- padding-block: 2ch;
1758
- }
1759
- .attachment-gallery {
1760
- display: block;
1761
- text-align: center;
1762
- .attachment {
1763
- display: inline-flex;
1764
- flex-direction: column;
1765
- gap: 0;
1766
- inline-size: calc(33.333% - 0.8ch);
1767
- vertical-align: top;
1768
- .attachment__caption {
1769
- padding-block-end: 1ch;
1770
- }
1771
- }
1772
- &.attachment-gallery--2, &.attachment-gallery--4 {
1773
- .attachment {
1774
- inline-size: calc(50% - 0.8ch);
1775
- }
1776
- }
1777
- }
1778
- action-text-attachment[content-type^="application/vnd.actiontext"] {
1779
- --lexxy-attachment-bg-color: transparent;
1780
- --lexxy-attachment-image-size: 1em;
1781
- --lexxy-attachment-text-color: currentColor;
1782
- align-items: center;
1783
- background: var(--lexxy-attachment-bg-color);
1784
- border-radius: var(--lexxy-radius);
1785
- color: var(--lexxy-attachment-text-color);
1786
- display: inline-flex;
1787
- gap: 0.25ch;
1788
- margin: 0;
1789
- padding: 0;
1790
- position: relative;
1791
- white-space: normal;
1792
- img {
1793
- block-size: var(--lexxy-attachment-image-size);
1794
- border-radius: 50%;
1795
- inline-size: var(--lexxy-attachment-image-size);
1796
- }
1797
- }
1798
- .horizontal-divider {
1799
- margin: 0;
1800
- margin-block-end: .5em;
1801
- padding: 1.5em 0 .5em;
1802
- hr {
1803
- border: 0;
1804
- border-block-end: 1px solid currentColor;
1805
- inline-size: 20%;
1806
- margin: 0;
1807
- }
1808
- }
1809
- }
1810
- @import url("lexxy-variables.css");
1811
- :where(lexxy-editor) {
1812
- --lexxy-editor-padding: 1ch;
1813
- --lexxy-editor-rows: 8lh;
1814
- @supports (min-block-size: attr(rows lh)) {
1815
- --lexxy-editor-rows: attr(rows lh, 8lh);
1816
- }
1817
- --lexxy-toolbar-gap: 2px;
1818
- --lexxy-toolbar-spacing: 0.5ch;
1819
- --lexxy-toolbar-padding: 2px;
1820
- --lexxy-toolbar-border-size: 1px;
1821
- --lexxy-toolbar-height: calc(var(--lexxy-toolbar-button-size) + 2 * var(--lexxy-toolbar-padding) + var(--lexxy-toolbar-border-size));
1822
- border: 1px solid var(--lexxy-color-ink-lighter);
1823
- border-radius: calc(var(--lexxy-radius) + var(--lexxy-toolbar-gap));
1824
- background-color: var(--lexxy-color-canvas);
1825
- container-type: inline-size;
1826
- display: block;
1827
- overflow: visible;
1828
- position: relative;
1829
- transition: opacity 150ms;
1830
- p.provisional-paragraph {
1831
- display: block;
1832
- &.hidden {
1833
- block-size: 0.5ch;
1834
- margin: 0;
1835
- }
1836
- }
1837
- input, button, summary {
1838
- &:focus-visible {
1839
- outline: var(--lexxy-focus-ring-size) solid var(--lexxy-focus-ring-color);
1840
- outline-offset: var(--lexxy-focus-ring-offset);
1841
- }
1842
- }
1843
- summary {
1844
- list-style: none;
1845
- &::-webkit-details-marker {
1846
- display: none;
1847
- }
1848
- }
1849
- button, summary {
1850
- -webkit-appearance: none;
1851
- appearance: none;
1852
- background: var(--lexxy-color-canvas);
1853
- border: none;
1854
- border-radius: var(--lexxy-radius);
1855
- cursor: pointer;
1856
- line-height: normal;
1857
- font-size: inherit;
1858
- inline-size: auto;
1859
- padding: 0;
1860
- @media (any-hover: hover) {
1861
- &:hover:not([aria-disabled="true"]) {
1862
- background: var(--lexxy-color-ink-lightest);
1863
- }
1864
- }
1865
- }
1866
- .node--selected {
1867
- outline: var(--lexxy-focus-ring-size) solid var(--lexxy-focus-ring-color);
1868
- outline-offset: var(--lexxy-focus-ring-offset);
1869
- }
1870
- &[data-links-openable] a {
1871
- cursor: pointer;
1872
- }
1873
- table {
1874
- th, td {
1875
- position: relative;
1876
- transition: all 0.1s ease-in-out;
1877
- &:after {
1878
- box-shadow: 0 0 0 0 transparent, 0 0 0 0 transparent inset;
1879
- content: "";
1880
- display: block;
1881
- inset-block-start: -1px;
1882
- inset-block-end: -1px;
1883
- inset-inline-start: -1px;
1884
- inset-inline-end: -1px;
1885
- pointer-events: none;
1886
- position: absolute;
1887
- transition: box-shadow 0.1s ease-in-out;
1888
- z-index: 2;
1889
- }
1890
- &.lexxy-content__table-cell--selected {
1891
- background-color: var(--lexxy-color-table-cell-selected-bg);
1892
- }
1893
- &.lexxy-content__table-cell--focus {
1894
- &:after {
1895
- box-shadow: 0 0 0 0 transparent, 0 0 0 2px var(--lexxy-color-table-cell-selected-border) inset;
1896
- }
1897
- }
1898
- &.lexxy-content__table-cell--highlight {
1899
- &[data-action="insert"] {
1900
- &[data-child-type="row"] {
1901
- &[data-direction="after"] {
1902
- &:after {
1903
- box-shadow: 0 var(--lexxy-table-cell-add-size) 0 0 var(--lexxy-color-table-cell-add), 0 calc(-1 * var(--lexxy-table-cell-add-size) - 1px) 0 0 var(--lexxy-color-table-cell-add) inset;
1904
- }
1905
- }
1906
- &[data-direction="before"] {
1907
- &:after {
1908
- box-shadow: 0 calc(-1 * var(--lexxy-table-cell-add-size) - 1px) 0 0 var(--lexxy-color-table-cell-add), 0 var(--lexxy-table-cell-add-size) 0 0 var(--lexxy-color-table-cell-add) inset;
1909
- }
1910
- }
1911
- }
1912
- &[data-child-type="column"] {
1913
- &[data-direction="after"] {
1914
- &:after {
1915
- box-shadow: var(--lexxy-table-cell-add-size) 0 0 0 var(--lexxy-color-table-cell-add), calc(-1 * var(--lexxy-table-cell-add-size) - 1px) 0 0 0 var(--lexxy-color-table-cell-add) inset;
1916
- }
1917
- }
1918
- &[data-direction="before"] {
1919
- &:after {
1920
- box-shadow: calc(-1 * var(--lexxy-table-cell-add-size) - 1px) 0 0 0 var(--lexxy-color-table-cell-add), var(--lexxy-table-cell-add-size) 0 0 0 var(--lexxy-color-table-cell-add) inset;
1921
- }
1922
- }
1923
- }
1924
- }
1925
- &[data-action="delete"] {
1926
- background-color: var(--lexxy-color-table-cell-remove);
1927
- color: var(--lexxy-color-red);
1928
- &:after {
1929
- box-shadow: 0 0 0 0 transparent;
1930
- }
1931
- }
1932
- &[data-action="toggle"] {
1933
- background-color: var(--lexxy-color-table-cell-toggle);
1934
- &:after {
1935
- box-shadow: 0 0 0 0 transparent;
1936
- }
1937
- }
1938
- }
1939
- }
1940
- tr.lexxy-content__table-cell--highlight[data-action="delete"] {
1941
- th, td {
1942
- background-color: var(--lexxy-color-table-cell-remove);
1943
- color: var(--lexxy-color-red);
1944
- &:after {
1945
- box-shadow: 0 0 0 0 transparent;
1946
- }
1947
- }
1948
- }
1949
- &.lexxy-content__table--selection {
1950
- ::selection {
1951
- background: transparent;
1952
- }
1953
- }
1954
- }
1955
- &:has(.lexxy-content__table-cell--selected) {
1956
- lexxy-table-tools {
1957
- visibility: hidden;
1958
- }
1959
- }
1960
- [data-lexical-linebreak] {
1961
- block-size: 0;
1962
- display: contents;
1963
- inline-size: 0;
1964
- }
1965
- action-text-attachment {
1966
- cursor: pointer;
1967
- }
1968
- .attachment {
1969
- background-color: var(--lexxy-color-canvas);
1970
- progress {
1971
- max-inline-size: 10ch;
1972
- margin: auto;
1973
- }
1974
- &.attachment--preview {
1975
- progress {
1976
- inset-block-start: 2ch;
1977
- inset-inline-start: 0;
1978
- inset-inline-end: 0;
1979
- position: absolute;
1980
- }
1981
- }
1982
- &.attachment--error {
1983
- background: transparent;
1984
- @supports (color: color-mix(in lab, red, red)) {
1985
- background: color-mix(var(--lexxy-color-red) 10%, transparent);
1986
- }
1987
- padding: 2ch;
1988
- &:before {
1989
- align-items: center;
1990
- aspect-ratio: 1;
1991
- background: var(--lexxy-color-red);
1992
- block-size: 1.5lh;
1993
- border-radius: 50%;
1994
- color: white;
1995
- content: "!";
1996
- display: flex;
1997
- justify-content: center;
1998
- margin: auto;
1999
- }
2000
- > div {
2001
- flex: 1;
2002
- font-size: 0.85em;
2003
- padding: 1ch;
2004
- text-align: start;
2005
- }
2006
- }
2007
- }
2008
- .attachment[draggable] {
2009
- cursor: grab;
2010
- }
2011
- .attachment.lexxy-dragging {
2012
- opacity: 0.4;
2013
- }
2014
- [data-lexxy-decorator][draggable] {
2015
- cursor: grab;
2016
- }
2017
- [data-lexxy-decorator].lexxy-dragging {
2018
- opacity: 0.4;
2019
- }
2020
- .lexxy-drop-caret {
2021
- background-color: var(--lexxy-focus-ring-color);
2022
- border-radius: 1px;
2023
- inline-size: 2px;
2024
- pointer-events: none;
2025
- position: fixed;
2026
- }
2027
- [class*="lexxy-drop-target--"] {
2028
- position: relative;
2029
- }
2030
- .lexxy-drop-target--block-before::before, .lexxy-drop-target--block-after::after, .lexxy-drop-target--list-before::before, .lexxy-drop-target--list-after::after {
2031
- background-color: var(--lexxy-focus-ring-color);
2032
- block-size: 3px;
2033
- border-radius: 1px;
2034
- content: "";
2035
- inset-inline: 0;
2036
- pointer-events: none;
2037
- position: absolute;
2038
- transform: translate(0, 0.5ch);
2039
- }
2040
- .lexxy-drop-target--block-before::before, .lexxy-drop-target--list-before::before {
2041
- transform: translate(0, -0.5ch);
2042
- }
2043
- .lexxy-drop-target--block-before::before, .lexxy-drop-target--list-before::before {
2044
- inset-block-start: -2px;
2045
- }
2046
- .lexxy-drop-target--block-after::after, .lexxy-drop-target--list-after::after {
2047
- inset-block-end: -2px;
2048
- }
2049
- .lexxy-drop-target--gallery-before::before, .lexxy-drop-target--gallery-after::after {
2050
- background-color: var(--lexxy-focus-ring-color);
2051
- border-radius: 1px;
2052
- content: "";
2053
- inset-block: 0;
2054
- inline-size: 3px;
2055
- pointer-events: none;
2056
- position: absolute;
2057
- }
2058
- .lexxy-drop-target--gallery-before::before {
2059
- inset-inline-start: -4px;
2060
- }
2061
- .lexxy-drop-target--gallery-after::after {
2062
- inset-inline-end: -4px;
2063
- }
2064
- .attachment:hover:not(.node--selected) {
2065
- outline: var(--lexxy-focus-ring-size) solid var(--lexxy-focus-ring-color);
2066
- @supports (color: color-mix(in lab, red, red)) {
2067
- outline: var(--lexxy-focus-ring-size) solid color-mix(in oklch, var(--lexxy-focus-ring-color) 30%, transparent);
2068
- }
2069
- outline-offset: var(--lexxy-focus-ring-offset);
2070
- }
2071
- .attachment-gallery {
2072
- --lexxy-attachment-gallery-columns: 3;
2073
- --lexxy-attachment-gallery-gap: 0.4ch;
2074
- --lexxy-focus-ring-offset: -6px;
2075
- padding: 0;
2076
- .attachment {
2077
- background: transparent;
2078
- box-sizing: border-box;
2079
- margin: var(--lexxy-attachment-gallery-gap);
2080
- padding: 0;
2081
- padding-block-end: var(--lexxy-attachment-gap);
2082
- vertical-align: top;
2083
- img {
2084
- box-sizing: border-box;
2085
- padding: 1ch;
2086
- padding-block-end: 0;
2087
- }
2088
- &.attachment--error {
2089
- background: transparent;
2090
- @supports (color: color-mix(in lab, red, red)) {
2091
- background: color-mix(var(--lexxy-color-red) 10%, transparent);
2092
- }
2093
- padding: 2ch;
2094
- > div {
2095
- text-align: center;
2096
- }
2097
- }
2098
- }
2099
- }
2100
- .attachment__caption--editable {
2101
- box-sizing: border-box;
2102
- cursor: text;
2103
- .attachment__caption-text {
2104
- display: block;
2105
- min-block-size: 1lh;
2106
- overflow-wrap: anywhere;
2107
- white-space: pre-wrap;
2108
- text-align: center;
2109
- }
2110
- &[data-placeholder] .attachment__caption-text {
2111
- overflow: hidden;
2112
- text-overflow: ellipsis;
2113
- white-space: nowrap;
2114
- }
2115
- }
2116
- .attachment__caption--editing .attachment__caption-text {
2117
- display: none;
2118
- }
2119
- }
2120
- :where(lexxy-editor:not(:defined)) {
2121
- min-block-size: calc(var(--lexxy-toolbar-height) + var(--lexxy-editor-rows) + 2 * var(--lexxy-editor-padding));
2122
- }
2123
- :where(.lexxy-editor--empty) .lexxy-editor__content:not(:has(h1, h2, h3, h4, h5, h6, table, ul, ol, figure, .attachment-gallery))::before {
2124
- content: attr(placeholder);
2125
- color: currentColor;
2126
- cursor: text;
2127
- opacity: 0.66;
2128
- pointer-events: none;
2129
- position: absolute;
2130
- white-space: pre-line;
2131
- }
2132
- :where(.lexxy-editor__content) {
2133
- min-block-size: var(--lexxy-editor-rows);
2134
- outline: 0;
2135
- padding: var(--lexxy-editor-padding);
2136
- contain: layout style;
2137
- }
2138
- :where(.lexxy-editor--drag-over) {
2139
- background-color: var(--lexxy-color-selected);
2140
- border-radius: var(--lexxy-radius);
2141
- outline: 2px dashed var(--lexxy-color-selected-dark);
2142
- }
2143
- :where([data-lexical-cursor]) {
2144
- animation: blink 1s infinite;
2145
- block-size: 1lh;
2146
- border-inline-start: 1.5px solid currentColor;
2147
- line-height: inherit;
2148
- margin-block: 0 var(--lexxy-content-margin);
2149
- }
2150
- @keyframes blink {
2151
- 0% {
2152
- opacity: 1;
2153
- }
2154
- 60% {
2155
- opacity: 1;
2156
- }
2157
- 100% {
2158
- opacity: 0;
2159
- }
2160
- }
2161
- :where(lexxy-toolbar) {
2162
- --lexxy-toolbar-icon-size: 1.125em;
2163
- border-block-end: var(--lexxy-toolbar-border-size) solid var(--lexxy-color-ink-lighter);
2164
- color: currentColor;
2165
- display: flex;
2166
- font-size: inherit;
2167
- gap: var(--lexxy-toolbar-gap);
2168
- max-inline-size: 100%;
2169
- padding: var(--lexxy-toolbar-padding);
2170
- position: relative;
2171
- @container (width < 300px) {
2172
- font-size: 0.8em;
2173
- }
2174
- &[data-attachments="false"] button[name="image"], &[data-attachments="false"] button[name="file"] {
2175
- display: none;
2176
- }
2177
- &[data-upload="file"] button[name="image"] {
2178
- display: none;
2179
- }
2180
- &[data-upload="image"] button[name="file"] {
2181
- display: none;
2182
- }
2183
- .lexxy-editor__toolbar-button {
2184
- aspect-ratio: 1;
2185
- block-size: var(--lexxy-toolbar-button-size);
2186
- border: 0;
2187
- border-radius: var(--lexxy-radius);
2188
- color: currentColor;
2189
- display: grid;
2190
- line-height: inherit;
2191
- place-items: center;
2192
- &:is(:active):not([aria-disabled="true"]), &[aria-pressed="true"] {
2193
- background-color: var(--lexxy-color-selected);
2194
- &:hover {
2195
- background-color: var(--lexxy-color-selected-hover);
2196
- }
2197
- }
2198
- &[aria-disabled="true"] {
2199
- cursor: default;
2200
- opacity: 0.3;
2201
- }
2202
- svg {
2203
- -webkit-touch-callout: none;
2204
- block-size: var(--lexxy-toolbar-icon-size);
2205
- fill: currentColor;
2206
- grid-area: 1/1;
2207
- inline-size: var(--lexxy-toolbar-icon-size);
2208
- -webkit-user-select: none;
2209
- @supports (user-select: none) {
2210
- user-select: none;
2211
- }
2212
- }
2213
- &.lexxy-editor__toolbar-group-end {
2214
- position: relative;
2215
- margin-inline-end: calc(var(--lexxy-toolbar-spacing) + 1px);
2216
- &:after {
2217
- background-color: var(--lexxy-color-ink-lighter);
2218
- block-size: var(--lexxy-toolbar-icon-size);
2219
- content: "";
2220
- display: block;
2221
- inline-size: 1px;
2222
- inset-inline-end: calc(-1 * var(--lexxy-toolbar-spacing));
2223
- inset-block: 0;
2224
- margin: auto;
2225
- pointer-events: none;
2226
- position: absolute;
2227
- }
2228
- }
2229
- }
2230
- .lexxy-editor__toolbar-button--push-right {
2231
- margin-inline-start: auto;
2232
- }
2233
- }
2234
- :where(.lexxy-editor__toolbar-dropdown) {
2235
- -webkit-user-select: none;
2236
- @supports (user-select: none) {
2237
- user-select: none;
2238
- }
2239
- .lexxy-editor__toolbar-button {
2240
- color: currentColor;
2241
- &:hover {
2242
- opacity: 0.8;
2243
- }
2244
- &.lexxy-editor__toolbar-button--chevron {
2245
- aspect-ratio: unset;
2246
- gap: 0.5ch;
2247
- grid-template-columns: 2fr 1fr;
2248
- min-inline-size: calc(var(--lexxy-toolbar-button-size) + 1.2ch);
2249
- padding-inline: 0.75ch;
2250
- &:after {
2251
- block-size: 0.3ch;
2252
- border-block-end: 2px solid currentColor;
2253
- border-inline-end: 2px solid currentColor;
2254
- content: "";
2255
- display: inline-block;
2256
- inline-size: 0.3ch;
2257
- transform: rotate(45deg);
2258
- }
2259
- }
2260
- }
2261
- > .lexxy-editor__toolbar-button[aria-expanded="true"] {
2262
- background-color: var(--lexxy-color-selected-hover);
2263
- border-end-end-radius: 0;
2264
- border-end-start-radius: 0;
2265
- &:hover {
2266
- background-color: var(--lexxy-color-selected-hover);
2267
- }
2268
- }
2269
- [data-dropdown-panel] {
2270
- background-color: var(--lexxy-color-canvas);
2271
- border: 2px solid var(--lexxy-color-selected-hover);
2272
- border-radius: calc(var(--lexxy-radius) + var(--lexxy-toolbar-gap));
2273
- box-sizing: border-box;
2274
- box-shadow: var(--lexxy-shadow);
2275
- color: var(--lexxy-color-text);
2276
- display: flex;
2277
- gap: var(--lexxy-toolbar-gap);
2278
- margin: 0;
2279
- padding: var(--lexxy-toolbar-spacing);
2280
- position: absolute;
2281
- z-index: 3;
2282
- &[hidden], [overflowing] &[hidden] {
2283
- display: none;
2284
- }
2285
- }
2286
- .lexxy-editor__toolbar-dropdown-list {
2287
- border-start-start-radius: 0;
2288
- flex-direction: column;
2289
- padding: 0.1ch;
2290
- button {
2291
- align-items: center;
2292
- color: var(--lexxy-color-text);
2293
- display: flex;
2294
- flex-direction: row;
2295
- gap: 1ch;
2296
- padding: 1ch;
2297
- position: relative;
2298
- &[aria-checked="true"] {
2299
- background-color: var(--lexxy-color-selected);
2300
- &:hover {
2301
- background-color: var(--lexxy-color-selected-hover);
2302
- }
2303
- }
2304
- span {
2305
- font-size: var(--lexxy-text-small);
2306
- }
2307
- svg {
2308
- block-size: 1lh;
2309
- fill: currentColor;
2310
- inline-size: 1lh;
2311
- }
2312
- }
2313
- .lexxy-editor__toolbar-separator {
2314
- background: var(--lexxy-color-ink-lighter);
2315
- block-size: 1px;
2316
- inline-size: 100%;
2317
- }
2318
- [overflowing] & {
2319
- display: grid;
2320
- grid-template-columns: repeat(4, 1fr);
2321
- button span {
2322
- display: none;
2323
- }
2324
- .lexxy-editor__toolbar-separator {
2325
- grid-column: 1 / -1;
2326
- }
2327
- }
2328
- }
2329
- &.lexxy-editor__toolbar-overflow {
2330
- display: none;
2331
- justify-self: flex-end;
2332
- z-index: 1;
2333
- [data-dropdown-panel] {
2334
- border-start-end-radius: 0;
2335
- display: grid;
2336
- grid-template-columns: repeat(4, 1fr);
2337
- inset-inline-end: var(--lexxy-toolbar-gap);
2338
- }
2339
- }
2340
- &.lexxy-editor__toolbar-dropdown--link {
2341
- [data-dropdown-panel] {
2342
- font-size: var(--lexxy-text-small);
2343
- gap: var(--lexxy-toolbar-spacing);
2344
- inset-inline-start: var(--lexxy-toolbar-spacing);
2345
- inset-inline-end: var(--lexxy-toolbar-spacing);
2346
- [overflowing] & {
2347
- flex-wrap: wrap;
2348
- }
2349
- .lexxy-editor__toolbar-dropdown-actions {
2350
- display: flex;
2351
- flex: 1;
2352
- gap: var(--lexxy-toolbar-spacing);
2353
- }
2354
- input[type="url"] {
2355
- background-color: var(--lexxy-color-canvas);
2356
- border: 1px solid var(--lexxy-color-ink-lighter);
2357
- border-radius: var(--lexxy-radius);
2358
- color: var(--lexxy-color-text);
2359
- block-size: var(--lexxy-toolbar-button-size);
2360
- box-sizing: border-box;
2361
- font-size: var(--lexxy-text-small);
2362
- flex: 2;
2363
- inline-size: 100%;
2364
- line-height: inherit;
2365
- padding-block: 0;
2366
- padding-inline: 1ch;
2367
- [overflowing] & {
2368
- min-inline-size: 100%;
2369
- }
2370
- }
2371
- button {
2372
- background-color: var(--lexxy-color-ink-lightest);
2373
- inline-size: 100%;
2374
- padding-inline: 2ch;
2375
- }
2376
- button[value="link"] {
2377
- background-color: var(--lexxy-color-accent-dark);
2378
- color: var(--lexxy-color-ink-inverted);
2379
- &:hover {
2380
- background-color: var(--lexxy-color-accent-medium);
2381
- }
2382
- }
2383
- }
2384
- }
2385
- &.lexxy-editor__toolbar-dropdown--highlight {
2386
- position: relative;
2387
- [overflowing] & {
2388
- position: static;
2389
- }
2390
- [data-dropdown-panel] {
2391
- --max-inline-size: calc(var(--max-colors) * (var(--lexxy-toolbar-button-size) + var(--lexxy-toolbar-spacing)));
2392
- border-start-start-radius: 0;
2393
- gap: var(--lexxy-toolbar-spacing);
2394
- flex-direction: column;
2395
- font-size: var(--lexxy-text-small);
2396
- inset-inline-start: 0;
2397
- max-inline-size: var(--max-inline-size);
2398
- [overflowing] & {
2399
- border-start-start-radius: calc(var(--lexxy-radius) + var(--lexxy-toolbar-gap));
2400
- inset-inline-end: var(--lexxy-toolbar-spacing);
2401
- inset-inline-start: var(--lexxy-toolbar-spacing);
2402
- }
2403
- button {
2404
- position: relative;
2405
- }
2406
- .lexxy-highlight-colors {
2407
- display: grid;
2408
- gap: var(--lexxy-toolbar-gap);
2409
- grid-template-columns: repeat(auto-fill, minmax(var(--lexxy-toolbar-button-size), 1fr));
2410
- max-inline-size: var(--max-inline-size);
2411
- .lexxy-highlight-colors__group {
2412
- display: contents;
2413
- }
2414
- button {
2415
- block-size: unset;
2416
- inline-size: 100%;
2417
- &:after {
2418
- align-items: center;
2419
- content: "Aa";
2420
- display: flex;
2421
- font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
2422
- inset: 0;
2423
- justify-content: center;
2424
- position: absolute;
2425
- }
2426
- &[aria-checked="true"] {
2427
- background-color: transparent;
2428
- box-shadow: 0 0 0 2px currentColor inset;
2429
- &:after {
2430
- content: "✓";
2431
- }
2432
- }
2433
- }
2434
- }
2435
- .lexxy-editor__toolbar-dropdown-reset {
2436
- background-color: var(--lexxy-color-ink-lightest);
2437
- &:is([disabled]) {
2438
- display: none;
2439
- }
2440
- }
2441
- }
2442
- }
2443
- }
2444
- :where(.lexxy-floating-controls) {
2445
- --button-size: 2.3lh;
2446
- --floating-tools-radius: calc(var(--lexxy-radius) * 1.5);
2447
- color: var(--lexxy-color-ink-inverted);
2448
- font-size: var(--lexxy-text-small);
2449
- line-height: 1;
2450
- position: absolute;
2451
- z-index: 2;
2452
- button {
2453
- align-items: center;
2454
- background: transparent;
2455
- block-size: var(--button-size);
2456
- color: var(--lexxy-color-ink-inverted);
2457
- display: flex;
2458
- justify-content: center;
2459
- line-height: inherit;
2460
- min-block-size: var(--button-size);
2461
- min-inline-size: var(--button-size);
2462
- -webkit-user-select: none;
2463
- @supports (user-select: none) {
2464
- user-select: none;
2465
- }
2466
- @media (any-hover: hover) {
2467
- &:hover:not([aria-disabled="true"]), &.lexxy-table-control__more-menu-trigger[aria-expanded="true"] {
2468
- background: var(--lexxy-color-ink-medium);
2469
- svg {
2470
- opacity: 1;
2471
- }
2472
- }
2473
- &:focus-visible {
2474
- outline-color: var(--lexxy-focus-ring-color);
2475
- }
2476
- }
2477
- }
2478
- button {
2479
- aspect-ratio: 1 / 1;
2480
- font-weight: bold;
2481
- svg {
2482
- block-size: 1.125em;
2483
- inline-size: 1.125em;
2484
- fill: currentColor;
2485
- opacity: 0.8;
2486
- padding: 1px;
2487
- }
2488
- span {
2489
- display: none;
2490
- }
2491
- }
2492
- .lexxy-table-control__more-menu-trigger {
2493
- aspect-ratio: auto;
2494
- box-shadow: 0 0 0 1px inset var(--lexxy-color-floating-controls-separator);
2495
- font-weight: normal;
2496
- padding: 0 1.25ch;
2497
- }
2498
- .lexxy-floating-controls__group {
2499
- background-color: var(--lexxy-color-ink);
2500
- border-radius: var(--floating-tools-radius);
2501
- padding: 0.25ch;
2502
- }
2503
- &:is(lexxy-table-tools) {
2504
- flex-direction: row;
2505
- gap: 0.25ch;
2506
- inset-inline-start: var(--lexxy-editor-padding);
2507
- transform: translate(-50%, -120%);
2508
- .lexxy-table-control {
2509
- align-items: stretch;
2510
- display: flex;
2511
- flex-direction: row;
2512
- gap: 0.25ch;
2513
- white-space: nowrap;
2514
- .lexxy-table-control__more-menu {
2515
- display: flex;
2516
- gap: 0;
2517
- position: relative;
2518
- .lexxy-table-control__more-menu-details {
2519
- background: var(--lexxy-color-ink);
2520
- border-radius: var(--floating-tools-radius);
2521
- display: flex;
2522
- flex-direction: column;
2523
- gap: 0.25ch;
2524
- inset-block-start: 110%;
2525
- inset-inline-start: 50%;
2526
- padding: 0.25ch;
2527
- position: absolute;
2528
- transform: translateX(-50%);
2529
- &[hidden] {
2530
- display: none;
2531
- }
2532
- button {
2533
- aspect-ratio: unset;
2534
- flex-direction: row;
2535
- font-weight: normal;
2536
- gap: 1ch;
2537
- justify-content: flex-start;
2538
- padding: 0.75ch;
2539
- padding-inline-end: 1.5ch;
2540
- white-space: nowrap;
2541
- span {
2542
- display: inline-block;
2543
- }
2544
- svg {
2545
- block-size: 1.3lh;
2546
- inline-size: 1.3lh;
2547
- fill: currentColor;
2548
- }
2549
- }
2550
- }
2551
- }
2552
- .lexxy-table-control__button--delete-table {
2553
- align-items: center;
2554
- block-size: auto;
2555
- font-weight: normal;
2556
- justify-content: center;
2557
- svg {
2558
- block-size: 1.125em;
2559
- inline-size: 1.125em;
2560
- min-block-size: 1.125em;
2561
- min-inline-size: 1.125em;
2562
- }
2563
- span {
2564
- align-items: center;
2565
- background: var(--lexxy-color-ink);
2566
- border-radius: var(--floating-tools-radius);
2567
- color: var(--lexxy-color-ink-inverted);
2568
- @supports (color: color-mix(in lab, red, red)) {
2569
- color: color-mix(in srgb, var(--lexxy-color-ink-inverted) 80%, transparent);
2570
- }
2571
- display: flex;
2572
- inset-inline-end: calc(var(--button-size) + 1ch);
2573
- inset-block-start: 0;
2574
- inset-block-end: 0;
2575
- inset-inline-start: 0;
2576
- justify-content: center;
2577
- padding: 0.5ch 1ch;
2578
- position: absolute;
2579
- transition: all 0.2s ease-out;
2580
- opacity: 0;
2581
- pointer-events: none;
2582
- white-space: nowrap;
2583
- }
2584
- &:hover {
2585
- background-color: var(--lexxy-color-red);
2586
- svg {
2587
- color: var(--lexxy-color-ink-inverted);
2588
- }
2589
- span {
2590
- opacity: 1;
2591
- }
2592
- }
2593
- }
2594
- }
2595
- }
2596
- &:is(lexxy-attachment-toolbar) {
2597
- display: flex;
2598
- left: calc(var(--lexxy-anchor-left) + var(--lexxy-anchor-width));
2599
- top: var(--lexxy-anchor-top);
2600
- transform: translate(calc(-100% - 1.5ch), 1.5ch);
2601
- &[hidden] {
2602
- display: none;
2603
- }
2604
- &[data-node-type="horizontal_divider"] {
2605
- --button-size: 1.8lh;
2606
- top: calc(var(--lexxy-anchor-top) + var(--lexxy-anchor-height) / 2);
2607
- transform: translate(calc(-100% - 0.5ch), -50%);
2608
- }
2609
- &[data-presentation="inline"] {
2610
- --button-size: 1.6lh;
2611
- top: calc(var(--lexxy-anchor-top) + var(--lexxy-anchor-height) / 2);
2612
- transform: translate(0.5ch, -50%);
2613
- &[data-overflow] {
2614
- transform: translate(-100%, -50%);
2615
- }
2616
- }
2617
- .lexxy-floating-controls__group {
2618
- display: flex;
2619
- }
2620
- button[hidden] {
2621
- display: none;
2622
- }
2623
- .lexxy-attachment-toolbar__alternative-text {
2624
- aspect-ratio: auto;
2625
- margin-inline-end: calc(var(--lexxy-toolbar-spacing) + 1px);
2626
- padding-inline: 1ch;
2627
- position: relative;
2628
- span {
2629
- display: inline-block;
2630
- font-size: 0.9em;
2631
- }
2632
- &:after {
2633
- background-color: var(--lexxy-color-floating-controls-separator);
2634
- block-size: 1.125em;
2635
- content: "";
2636
- display: block;
2637
- inline-size: 1px;
2638
- inset-block: 0;
2639
- inset-inline-end: calc(-1 * var(--lexxy-toolbar-spacing));
2640
- margin: auto;
2641
- pointer-events: none;
2642
- position: absolute;
2643
- }
2644
- }
2645
- .lexxy-attachment-toolbar__remove:hover, .lexxy-attachment-toolbar__remove:focus-visible {
2646
- background-color: var(--lexxy-color-red);
2647
- }
2648
- }
2649
- &:is(lexxy-code-language-picker) {
2650
- inset-inline-end: var(--lexxy-editor-padding);
2651
- select {
2652
- -webkit-appearance: none;
2653
- appearance: none;
2654
- background-color: var(--lexxy-color-canvas);
2655
- background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 19.5c-.7 0-1.3-.3-1.7-.8l-9.8-11.1c-.7-.8-.6-1.9.2-2.6.8-.6 1.9-.6 2.5.2l8.6 9.8c0 .1.2.1.4 0l8.6-9.8c.7-.8 1.8-.9 2.6-.2s.9 1.8.2 2.6l-9.8 11.1c-.4.5-1.1.8-1.7.8z' fill='%23000'/%3E%3C/svg%3E");
2656
- background-position: center right 1ch;
2657
- background-repeat: no-repeat;
2658
- background-size: 1ch;
2659
- block-size: 1.5lh;
2660
- border: 1px solid var(--lexxy-color-ink-lighter);
2661
- border-radius: var(--lexxy-radius);
2662
- color: var(--lexxy-color-ink);
2663
- font-family: var(--lexxy-font-base);
2664
- font-size: var(--lexxy-text-small);
2665
- font-weight: normal;
2666
- margin: 0.5ch 0.5ch 0 -0.5ch;
2667
- padding: 0 2ch 0 1ch;
2668
- text-align: start;
2669
- @media (prefers-color-scheme: dark) {
2670
- background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 19.5c-.7 0-1.3-.3-1.7-.8l-9.8-11.1c-.7-.8-.6-1.9.2-2.6.8-.6 1.9-.6 2.5.2l8.6 9.8c0 .1.2.1.4 0l8.6-9.8c.7-.8 1.8-.9 2.6-.2s.9 1.8.2 2.6l-9.8 11.1c-.4.5-1.1.8-1.7.8z' fill='%23fff'/%3E%3C/svg%3E");
2671
- }
2672
- }
2673
- }
2674
- }
2675
- :where(.lexxy-prompt-menu) {
2676
- --lexxy-prompt-avatar-size: 24px;
2677
- --lexxy-prompt-padding: 0.5ch;
2678
- --lexxy-prompt-offset-x: 0;
2679
- --lexxy-prompt-offset-y: 0;
2680
- background-color: var(--lexxy-color-canvas);
2681
- border-radius: calc(var(--lexxy-prompt-padding) * 2);
2682
- box-shadow: var(--lexxy-shadow);
2683
- color: var(--lexxy-color-ink);
2684
- font-family: var(--lexxy-font-base);
2685
- font-size: var(--lexxy-text-small);
2686
- list-style: none;
2687
- inset-block-start: var(--lexxy-prompt-offset-y);
2688
- inset-inline-start: var(--lexxy-prompt-offset-x);
2689
- margin: 0;
2690
- max-block-size: 200px;
2691
- max-inline-size: min(20ch, calc(100% - var(--lexxy-prompt-offset-x)));
2692
- min-inline-size: 20ch;
2693
- overflow: auto;
2694
- padding: var(--lexxy-prompt-padding);
2695
- position: absolute;
2696
- visibility: hidden;
2697
- z-index: var(--lexxy-z-popup);
2698
- &[data-clipped-at-right] {
2699
- inset-inline-start: unset;
2700
- inset-inline-end: 1ch;
2701
- max-inline-size: calc(100% - 1ch);
2702
- }
2703
- &[data-clipped-at-bottom] {
2704
- inset-block-start: unset;
2705
- inset-block-end: var(--lexxy-prompt-offset-y);
2706
- }
2707
- }
2708
- :where(.lexxy-prompt-menu--visible[data-anchored]) {
2709
- visibility: initial;
2710
- }
2711
- :where(.lexxy-prompt-menu__item) {
2712
- align-items: center;
2713
- border-radius: var(--lexxy-radius);
2714
- cursor: pointer;
2715
- display: flex;
2716
- gap: var(--lexxy-prompt-padding);
2717
- padding: var(--lexxy-prompt-padding);
2718
- &:hover {
2719
- background-color: var(--lexxy-color-ink-lightest);
2720
- }
2721
- &[aria-selected] {
2722
- background-color: var(--lexxy-color-selected);
2723
- }
2724
- img {
2725
- block-size: var(--lexxy-prompt-avatar-size);
2726
- border-radius: 50%;
2727
- flex-shrink: 0;
2728
- inline-size: var(--lexxy-prompt-avatar-size);
2729
- margin: 0;
2730
- }
2731
- + & {
2732
- margin-top: 2px;
2733
- }
2734
- }
2735
- :where(.lexxy-prompt-menu__item--empty) {
2736
- color: var(--lexxy-color-ink-medium);
2737
- padding: var(--lexxy-prompt-padding);
2738
- }
2739
- action-text-attachment[content-type^="application/vnd.actiontext"].node--selected {
2740
- --lexxy-attachment-bg-color: var(--lexxy-color-accent-dark);
2741
- --lexxy-attachment-text-color: var(--lexxy-color-ink-inverted);
2742
- outline: none;
2743
- }
2744
- :where(lexxy-live-region, .lexxy-fake-selection) {
2745
- block-size: 1px;
2746
- border: 0;
2747
- clip-path: inset(50%);
2748
- inline-size: 1px;
2749
- margin: -1px;
2750
- overflow: hidden;
2751
- padding: 0;
2752
- position: absolute;
2753
- white-space: nowrap;
2754
- }
2755
- .lexxy-fake-selection {
2756
- -webkit-user-select: text;
2757
- @supports (user-select: text) {
2758
- user-select: text;
2759
- }
2760
- }
2761
- :where(.lexxy-caption-editor) {
2762
- position: absolute;
2763
- z-index: 2;
2764
- box-sizing: border-box;
2765
- background: var(--lexxy-color-canvas);
2766
- border: 0;
2767
- border-radius: var(--lexxy-radius);
2768
- outline: 0;
2769
- padding: 0;
2770
- overflow: hidden;
2771
- @supports (resize: none) {
2772
- resize: none;
2773
- }
2774
- &[hidden] {
2775
- display: none;
2776
- }
2777
- }
2778
- .lexxy-alternative-text-dialog {
2779
- background: var(--lexxy-color-canvas);
2780
- border: 2px solid var(--lexxy-color-selected-hover);
2781
- border-radius: calc(var(--lexxy-radius) + var(--lexxy-toolbar-gap));
2782
- box-shadow: var(--lexxy-shadow);
2783
- box-sizing: border-box;
2784
- color: var(--lexxy-color-ink);
2785
- font: inherit;
2786
- inline-size: 60%;
2787
- inset-block: calc(var(--lexxy-anchor-bottom) + var(--lexxy-toolbar-spacing)) auto;
2788
- inset-inline: 0;
2789
- margin-block: 0;
2790
- margin-inline: auto;
2791
- min-inline-size: min(20rem, 100%);
2792
- overflow: auto;
2793
- padding: var(--lexxy-toolbar-spacing);
2794
- z-index: 3;
2795
- h2 {
2796
- font-size: inherit;
2797
- font-weight: bold;
2798
- line-height: 1.5;
2799
- margin: 0;
2800
- padding-block-start: calc(0.25 * var(--lexxy-text-small));
2801
- padding-inline: calc(0.5 * var(--lexxy-text-small));
2802
- text-align: center;
2803
- }
2804
- .lexxy-alternative-text-dialog__controls {
2805
- align-items: stretch;
2806
- display: flex;
2807
- flex-direction: column;
2808
- gap: 0.5em;
2809
- margin-block-start: 0.5em;
2810
- }
2811
- textarea {
2812
- background: var(--lexxy-color-canvas);
2813
- border: 1px solid var(--lexxy-color-ink-lighter);
2814
- border-radius: var(--lexxy-radius);
2815
- box-sizing: border-box;
2816
- color: inherit;
2817
- display: block;
2818
- font: inherit;
2819
- font-size: var(--lexxy-text-small);
2820
- font-weight: normal;
2821
- min-block-size: calc(2lh + 1em + 2px);
2822
- min-inline-size: 0;
2823
- padding: 0.5em;
2824
- @supports (field-sizing: content) {
2825
- field-sizing: content;
2826
- }
2827
- @supports (resize: none) {
2828
- resize: none;
2829
- }
2830
- }
2831
- button {
2832
- background-color: var(--lexxy-color-ink-lightest);
2833
- block-size: var(--lexxy-toolbar-button-size);
2834
- border: 0;
2835
- border-radius: var(--lexxy-radius);
2836
- color: currentColor;
2837
- cursor: pointer;
2838
- display: grid;
2839
- font-size: var(--lexxy-text-small);
2840
- inline-size: 100%;
2841
- line-height: inherit;
2842
- padding-inline: 2ch;
2843
- place-items: center;
2844
- &:hover {
2845
- opacity: 0.8;
2846
- }
2847
- }
2848
- .lexxy-alternative-text-dialog__save {
2849
- background-color: var(--lexxy-color-accent-dark);
2850
- color: var(--lexxy-color-ink-inverted);
2851
- &:hover {
2852
- background-color: var(--lexxy-color-accent-medium);
2853
- }
2854
- }
2855
- textarea:focus-visible {
2856
- outline: var(--lexxy-focus-ring-size) solid var(--lexxy-focus-ring-color);
2857
- outline-offset: var(--lexxy-focus-ring-offset);
2858
- }
2859
- .lexxy-alternative-text-dialog__actions {
2860
- display: flex;
2861
- gap: 0.5em;
2862
- button {
2863
- flex: 1;
2864
- }
2865
- }
2866
- }
2867
1606
  .lesli-toolbar {
2868
1607
  margin-bottom: calc(var(--spacing) * 6);
2869
1608
  display: flex;
2870
1609
  width: 100%;
2871
- flex-direction: column;
1610
+ flex-wrap: wrap;
1611
+ align-items: center;
2872
1612
  gap: calc(var(--spacing) * 2);
2873
- @media (width >= 40rem) {
2874
- flex-direction: row;
2875
- }
2876
- @media (width >= 40rem) {
2877
- align-items: center;
2878
- }
2879
1613
  }
2880
1614
  .lesli-toolbar__form {
2881
1615
  display: flex;
2882
1616
  min-width: 0px;
2883
- flex: 1;
2884
- flex-direction: column;
1617
+ flex: 1 1 24rem;
1618
+ flex-wrap: wrap;
1619
+ align-items: center;
2885
1620
  gap: calc(var(--spacing) * 2);
2886
- @media (width >= 40rem) {
2887
- flex-direction: row;
2888
- }
2889
- @media (width >= 40rem) {
2890
- align-items: center;
2891
- }
2892
1621
  }
2893
1622
  .lesli-toolbar__search {
2894
1623
  position: relative;
2895
1624
  min-width: 0px;
2896
- flex: 1;
1625
+ flex: 1 1 14rem;
2897
1626
  }
2898
1627
  .lesli-toolbar__input {
1628
+ display: block;
2899
1629
  height: calc(var(--spacing) * 10);
2900
1630
  width: 100%;
2901
1631
  border-radius: var(--radius-lg);
@@ -2939,15 +1669,17 @@ Building a better future, one line of code at a time.
2939
1669
  .lesli-toolbar__search-icon {
2940
1670
  pointer-events: none;
2941
1671
  position: absolute;
2942
- top: calc(1 / 2 * 100%);
1672
+ inset-block: 0px;
2943
1673
  left: calc(var(--spacing) * 3);
2944
- --tw-translate-y: calc(calc(1 / 2 * 100%) * -1);
2945
- translate: var(--tw-translate-x) var(--tw-translate-y);
1674
+ display: flex;
1675
+ align-items: center;
1676
+ color: var(--color-slate-400);
1677
+ }
1678
+ .lesli-toolbar__search-icon .material-symbols {
2946
1679
  font-size: var(--text-lg);
2947
1680
  line-height: var(--tw-leading, var(--text-lg--line-height));
2948
1681
  --tw-leading: 1;
2949
1682
  line-height: 1;
2950
- color: var(--color-slate-400);
2951
1683
  }
2952
1684
  .lesli-toolbar__clear {
2953
1685
  position: absolute;
@@ -2998,12 +1730,15 @@ Building a better future, one line of code at a time.
2998
1730
  }
2999
1731
  .lesli-toolbar__filters {
3000
1732
  display: flex;
1733
+ max-width: 100%;
3001
1734
  flex-wrap: wrap;
3002
1735
  align-items: center;
3003
1736
  gap: calc(var(--spacing) * 2);
3004
1737
  }
3005
1738
  .lesli-toolbar__filters select, .lesli-toolbar__filters input {
3006
1739
  height: calc(var(--spacing) * 10);
1740
+ max-width: 100%;
1741
+ min-width: 0px;
3007
1742
  border-radius: var(--radius-lg);
3008
1743
  border-style: var(--tw-border-style);
3009
1744
  border-width: 1px;
@@ -3091,10 +1826,12 @@ Building a better future, one line of code at a time.
3091
1826
  line-height: 1;
3092
1827
  }
3093
1828
  .lesli-toolbar__actions {
1829
+ margin-left: auto;
3094
1830
  display: flex;
3095
- flex-shrink: 0;
1831
+ max-width: 100%;
3096
1832
  flex-wrap: wrap;
3097
1833
  align-items: center;
1834
+ justify-content: flex-end;
3098
1835
  gap: calc(var(--spacing) * 2);
3099
1836
  }
3100
1837
  }
@@ -4066,6 +2803,20 @@ Building a better future, one line of code at a time.
4066
2803
  }
4067
2804
  }
4068
2805
  }
2806
+ .lesli-navigation-sidebar-mobile {
2807
+ display: block;
2808
+ }
2809
+ .lesli-navigation-sidebar-desktop {
2810
+ display: none;
2811
+ }
2812
+ @media (min-width: 64rem) {
2813
+ .lesli-navigation-sidebar-mobile {
2814
+ display: none;
2815
+ }
2816
+ .lesli-navigation-sidebar-desktop {
2817
+ display: block;
2818
+ }
2819
+ }
4069
2820
  @property --tw-translate-x {
4070
2821
  syntax: "*";
4071
2822
  inherits: false;
@@ -4081,6 +2832,26 @@ Building a better future, one line of code at a time.
4081
2832
  inherits: false;
4082
2833
  initial-value: 0;
4083
2834
  }
2835
+ @property --tw-rotate-x {
2836
+ syntax: "*";
2837
+ inherits: false;
2838
+ }
2839
+ @property --tw-rotate-y {
2840
+ syntax: "*";
2841
+ inherits: false;
2842
+ }
2843
+ @property --tw-rotate-z {
2844
+ syntax: "*";
2845
+ inherits: false;
2846
+ }
2847
+ @property --tw-skew-x {
2848
+ syntax: "*";
2849
+ inherits: false;
2850
+ }
2851
+ @property --tw-skew-y {
2852
+ syntax: "*";
2853
+ inherits: false;
2854
+ }
4084
2855
  @property --tw-space-y-reverse {
4085
2856
  syntax: "*";
4086
2857
  inherits: false;
@@ -4287,6 +3058,10 @@ Building a better future, one line of code at a time.
4287
3058
  syntax: "*";
4288
3059
  inherits: false;
4289
3060
  }
3061
+ @property --tw-ease {
3062
+ syntax: "*";
3063
+ inherits: false;
3064
+ }
4290
3065
  @property --tw-outline-style {
4291
3066
  syntax: "*";
4292
3067
  inherits: false;
@@ -4308,6 +3083,11 @@ Building a better future, one line of code at a time.
4308
3083
  --tw-translate-x: 0;
4309
3084
  --tw-translate-y: 0;
4310
3085
  --tw-translate-z: 0;
3086
+ --tw-rotate-x: initial;
3087
+ --tw-rotate-y: initial;
3088
+ --tw-rotate-z: initial;
3089
+ --tw-skew-x: initial;
3090
+ --tw-skew-y: initial;
4311
3091
  --tw-space-y-reverse: 0;
4312
3092
  --tw-border-style: solid;
4313
3093
  --tw-gradient-position: initial;
@@ -4355,6 +3135,7 @@ Building a better future, one line of code at a time.
4355
3135
  --tw-drop-shadow-alpha: 100%;
4356
3136
  --tw-drop-shadow-size: initial;
4357
3137
  --tw-duration: initial;
3138
+ --tw-ease: initial;
4358
3139
  --tw-outline-style: solid;
4359
3140
  --tw-content: "";
4360
3141
  }