@blinkk/root-cms 1.0.0-beta.3 → 1.0.0-beta.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui/ui.css CHANGED
@@ -1,50 +1,79 @@
1
- /* ui/components/SplitPanel/SplitPanel.css */
2
- .SplitPanel {
3
- display: flex;
4
- height: 100%;
1
+ /* ui/components/Heading/Heading.css */
2
+ .heading {
3
+ font-size: 18px;
4
+ line-height: 1.2;
5
+ font-weight: 700;
6
+ margin-top: 0;
7
+ margin-bottom: 0;
5
8
  }
6
- .SplitPanel__divider {
7
- flex: 0 0 3px;
8
- width: 3px;
9
- height: 100%;
10
- cursor: col-resize;
11
- position: relative;
9
+ .heading.size\:h1 {
10
+ font-size: 24px;
12
11
  }
13
- .SplitPanel__divider::before {
14
- content: "";
15
- display: block;
16
- z-index: 0;
17
- position: absolute;
18
- top: 0;
19
- height: 100%;
20
- left: 1px;
21
- width: 1px;
22
- background-color: var(--color-border);
12
+ .heading.size\:h2 {
13
+ font-size: 18px;
23
14
  }
24
- .SplitPanel__divider::after {
25
- content: "";
26
- display: block;
27
- z-index: 1;
28
- position: absolute;
29
- top: 0;
30
- height: 100%;
31
- left: 0;
32
- width: 100%;
33
- background-color: transparent;
34
- transition: background-color 0.18s ease;
15
+ .heading.size\:h3 {
16
+ font-size: 16px;
35
17
  }
36
- .SplitPanel__divider:hover::after {
37
- background-color: lightblue;
18
+ .heading.size\:h4 {
19
+ font-size: 14px;
38
20
  }
39
- .SplitPanel__item.static {
40
- flex: 0 0 var(--panel-size, 100%);
21
+ .heading.weight\:regular {
22
+ font-weight: 400;
41
23
  }
42
- .SplitPanel__item.fluid {
43
- flex: 1;
24
+ .heading.weight\:semi-bold {
25
+ font-weight: 500;
44
26
  }
45
- .SplitPanel.dragging .SplitPanel__item {
46
- pointer-events: none;
47
- user-select: none;
27
+ .heading.weight\:bold {
28
+ font-weight: 700;
29
+ }
30
+ .heading.color\:gray {
31
+ color: var(--color-text-gray);
32
+ }
33
+ .heading.color\:dark {
34
+ color: var(--color-text-dark);
35
+ }
36
+
37
+ /* ui/components/Text/Text.css */
38
+ .text {
39
+ font-size: 14px;
40
+ line-height: 1.5;
41
+ font-weight: 400;
42
+ color: var(--color-text-default);
43
+ }
44
+ .text.size\:body-sm {
45
+ font-size: 12px;
46
+ }
47
+ .text.size\:body {
48
+ font-size: 14px;
49
+ }
50
+ .text.size\:body-lg {
51
+ font-size: 16px;
52
+ }
53
+ .text.weight\:regular {
54
+ font-weight: 400;
55
+ }
56
+ .text.weight\:semi-bold {
57
+ font-weight: 500;
58
+ }
59
+ .text.weight\:bold {
60
+ font-weight: 700;
61
+ }
62
+ .text.color\:gray {
63
+ color: var(--color-text-gray);
64
+ }
65
+ .text.color\:dark {
66
+ color: var(--color-text-dark);
67
+ }
68
+ .text code {
69
+ background: #efefef;
70
+ padding: 4px 8px;
71
+ border-radius: 2px;
72
+ white-space: nowrap;
73
+ font-family: var(--font-family-mono);
74
+ font-weight: 600;
75
+ margin-left: 4px;
76
+ margin-right: 4px;
48
77
  }
49
78
 
50
79
  /* ui/layout/Layout.css */
@@ -83,6 +112,12 @@
83
112
  padding: 0 4px;
84
113
  border-radius: 2px;
85
114
  }
115
+ .Layout__top__project {
116
+ font-size: 13px;
117
+ line-height: 1;
118
+ font-weight: 600;
119
+ margin-left: 12px;
120
+ }
86
121
  .Layout__top__logo:hover {
87
122
  background-color: var(--button-background-hover);
88
123
  }
@@ -139,6 +174,34 @@
139
174
  grid-area: bottom;
140
175
  }
141
176
 
177
+ /* ui/pages/AssetsPage/AssetsPage.css */
178
+ .AssetsPage {
179
+ padding: 60px;
180
+ }
181
+ .AssetsPage h1 {
182
+ margin-bottom: 24px;
183
+ }
184
+ .AssetsPage p {
185
+ margin-top: 16px;
186
+ max-width: 70ch;
187
+ }
188
+
189
+ /* ui/components/SlugInput/SlugInput.css */
190
+ .SlugInput__inputs {
191
+ display: flex;
192
+ gap: 8px;
193
+ align-items: center;
194
+ }
195
+ .SlugInput__slug {
196
+ flex: 1;
197
+ }
198
+ .SlugInput__urlHelp {
199
+ margin-top: 8px;
200
+ }
201
+ .SlugInput__urlHelp::before {
202
+ content: "URL: ";
203
+ }
204
+
142
205
  /* ui/components/NewDocModal/NewDocModal.css */
143
206
  .NewDocModal__body {
144
207
  font-size: 12px;
@@ -155,6 +218,55 @@
155
218
  gap: 12px;
156
219
  }
157
220
 
221
+ /* ui/components/SplitPanel/SplitPanel.css */
222
+ .SplitPanel {
223
+ display: flex;
224
+ height: 100%;
225
+ }
226
+ .SplitPanel__divider {
227
+ flex: 0 0 3px;
228
+ width: 3px;
229
+ height: 100%;
230
+ cursor: col-resize;
231
+ position: relative;
232
+ }
233
+ .SplitPanel__divider::before {
234
+ content: "";
235
+ display: block;
236
+ z-index: 0;
237
+ position: absolute;
238
+ top: 0;
239
+ height: 100%;
240
+ left: 1px;
241
+ width: 1px;
242
+ background-color: var(--color-border);
243
+ }
244
+ .SplitPanel__divider::after {
245
+ content: "";
246
+ display: block;
247
+ z-index: 1;
248
+ position: absolute;
249
+ top: 0;
250
+ height: 100%;
251
+ left: 0;
252
+ width: 100%;
253
+ background-color: transparent;
254
+ transition: background-color 0.18s ease;
255
+ }
256
+ .SplitPanel__divider:hover::after {
257
+ background-color: lightblue;
258
+ }
259
+ .SplitPanel__item.static {
260
+ flex: 0 0 var(--panel-size, 100%);
261
+ }
262
+ .SplitPanel__item.fluid {
263
+ flex: 1;
264
+ }
265
+ .SplitPanel.dragging .SplitPanel__item {
266
+ pointer-events: none;
267
+ user-select: none;
268
+ }
269
+
158
270
  /* ui/pages/CollectionPage/CollectionPage.css */
159
271
  .CollectionPage__side__title {
160
272
  padding: 8px 12px;
@@ -339,6 +451,7 @@
339
451
  font-weight: 500;
340
452
  }
341
453
  .CollectionPage__collection__docsList__doc__image {
454
+ border: 1px solid var(--color-border);
342
455
  flex-shrink: 0;
343
456
  }
344
457
  .CollectionPage__collection__docsList__doc__content__title {
@@ -367,79 +480,16 @@
367
480
  font-weight: 500;
368
481
  }
369
482
 
370
- /* ui/components/Heading/Heading.css */
371
- .heading {
372
- font-size: 18px;
373
- line-height: 1.2;
374
- font-weight: 700;
375
- margin-top: 0;
376
- margin-bottom: 0;
377
- }
378
- .heading.size\:h1 {
379
- font-size: 24px;
380
- }
381
- .heading.size\:h2 {
382
- font-size: 18px;
383
- }
384
- .heading.size\:h3 {
385
- font-size: 16px;
386
- }
387
- .heading.weight\:regular {
388
- font-weight: 400;
389
- }
390
- .heading.weight\:semi-bold {
391
- font-weight: 500;
392
- }
393
- .heading.weight\:bold {
394
- font-weight: 700;
395
- }
396
- .heading.color\:gray {
397
- color: var(--color-text-gray);
398
- }
399
- .heading.color\:dark {
400
- color: var(--color-text-dark);
401
- }
402
-
403
- /* ui/components/Text/Text.css */
404
- .text {
405
- font-size: 14px;
406
- line-height: 1.5;
407
- font-weight: 400;
408
- color: var(--color-text-default);
409
- }
410
- .text.size\:body-sm {
411
- font-size: 12px;
412
- }
413
- .text.size\:body {
414
- font-size: 14px;
415
- }
416
- .text.size\:body-lg {
417
- font-size: 16px;
418
- }
419
- .text.weight\:regular {
420
- font-weight: 400;
421
- }
422
- .text.weight\:semi-bold {
423
- font-weight: 500;
424
- }
425
- .text.weight\:bold {
426
- font-weight: 700;
427
- }
428
- .text.color\:gray {
429
- color: var(--color-text-gray);
483
+ /* ui/pages/DataPage/DataPage.css */
484
+ .DataPage {
485
+ padding: 60px;
430
486
  }
431
- .text.color\:dark {
432
- color: var(--color-text-dark);
487
+ .DataPage h1 {
488
+ margin-bottom: 24px;
433
489
  }
434
- .text code {
435
- background: #efefef;
436
- padding: 4px 8px;
437
- border-radius: 2px;
438
- white-space: nowrap;
439
- font-family: var(--font-family-mono);
440
- font-weight: 600;
441
- margin-left: 4px;
442
- margin-right: 4px;
490
+ .DataPage p {
491
+ margin-top: 16px;
492
+ max-width: 70ch;
443
493
  }
444
494
 
445
495
  /* ui/components/DocEditor/DocEditor.css */
@@ -471,6 +521,9 @@
471
521
  .DocEditor__statusBar__statusBadges {
472
522
  margin-right: 16px;
473
523
  }
524
+ .DocEditor__statusBar__i18n {
525
+ margin-right: 8px;
526
+ }
474
527
  .DocEditor__statusBar__actionsMenu {
475
528
  margin-left: 4px;
476
529
  }
@@ -597,14 +650,19 @@
597
650
  .DocEditor__ImageField__imagePreview {
598
651
  margin-bottom: 10px;
599
652
  }
653
+ .DocEditor__ImageField__imagePreview__controls {
654
+ display: flex;
655
+ justify-content: flex-end;
656
+ gap: 4px;
657
+ }
600
658
  .DocEditor__ImageField__imagePreview__image {
601
659
  background: #f5f5f5;
602
660
  border: 1px solid #dedede;
603
661
  aspect-ratio: 16/9;
604
662
  width: 100%;
605
- overflow: hidden;
606
663
  padding: 10px;
607
664
  margin-bottom: 10px;
665
+ position: relative;
608
666
  }
609
667
  .DocEditor__ImageField__imagePreview__image img {
610
668
  display: block;
@@ -613,6 +671,19 @@
613
671
  object-fit: contain;
614
672
  object-position: center;
615
673
  }
674
+ .DocEditor__ImageField__imagePreview__dimens {
675
+ position: absolute;
676
+ top: -1px;
677
+ right: -1px;
678
+ padding: 4px 8px;
679
+ background: black;
680
+ color: white;
681
+ font-size: 8px;
682
+ font-weight: 700;
683
+ }
684
+ .DocEditor__ImageField__imagePreview__image__alt {
685
+ margin-top: 4px;
686
+ }
616
687
  .DocEditor__ImageField__noImage {
617
688
  font-family: var(--font-family-mono);
618
689
  margin: 10px 0;
@@ -638,6 +709,104 @@
638
709
  .DocEditor__ImageField__uploadButton__icon {
639
710
  margin-right: 10px;
640
711
  }
712
+ .DocEditor__FileField__file {
713
+ margin-bottom: 10px;
714
+ }
715
+ .DocEditor__FileField__noFile {
716
+ font-family: var(--font-family-mono);
717
+ margin: 10px 0;
718
+ }
719
+ .DocEditor__FileField__uploadButton {
720
+ display: inline-flex;
721
+ align-items: center;
722
+ cursor: pointer;
723
+ background: #25262b;
724
+ border-radius: 4px;
725
+ padding: 0 14px;
726
+ height: 30px;
727
+ color: #ffffff;
728
+ font-weight: 600;
729
+ transition: all 0.3s ease;
730
+ }
731
+ .DocEditor__FileField__uploadButton[aria-disabled=true] {
732
+ opacity: 0.5;
733
+ }
734
+ .DocEditor__FileField__uploadButton input[type=file] {
735
+ display: none;
736
+ }
737
+ .DocEditor__FileField__uploadButton__icon {
738
+ margin-right: 10px;
739
+ }
740
+
741
+ /* ui/components/LocalizationModal/LocalizationModal.css */
742
+ .LocalizationModal .mantine-Modal-modal {
743
+ padding: 30px 40px;
744
+ }
745
+ .LocalizationModal__layout {
746
+ display: grid;
747
+ grid-template-columns: 400px 1fr;
748
+ margin-top: -20px;
749
+ margin-bottom: 20px;
750
+ }
751
+ .LocalizationModal__iconTitle {
752
+ display: flex;
753
+ align-items: center;
754
+ gap: 8px;
755
+ }
756
+ .LocalizationModal__locales,
757
+ .LocalizationModal__translations {
758
+ height: 100%;
759
+ min-height: 400px;
760
+ padding-top: 30px;
761
+ padding-bottom: 30px;
762
+ }
763
+ .LocalizationModal__locales {
764
+ padding-right: 30px;
765
+ }
766
+ .LocalizationModal__translations {
767
+ border-left: 1px solid var(--color-border);
768
+ padding-left: 30px;
769
+ margin-right: -30px;
770
+ padding-right: 30px;
771
+ max-height: 80vh;
772
+ overflow: auto;
773
+ }
774
+ .LocalizationModal__translations__header {
775
+ display: flex;
776
+ justify-content: space-between;
777
+ margin-bottom: 30px;
778
+ }
779
+ .LocalizationModal__translations__header__buttons {
780
+ display: flex;
781
+ gap: 8px;
782
+ }
783
+ .LocalizationModal__translations__table {
784
+ display: flex;
785
+ flex-direction: column;
786
+ }
787
+ .LocalizationModal__translations__table__row {
788
+ display: grid;
789
+ grid-template-columns: 1fr 1fr;
790
+ }
791
+ .LocalizationModal__translations__table__row--header {
792
+ align-items: center;
793
+ }
794
+ .LocalizationModal__translations__table__row + .LocalizationModal__translations__table__row {
795
+ border-top: 1px solid var(--color-border);
796
+ padding-top: 12px;
797
+ margin-top: 12px;
798
+ }
799
+ .LocalizationModal__translations__table__header,
800
+ .LocalizationModal__translations__table__col {
801
+ padding-left: 8px;
802
+ padding-right: 8px;
803
+ text-align: left;
804
+ }
805
+ .LocalizationModal__translations__localeSelect {
806
+ display: flex;
807
+ gap: 8px;
808
+ align-items: center;
809
+ }
641
810
 
642
811
  /* ui/components/PublishDocModal/PublishDocModal.css */
643
812
  .PublishDocModal .mantine-Modal-title {
@@ -711,14 +880,27 @@
711
880
  border-bottom: 1px solid var(--color-border);
712
881
  display: flex;
713
882
  align-items: center;
714
- gap: 4px;
883
+ justify-content: space-between;
884
+ gap: 24px;
715
885
  height: var(--top-bar-height);
886
+ position: sticky;
887
+ top: 0;
888
+ z-index: 10;
889
+ background: white;
890
+ }
891
+ .DocumentPage__side__header__nav {
892
+ display: flex;
893
+ align-items: center;
894
+ gap: 4px;
716
895
  }
717
896
  .DocumentPage__side__header__back {
718
897
  color: var(--color-text-default);
719
898
  }
899
+ .DocumentPage__side__header__buttons {
900
+ justify-self: flex-end;
901
+ }
720
902
  .DocumentPage__side__editor {
721
- padding: 8px 12px;
903
+ padding: 8px 12px 120px;
722
904
  }
723
905
  .DocumentPage__main {
724
906
  width: 100%;
@@ -803,18 +985,6 @@
803
985
  font-size: 12px;
804
986
  }
805
987
 
806
- /* ui/pages/ProjectPage/ProjectPage.css */
807
- .ProjectPage {
808
- padding: 60px;
809
- }
810
- .ProjectPage h1 {
811
- margin-bottom: 24px;
812
- }
813
- .ProjectPage p {
814
- margin-top: 16px;
815
- max-width: 70ch;
816
- }
817
-
818
988
  /* ui/pages/NotFoundPage/NotFoundPage.css */
819
989
  .NotFoundPage {
820
990
  display: flex;
@@ -831,23 +1001,60 @@
831
1001
  font-weight: 500;
832
1002
  }
833
1003
 
834
- /* ui/pages/SettingsPage/SettingsPage.css */
835
- .SettingsPage {
836
- padding: 30px;
1004
+ /* ui/pages/ProjectPage/ProjectPage.css */
1005
+ .ProjectPage {
1006
+ padding: 60px;
837
1007
  }
838
- .SettingsPage__section {
1008
+ .ProjectPage h1 {
1009
+ margin-bottom: 24px;
1010
+ }
1011
+ .ProjectPage p {
1012
+ margin-top: 16px;
1013
+ max-width: 70ch;
1014
+ }
1015
+ .ProjectPage__section {
1016
+ margin-top: 60px;
1017
+ }
1018
+ .ProjectPage__section__title {
1019
+ margin-bottom: 20px;
1020
+ }
1021
+ .ProjectPage__collectionList {
1022
+ display: flex;
1023
+ flex-direction: column;
1024
+ justify-content: flex-start;
1025
+ gap: 12px;
1026
+ max-width: 580px;
1027
+ }
1028
+ .ProjectPage__collectionList__collection {
839
1029
  display: grid;
840
- grid-template-columns: 1fr 2fr;
1030
+ grid-template-columns: 20px 1fr;
1031
+ align-items: center;
1032
+ padding: 8px 12px;
1033
+ column-gap: 12px;
1034
+ row-gap: 4px;
1035
+ width: 100%;
1036
+ background: transparent;
1037
+ border: 2px solid black;
1038
+ border-radius: 8px;
1039
+ cursor: pointer;
1040
+ font-size: 14px;
1041
+ font-weight: 500;
1042
+ text-decoration: none;
1043
+ transition: background-color 0.18s ease;
1044
+ position: relative;
841
1045
  }
842
- .SettingsPage__section__left,
843
- .SettingsPage__section__right {
844
- padding: 30px;
1046
+ .ProjectPage__collectionList__collection:hover {
1047
+ background-color: var(--button-background-hover);
845
1048
  }
846
- .SettingsPage__section__left__title {
847
- margin-bottom: 8px;
1049
+ .ProjectPage__collectionList__collection:active {
1050
+ background-color: var(--button-background-active);
848
1051
  }
849
- .SettingsPage__section__right__title {
850
- margin-bottom: 12px;
1052
+ .ProjectPage__collectionList__collection__icon {
1053
+ margin-top: 2px;
1054
+ }
1055
+ .ProjectPage__collectionList__collection__desc {
1056
+ grid-column: 2 / span 1;
1057
+ font-size: 12px;
851
1058
  }
852
1059
 
853
1060
  /* ui/components/ShareBox/ShareBox.css */
@@ -879,28 +1086,23 @@
879
1086
  text-overflow: ellipsis;
880
1087
  }
881
1088
 
882
- /* ui/pages/AssetsPage/AssetsPage.css */
883
- .AssetsPage {
884
- padding: 60px;
885
- }
886
- .AssetsPage h1 {
887
- margin-bottom: 24px;
1089
+ /* ui/pages/SettingsPage/SettingsPage.css */
1090
+ .SettingsPage {
1091
+ padding: 30px;
888
1092
  }
889
- .AssetsPage p {
890
- margin-top: 16px;
891
- max-width: 70ch;
1093
+ .SettingsPage__section {
1094
+ display: grid;
1095
+ grid-template-columns: 1fr 2fr;
892
1096
  }
893
-
894
- /* ui/pages/DataPage/DataPage.css */
895
- .DataPage {
896
- padding: 60px;
1097
+ .SettingsPage__section__left,
1098
+ .SettingsPage__section__right {
1099
+ padding: 30px;
897
1100
  }
898
- .DataPage h1 {
899
- margin-bottom: 24px;
1101
+ .SettingsPage__section__left__title {
1102
+ margin-bottom: 8px;
900
1103
  }
901
- .DataPage p {
902
- margin-top: 16px;
903
- max-width: 70ch;
1104
+ .SettingsPage__section__right__title {
1105
+ margin-bottom: 12px;
904
1106
  }
905
1107
 
906
1108
  /* ui/pages/TranslationsPage/TranslationsPage.css */
@@ -965,6 +1167,9 @@ iframe {
965
1167
  height: auto;
966
1168
  margin: 0;
967
1169
  }
1170
+ details > div {
1171
+ box-sizing: border-box;
1172
+ }
968
1173
  a {
969
1174
  color: inherit;
970
1175
  }
@@ -1031,3 +1236,27 @@ body.menu\:open {
1031
1236
  color: var(--color-text-default);
1032
1237
  border-bottom-color: lightblue;
1033
1238
  }
1239
+
1240
+ /* ui/components/CopyDocModal/CopyDocModal.css */
1241
+ .CopyDocModal__from__label,
1242
+ .CopyDocModal__to__label {
1243
+ margin-bottom: 8px;
1244
+ }
1245
+ .CopyDocModal__from__value code {
1246
+ margin-left: 0;
1247
+ }
1248
+ .CopyDocModal__to {
1249
+ margin-top: 16px;
1250
+ }
1251
+ .CopyDocModal__error {
1252
+ margin: 24px 0;
1253
+ font-size: 14px;
1254
+ color: red;
1255
+ font-weight: 600;
1256
+ }
1257
+ .CopyDocModal__buttons {
1258
+ margin-top: 24px;
1259
+ display: flex;
1260
+ justify-content: flex-end;
1261
+ gap: 12px;
1262
+ }