superdesk-ui-framework 7.0.0-dev-hg0 → 7.0.0-dev-hg2

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 (195) hide show
  1. package/app/fonts/sd_big-icons.eot +0 -0
  2. package/app/fonts/sd_big-icons.svg +69 -0
  3. package/app/fonts/sd_big-icons.ttf +0 -0
  4. package/app/fonts/sd_big-icons.woff +0 -0
  5. package/app/fonts/sd_icons.eot +0 -0
  6. package/app/fonts/sd_icons.svg +202 -0
  7. package/app/fonts/sd_icons.ttf +0 -0
  8. package/app/fonts/sd_icons.woff +0 -0
  9. package/app/img/AvatarDefaultImage.svg +6 -0
  10. package/app/img/DotsSmall-dark.svg +14 -0
  11. package/app/img/OneDot.svg +3 -0
  12. package/app/img/SD-logo.svg +52 -0
  13. package/app/img/dots.svg +3 -0
  14. package/app/img/empty_states/empty-state--large-1.svg +221 -0
  15. package/app/img/empty_states/empty-state--large-2.svg +207 -0
  16. package/app/img/empty_states/empty-state--large-3.svg +231 -0
  17. package/app/img/empty_states/empty-state--large-dashboard.svg +642 -0
  18. package/app/img/empty_states/empty-state--small-1.svg +112 -0
  19. package/app/img/empty_states/empty-state--small-2.svg +49 -0
  20. package/app/img/empty_states/empty-state--small-3.svg +47 -0
  21. package/app/img/icon_illustrations/IconIllustration__headlines.svg +25 -0
  22. package/app/img/icon_illustrations/IconIllustration__keywords.svg +46 -0
  23. package/app/img/icon_illustrations/IconIllustration__optimise.svg +38 -0
  24. package/app/img/icon_illustrations/IconIllustration__summary.svg +27 -0
  25. package/app/img/icon_illustrations/IconIllustration__translate.svg +12 -0
  26. package/app/img/icon_image_stack--white.svg +16 -0
  27. package/app/img/icon_image_stack.svg +16 -0
  28. package/app/img/spinner.svg +3 -0
  29. package/app/img/spinning-wheel.gif +0 -0
  30. package/app/img/theme-thumbnail.png +0 -0
  31. package/app/img/themes/theme-base.svg +1 -0
  32. package/app/img/themes/theme-contrast.svg +45 -0
  33. package/app/img/themes/theme-dark.svg +1 -0
  34. package/app/img/themes/theme-light.svg +1 -0
  35. package/app/img/three-dots.svg +33 -0
  36. package/app/styles/_accessibility.scss +358 -0
  37. package/app/styles/_alerts.scss +392 -0
  38. package/app/styles/_animations.scss +73 -0
  39. package/app/styles/_avatar.scss +526 -0
  40. package/app/styles/_badge.scss +106 -0
  41. package/app/styles/_big-icon-font.scss +182 -0
  42. package/app/styles/_boxed-list.scss +284 -0
  43. package/app/styles/_buttons.scss +874 -0
  44. package/app/styles/_carousel.scss +232 -0
  45. package/app/styles/_content-divider.scss +233 -0
  46. package/app/styles/_design-tokens.scss +6 -0
  47. package/app/styles/_drag-drop.scss +26 -0
  48. package/app/styles/_drag-handle.scss +48 -0
  49. package/app/styles/_empty-states.scss +81 -0
  50. package/app/styles/_expand-button.scss +31 -0
  51. package/app/styles/_hamburger.scss +160 -0
  52. package/app/styles/_helpers.scss +2220 -0
  53. package/app/styles/_icon-font.scss +488 -0
  54. package/app/styles/_icon-labels.scss +140 -0
  55. package/app/styles/_labels.scss +184 -0
  56. package/app/styles/_loaders.scss +29 -0
  57. package/app/styles/_master-desk.scss +323 -0
  58. package/app/styles/_mixins.scss +164 -0
  59. package/app/styles/_modals.scss +452 -0
  60. package/app/styles/_normalize.scss +466 -0
  61. package/app/styles/_panel-info.scss +48 -0
  62. package/app/styles/_popover.scss +29 -0
  63. package/app/styles/_pr-superdesk-theme.scss +4 -0
  64. package/app/styles/_publisher-styles.scss +195 -0
  65. package/app/styles/_reboot.scss +65 -0
  66. package/app/styles/_sd-tag-input.scss +715 -0
  67. package/app/styles/_simple-list.scss +158 -0
  68. package/app/styles/_spinner.scss +47 -0
  69. package/app/styles/_table-list.scss +385 -0
  70. package/app/styles/_tables.scss +150 -0
  71. package/app/styles/_tabs-vertical.scss +58 -0
  72. package/app/styles/_tabs.scss +232 -0
  73. package/app/styles/_tag-labels.scss +210 -0
  74. package/app/styles/_thumb-carousel.scss +247 -0
  75. package/app/styles/_time.scss +113 -0
  76. package/app/styles/_toggle-box.scss +175 -0
  77. package/app/styles/_toggle-button.scss +46 -0
  78. package/app/styles/_tooltips.scss +431 -0
  79. package/app/styles/_variables.scss +4 -0
  80. package/app/styles/app.scss +127 -0
  81. package/app/styles/components/_calendar-week-day.scss +99 -0
  82. package/app/styles/components/_card-item.scss +586 -0
  83. package/app/styles/components/_list-item.scss +694 -0
  84. package/app/styles/components/_load-more-indicator.scss +15 -0
  85. package/app/styles/components/_overflow-stack.scss +120 -0
  86. package/app/styles/components/_sd-circular-progress.scss +239 -0
  87. package/app/styles/components/_sd-collapse-box.scss +292 -0
  88. package/app/styles/components/_sd-comment-box.scss +42 -0
  89. package/app/styles/components/_sd-dropzone.scss +134 -0
  90. package/app/styles/components/_sd-editor-popup.scss +106 -0
  91. package/app/styles/components/_sd-grid-item.scss +865 -0
  92. package/app/styles/components/_sd-loader.scss +39 -0
  93. package/app/styles/components/_sd-media-carousel.scss +408 -0
  94. package/app/styles/components/_sd-notification-panel.scss +51 -0
  95. package/app/styles/components/_sd-pagination.scss +51 -0
  96. package/app/styles/components/_sd-photo-preview.scss +508 -0
  97. package/app/styles/components/_sd-searchbar.scss +276 -0
  98. package/app/styles/components/_sd-toaster.scss +226 -0
  99. package/app/styles/components/_subnav.scss +777 -0
  100. package/app/styles/components/_theme-selector.scss +221 -0
  101. package/app/styles/components/sd-slider.scss +125 -0
  102. package/app/styles/design-tokens/_brand-colors.scss +36 -0
  103. package/app/styles/design-tokens/_component-tokens.scss +11 -0
  104. package/app/styles/design-tokens/_design-tokens-general.scss +145 -0
  105. package/app/styles/design-tokens/_new-colors.scss +820 -0
  106. package/app/styles/design-tokens/_primitives.scss +161 -0
  107. package/app/styles/design-tokens/_semantic-colors.scss +161 -0
  108. package/app/styles/dropdowns/_basic-dropdown.scss +760 -0
  109. package/app/styles/dropdowns/_input-dropdown.scss +26 -0
  110. package/app/styles/dropdowns/_navigation_dropdown.scss +126 -0
  111. package/app/styles/dropdowns/_nested-dropdown.scss +95 -0
  112. package/app/styles/dropdowns/_other_dropdown.scss +59 -0
  113. package/app/styles/dropdowns/dropdown2.scss +4 -0
  114. package/app/styles/editor/_editor-buttons.scss +61 -0
  115. package/app/styles/editor/_editor-themes.scss +550 -0
  116. package/app/styles/form-elements/_autocomplete.scss +54 -0
  117. package/app/styles/form-elements/_checkbox.scss +770 -0
  118. package/app/styles/form-elements/_forms-general.scss +543 -0
  119. package/app/styles/form-elements/_input-preview.scss +80 -0
  120. package/app/styles/form-elements/_input-wrap.scss +147 -0
  121. package/app/styles/form-elements/_inputs.scss +1425 -0
  122. package/app/styles/form-elements/_radio.scss +65 -0
  123. package/app/styles/form-elements/_select-grid.scss +81 -0
  124. package/app/styles/form-elements/_switch.scss +109 -0
  125. package/app/styles/grids/_basic-grid.scss +206 -0
  126. package/app/styles/grids/_grid-layout.scss +1162 -0
  127. package/app/styles/grids/_layout-grid.scss +176 -0
  128. package/app/styles/grids/_sd-kanban-list.scss +92 -0
  129. package/app/styles/index.js +1 -0
  130. package/app/styles/interface-elements/_side-panel.scss +595 -0
  131. package/app/styles/layout/_basic-layout.scss +149 -0
  132. package/app/styles/layout/_container.scss +45 -0
  133. package/app/styles/layout/_editor.scss +464 -0
  134. package/app/styles/layout/_general.scss +92 -0
  135. package/app/styles/menus/_sd-bottom-tabs.scss +79 -0
  136. package/app/styles/menus/_sd-content-navigation.scss +50 -0
  137. package/app/styles/menus/_sd-left-navigation.scss +126 -0
  138. package/app/styles/menus/_sd-sidebar-menu.scss +465 -0
  139. package/app/styles/menus/_sd-top-menu.scss +105 -0
  140. package/app/styles/pr-superdesk-theme.scss +7 -0
  141. package/app/styles/primereact/_pr-autocomplete.scss +27 -0
  142. package/app/styles/primereact/_pr-datepicker.scss +288 -0
  143. package/app/styles/primereact/_pr-dialog.scss +399 -0
  144. package/app/styles/primereact/_pr-dropdown.scss +233 -0
  145. package/app/styles/primereact/_pr-general.scss +72 -0
  146. package/app/styles/primereact/_pr-menu.scss +60 -0
  147. package/app/styles/primereact/_pr-skeleton.scss +36 -0
  148. package/app/styles/primereact/_pr-tag-input.scss +66 -0
  149. package/app/styles/variables/_colors.scss +275 -0
  150. package/app/styles/variables/_dimensions.scss +89 -0
  151. package/app/styles/variables/_form-elements.scss +0 -0
  152. package/app/styles/variables/_typography.scss +20 -0
  153. package/dist/esm/components/EmptyState.d.ts.map +1 -1
  154. package/dist/esm/components/EmptyState.js +22 -1
  155. package/dist/esm/components/EmptyState.js.map +1 -1
  156. package/dist/fonts/sd_big-icons.eot +0 -0
  157. package/dist/fonts/sd_big-icons.svg +69 -0
  158. package/dist/fonts/sd_big-icons.ttf +0 -0
  159. package/dist/fonts/sd_big-icons.woff +0 -0
  160. package/dist/fonts/sd_icons.eot +0 -0
  161. package/dist/fonts/sd_icons.svg +202 -0
  162. package/dist/fonts/sd_icons.ttf +0 -0
  163. package/dist/fonts/sd_icons.woff +0 -0
  164. package/dist/img/AvatarDefaultImage.svg +6 -0
  165. package/dist/img/DotsSmall-dark.svg +14 -0
  166. package/dist/img/OneDot.svg +3 -0
  167. package/dist/img/SD-logo.svg +52 -0
  168. package/dist/img/dots.svg +3 -0
  169. package/dist/img/empty_states/empty-state--large-1.svg +221 -0
  170. package/dist/img/empty_states/empty-state--large-2.svg +207 -0
  171. package/dist/img/empty_states/empty-state--large-3.svg +231 -0
  172. package/dist/img/empty_states/empty-state--large-dashboard.svg +642 -0
  173. package/dist/img/empty_states/empty-state--small-1.svg +112 -0
  174. package/dist/img/empty_states/empty-state--small-2.svg +49 -0
  175. package/dist/img/empty_states/empty-state--small-3.svg +47 -0
  176. package/dist/img/icon_illustrations/IconIllustration__headlines.svg +25 -0
  177. package/dist/img/icon_illustrations/IconIllustration__keywords.svg +46 -0
  178. package/dist/img/icon_illustrations/IconIllustration__optimise.svg +38 -0
  179. package/dist/img/icon_illustrations/IconIllustration__summary.svg +27 -0
  180. package/dist/img/icon_illustrations/IconIllustration__translate.svg +12 -0
  181. package/dist/img/icon_image_stack--white.svg +16 -0
  182. package/dist/img/icon_image_stack.svg +16 -0
  183. package/dist/img/spinner.svg +3 -0
  184. package/dist/img/spinning-wheel.gif +0 -0
  185. package/dist/img/theme-thumbnail.png +0 -0
  186. package/dist/img/themes/theme-base.svg +1 -0
  187. package/dist/img/themes/theme-contrast.svg +45 -0
  188. package/dist/img/themes/theme-dark.svg +1 -0
  189. package/dist/img/themes/theme-light.svg +1 -0
  190. package/dist/img/three-dots.svg +33 -0
  191. package/dist/superdesk-ui.bundle.js +1 -1
  192. package/package.json +10 -3
  193. package/react/components/EmptyState.d.ts.map +1 -1
  194. package/react/components/EmptyState.js +22 -1
  195. package/react/components/EmptyState.js.map +1 -1
@@ -0,0 +1,550 @@
1
+ @use "../variables/colors";
2
+ @use "../variables/dimensions";
3
+ @use "../variables/typography";
4
+
5
+ // EDITOR Themes
6
+
7
+ :root,
8
+ [data-theme="dark-ui"] {
9
+ --sd-editor-colour__main-bg: var(--color-surface-base);
10
+ --sd-editor-colour__main-border: var(--color-line-medium);
11
+ --sd-editor-colour__txt: var(--color-text-default);
12
+ --sd-editor-colour__txt--accent: var(--color-interactive-default);
13
+ --sd-editor-colour__quote-border: var(--color-line-strong);
14
+ --sd-editor-colour__controls-border: var(--color-line-light);
15
+ --sd-editor-colour__controls-bg: var(--color-surface-subdued);
16
+
17
+ --sd-editor-colour__button-bg--active: hsl(214 13% 96% / 0.2);
18
+ --sd-editor-colour__button-txt--active: var(--color-interactive-default);
19
+
20
+ --sd-editor-colour__field-label-bg: hsl(214 13% 4% / 0.5);
21
+ --sd-editor-colour__field-label-txt: hsl(214 13% 96% / 1);
22
+
23
+ --sd-editor-colour__comment-bg: hsl(54 88% 55% / 0.35);
24
+ --sd-editor-colour__annotation: hsl(91 100% 40% / 0.6);
25
+ --sd-editor-colour__removing: var(--color-highlight-text);
26
+ --sd-editor-colour__removing-bg: var(--color-highlight-translucent);
27
+ --sd-editor-colour__adding: var(--color-success-text);
28
+ --sd-editor-colour__adding-bg: var(--color-success-translucent);
29
+
30
+ --sd-editor-colour__mark-people: var(--sorcerer-blue-300);
31
+ --sd-editor-colour__mark-company: var(--syrah-soil-200);
32
+
33
+ --sd-editor-colour__soft-limit: var(--syrah-soil-400);
34
+ --sd-editor-colour__hard-limit: var(--morocco-red-500);
35
+
36
+
37
+ .sd-editor--theme-default {
38
+ --theme-color-base: hsl(0 0% 100%);
39
+ --sd-editor-colour__main-bg: var(--theme-color-base);
40
+ --sd-editor-colour__main-bg--alt: hsl(214 13% 96%);
41
+ --sd-editor-colour__main-border: hsl(214 13% 12% / 0.2);
42
+ --sd-editor-colour__txt: var(--color-text-onlight);
43
+ --sd-editor-colour__txt--accent: var(--color-interactive-default);
44
+ --sd-editor-colour__quote-border: hsl(214 13% 55% / 0.5);
45
+ --sd-editor-colour__controls-bg: hsl(214 13% 94%);
46
+ --sd-editor-colour__controls-border: hsl(214 13% 12% / 0.2);
47
+ --sd-editor-colour__button-bg--active: hsl(214 13% 99% / 0.9);
48
+
49
+ --sd-editor-colour__removing: var(--blissful-berry-600);
50
+ --sd-editor-colour__removing-bg: var(--blissful-berry-500-a12);
51
+ --sd-editor-colour__adding: var(--green-brier-600);
52
+ --sd-editor-colour__adding-bg: var(--green-brier-400-a12);
53
+
54
+ --sd-editor-colour__mark-people: var(--sorcerer-blue-300);
55
+ --sd-editor-colour__mark-company: var(--syrah-soil-200);
56
+
57
+ --sd-editor-colour__soft-limit: var(--syrah-soil-400);
58
+ --sd-editor-colour__hard-limit: var(--morocco-red-500);
59
+ }
60
+
61
+ .sd-editor--theme-dark {
62
+ --theme-color-base: hsl(214 13% 12%);
63
+ --sd-editor-colour__main-bg: var(--theme-color-base);
64
+ --sd-editor-colour__main-bg--alt: lch(from var(--theme-color-base) calc(l - 5) c h);
65
+ --sd-editor-colour__main-border: lch(from var(--theme-color-base) calc(l + 55) c h / 0.3);
66
+ --sd-editor-colour__txt: var(--color-text-ondark);
67
+ --sd-editor-colour__txt--accent: var(--color-interactive-text);
68
+ --sd-editor-colour__quote-border: lch(from var(--theme-color-base) calc(l + 55) c h / 0.5);
69
+ --sd-editor-colour__controls-bg: lch(from var(--theme-color-base) calc(l - 5) c h);
70
+ --sd-editor-colour__controls-border: lch(from var(--theme-color-base) calc(l + 65) c h / 0.2);
71
+
72
+ --sd-editor-colour__field-label-bg: lch(from var(--theme-color-base) calc(l - 10) c h);
73
+
74
+ --sd-editor-colour__removing: var(--blissful-berry-300);
75
+ --sd-editor-colour__removing-bg: var(--blissful-berry-400-a24);
76
+ --sd-editor-colour__adding: var(--green-brier-100);
77
+ --sd-editor-colour__adding-bg: var(--green-brier-400-a12);
78
+
79
+ --sd-editor-colour__mark-company: var(--syrah-soil-300);
80
+
81
+ --sd-editor-colour__soft-limit: var(--syrah-soil-200);
82
+ --sd-editor-colour__hard-limit: var(--morocco-red-400);
83
+ }
84
+
85
+ .sd-editor--theme-blue {
86
+ --theme-color-base: hsl(212 91% 18%);
87
+ --sd-editor-colour__main-bg: var(--theme-color-base);
88
+ --sd-editor-colour__main-bg--alt: lch(from var(--theme-color-base) calc(l - 5) c h);
89
+ --sd-editor-colour__main-border: lch(from var(--theme-color-base) calc(l + 55) c h / 0.3);
90
+ --sd-editor-colour__txt: var(--color-text-ondark);
91
+ --sd-editor-colour__txt--accent: hsl(307 100% 50%);
92
+ --sd-editor-colour__quote-border: lch(from var(--theme-color-base) calc(l + 55) calc(c - 20) h / 0.5);
93
+ --sd-editor-colour__controls-bg: lch(from var(--theme-color-base) calc(l - 5) c h);
94
+ --sd-editor-colour__controls-border: lch(from var(--theme-color-base) calc(l + 65) calc(c - 50) h / 0.2);
95
+
96
+ --sd-editor-colour__field-label-bg: lch(from var(--theme-color-base) calc(l - 10) c h);
97
+
98
+ --sd-editor-colour__removing: var(--blissful-berry-300);
99
+ --sd-editor-colour__removing-bg: var(--blissful-berry-400-a24);
100
+ --sd-editor-colour__adding: var(--green-brier-100);
101
+ --sd-editor-colour__adding-bg: var(--green-brier-400-a12);
102
+
103
+ --sd-editor-colour__mark-company: var(--syrah-soil-300);
104
+
105
+ --sd-editor-colour__soft-limit: var(--syrah-soil-200);
106
+ --sd-editor-colour__hard-limit: var(--morocco-red-400);
107
+ }
108
+
109
+ .sd-editor--theme-turquoise {
110
+ --theme-color-base: hsl(179 49% 65%);
111
+ --sd-editor-colour__main-bg: var(--theme-color-base);
112
+ --sd-editor-colour__main-bg--alt: lch(from var(--theme-color-base) calc(l - 5) c h);
113
+ --sd-editor-colour__main-border: lch(from var(--theme-color-base) calc(l + 55) c h / 0.3);
114
+ --sd-editor-colour__txt: var(--color-text-onlight);
115
+ --sd-editor-colour__txt--accent: hsl(307 100% 50%);
116
+ --sd-editor-colour__quote-border: lch(from var(--theme-color-base) calc(l - 40) c h / 0.5);
117
+ --sd-editor-colour__controls-bg: lch(from var(--theme-color-base) calc(l + 3) c h);
118
+ --sd-editor-colour__controls-border: lch(from var(--theme-color-base) calc(l - 47) c h / 0.2);
119
+
120
+ --sd-editor-colour__comment-bg: hsl(54 90% 80% / 0.5);
121
+ --sd-editor-colour__annotation: hsl(91 100% 60% / 0.8);
122
+ --sd-editor-colour__removing: var(--blissful-berry-600);
123
+ --sd-editor-colour__removing-bg: var(--blissful-berry-500-a12);
124
+ --sd-editor-colour__adding: var(--green-brier-600);
125
+ --sd-editor-colour__adding-bg: var(--green-brier-400-a12);
126
+
127
+ --sd-editor-colour__mark-people: var(--sorcerer-blue-400);
128
+ --sd-editor-colour__mark-company: var(--syrah-soil-300);
129
+
130
+ --sd-editor-colour__soft-limit: var(--syrah-soil-500);
131
+ --sd-editor-colour__hard-limit: var(--morocco-red-500);
132
+ }
133
+
134
+ .sd-editor--theme-military {
135
+ --theme-color-base: hsl(69 25% 65%);
136
+ --sd-editor-colour__main-bg: var(--theme-color-base);
137
+ --sd-editor-colour__main-bg--alt: lch(from var(--theme-color-base) calc(l - 5) c h);
138
+ --sd-editor-colour__main-border: lch(from var(--theme-color-base) calc(l + 55) c h / 0.3);
139
+ --sd-editor-colour__txt: var(--color-text-onlight);
140
+ --sd-editor-colour__txt--accent: hsl(307 100% 50%);
141
+ --sd-editor-colour__quote-border: lch(from var(--theme-color-base) calc(l - 40) c h / 0.5);
142
+ --sd-editor-colour__controls-bg: lch(from var(--theme-color-base) calc(l + 3) c h);
143
+ --sd-editor-colour__controls-border: lch(from var(--theme-color-base) calc(l - 47) c h / 0.2);
144
+
145
+ --sd-editor-colour__comment-bg: hsl(54 90% 80% / 0.5);
146
+ --sd-editor-colour__annotation: hsl(91 100% 60% / 0.8);
147
+ --sd-editor-colour__removing: var(--blissful-berry-600);
148
+ --sd-editor-colour__removing-bg: var(--blissful-berry-500-a12);
149
+ --sd-editor-colour__adding: var(--green-brier-600);
150
+ --sd-editor-colour__adding-bg: var(--green-brier-400-a12);
151
+
152
+ --sd-editor-colour__mark-people: var(--sorcerer-blue-500);
153
+ --sd-editor-colour__mark-company: var(--syrah-soil-400);
154
+
155
+ --sd-editor-colour__soft-limit: var(--syrah-soil-500);
156
+ }
157
+
158
+ .sd-editor--theme-natural {
159
+ --theme-color-base: hsl(51 50% 89%);
160
+ --sd-editor-colour__main-bg: var(--theme-color-base);
161
+ --sd-editor-colour__main-bg--alt: lch(from var(--theme-color-base) calc(l - 5) c h);
162
+ --sd-editor-colour__main-border: lch(from var(--theme-color-base) calc(l + 55) c h / 0.3);
163
+ --sd-editor-colour__txt: var(--color-text-onlight);
164
+ --sd-editor-colour__txt--accent: var(--color-interactive-text);
165
+ --sd-editor-colour__quote-border: lch(from var(--theme-color-base) calc(l - 40) c h / 0.5);
166
+ --sd-editor-colour__controls-bg: lch(from var(--theme-color-base) calc(l + 3) c h);
167
+ --sd-editor-colour__controls-border: lch(from var(--theme-color-base) calc(l - 69) c h / 0.2);
168
+
169
+ --sd-editor-colour__removing: var(--blissful-berry-600);
170
+ --sd-editor-colour__removing-bg: var(--blissful-berry-500-a12);
171
+ --sd-editor-colour__adding: var(--green-brier-600);
172
+ --sd-editor-colour__adding-bg: var(--green-brier-400-a12);
173
+ }
174
+ }
175
+
176
+ $color-swatch-border-color: transparent;
177
+ $color-swatch-border-active-color: colors.$sd-colour-interactive;
178
+
179
+ $color-swatch-size: 6.8rem;
180
+ $color-swatch-inner-size: 6rem;
181
+
182
+ $theme-background: colors.$white !default;
183
+ $theme-color: colors.$sd-text !default;
184
+
185
+ // Theme fonts
186
+ $font-sans-1: typography.$baseFontFamily;
187
+ $font-serif-1: typography.$baseFontFamilySerif;
188
+ $font-monospace-1: typography.$baseFontFamilyMono;
189
+
190
+ $theme-font-list: (
191
+ sans: $font-sans-1,
192
+ serif: $font-serif-1,
193
+ mono: $font-monospace-1,
194
+ );
195
+
196
+ $themes: (
197
+ 'default': ('bg-color': colors.$white,
198
+ 'text-color': colors.$sd-text ),
199
+ 'dark': ('bg-color': colors.$grayDarker,
200
+ 'text-color': #AACCD1),
201
+ 'blue': ('bg-color': #06356A,
202
+ 'text-color': colors.$white ),
203
+ 'turquoise': ('bg-color': #5AC7C3,
204
+ 'text-color': #122235),
205
+ 'military': ('bg-color': #949E5F,
206
+ 'text-color': #252818),
207
+ 'natural': ('bg-color': #EFE9C5,
208
+ 'text-color': #1D1414)
209
+ );
210
+
211
+ $headline-font-size: (
212
+ small: 2.3rem,
213
+ medium: 2.8rem,
214
+ large: 3.2rem,
215
+ );
216
+
217
+ $abstract-font-size: (
218
+ small: 1.4rem,
219
+ medium: 1.6rem,
220
+ large: 1.8rem,
221
+ );
222
+
223
+ $body-font-size: (
224
+ small: 1.4rem,
225
+ medium: 1.6rem,
226
+ large: 1.8rem,
227
+ );
228
+
229
+ @mixin editor-lable-base() {
230
+ display: inline-flex;
231
+ align-items: center;
232
+ justify-content: center;
233
+ padding: 0 0.8rem;
234
+ height: 1.8rem;
235
+ vertical-align: middle;
236
+ border-radius: dimensions.$border-radius__base--x-small;
237
+ text-transform: uppercase;
238
+ line-height: 1;
239
+ letter-spacing: 0.05em;
240
+ font-size: 1rem;
241
+ white-space: nowrap;
242
+ font-weight: 400;
243
+ background-color: var(--sd-editor-colour__field-label-bg);
244
+ color: colors.$white;
245
+ font-family: "Roboto";
246
+ }
247
+
248
+ .color-swatch__list {
249
+ display: grid;
250
+ grid-template-columns: repeat(auto-fill, minmax(6.8rem, 6.8rem));
251
+ grid-gap: 0.9rem;
252
+ margin: 0.4rem 0 2.4rem 0;
253
+ }
254
+
255
+ @mixin color-swatch-base() {
256
+ height: $color-swatch-size;
257
+ width: $color-swatch-size;
258
+ padding: 0.2rem;
259
+ border-radius: dimensions.$border-radius__base--full;
260
+ border: 2px solid $color-swatch-border-color;
261
+ }
262
+
263
+ @mixin color-swatch-inner-base() {
264
+ display: flex;
265
+ flex-direction: column;
266
+ align-items: center;
267
+ height: $color-swatch-inner-size;
268
+ width: $color-swatch-inner-size;
269
+ border-radius: dimensions.$border-radius__base--full;
270
+ background-color: var(--sd-editor-colour__main-bg);
271
+ color: var(--sd-editor-colour__txt);
272
+ text-align: center;
273
+ font-size: 2rem;
274
+ line-height: $color-swatch-inner-size;
275
+ text-transform: uppercase;
276
+ box-shadow: 0 1px 3px rgba(0, 0, 0, .16), 0 0 1px rgba(0, 0, 0, .1);
277
+ cursor: pointer;
278
+
279
+ &:hover {
280
+ box-shadow: 0 1px 3px rgba(0, 0, 0, .26), 0 0 1px rgba(0, 0, 0, .2);
281
+ }
282
+ }
283
+
284
+ .color-swatch {
285
+ @include color-swatch-base();
286
+ }
287
+
288
+ .color-swatch--selected {
289
+ border-color: $color-swatch-border-active-color;
290
+
291
+ .color-swatch__inner {
292
+ box-shadow: none !important;
293
+ }
294
+ }
295
+
296
+ .color-swatch__inner {
297
+ @include color-swatch-inner-base();
298
+ }
299
+
300
+ // ------ THEME PREVIEW ------ //
301
+
302
+ .text-field__headline {
303
+ font-weight: 500;
304
+ min-height: 6rem;
305
+ }
306
+
307
+ .text-field__abstract {
308
+ font-weight: 400;
309
+ font-style: italic;
310
+ min-height: 9.2rem;
311
+ }
312
+
313
+ .text-field__body {
314
+ font-weight: 300;
315
+ min-height: 9.2rem;
316
+ }
317
+
318
+ .theme-editor {
319
+ background-color: var(--sd-editor-colour__main-bg);
320
+ color: var(--sd-editor-colour__txt);
321
+ }
322
+
323
+ .theme-preview {
324
+ margin: 0 -2rem -2rem -2rem;
325
+ padding: 2rem;
326
+ background-color: var(--sd-editor-colour__main-bg);
327
+ color: var(--sd-editor-colour__txt);
328
+
329
+ .theme-preview__label {
330
+ opacity: 0.7;
331
+ transition: opacity 0.3s ease-out;
332
+ }
333
+
334
+ &:hover {
335
+ .theme-preview__label {
336
+ opacity: 1;
337
+ }
338
+ }
339
+
340
+ @each $name,
341
+ $font in $theme-font-list {
342
+ &.sd-editor--font-#{$name} {
343
+ font-family: $font;
344
+ }
345
+ }
346
+
347
+ @each $name,
348
+ $size in $headline-font-size {
349
+ &.sd-editor--headline-#{$name} {
350
+ .text-field__headline {
351
+ font-size: $size;
352
+ }
353
+ }
354
+ }
355
+
356
+ @each $name,
357
+ $size in $abstract-font-size {
358
+ &.sd-editor--abstract-#{$name} {
359
+ .text-field__abstract {
360
+ font-size: $size;
361
+ }
362
+ }
363
+ }
364
+
365
+ @each $name,
366
+ $size in $body-font-size {
367
+ &.sd-editor--body-#{$name} {
368
+ .text-field__body {
369
+ font-size: $size;
370
+ }
371
+ }
372
+ }
373
+ }
374
+
375
+ .theme-preview__block {
376
+ margin-block-end: 1.2rem;
377
+
378
+ &:last-child {
379
+ margin-block-end: 0;
380
+ }
381
+
382
+ .sd-checkbox--button-style,
383
+ .sd-checkbox--button-style:hover {
384
+ color: var(--sd-editor-colour__txt);
385
+ border-color: var(--sd-editor-colour__main-border);
386
+
387
+ &.checked {
388
+ border-color: var(--sd-colour-interactive--active) !important;
389
+ color: colors.$white;
390
+
391
+ label {
392
+ color: colors.$white !important;
393
+ }
394
+ }
395
+ }
396
+
397
+ .sd-checkbox--button-style label,
398
+ .sd-checkbox--button-style:hover label {
399
+ color: var(--sd-editor-colour__txt);
400
+ }
401
+ }
402
+
403
+ .theme-preview__label {
404
+ @include editor-lable-base();
405
+ }
406
+
407
+ .theme-preview__text-field {
408
+ display: flex;
409
+ line-height: 140%;
410
+ color: inherit;
411
+ font-family: inherit;
412
+ border-block-end: 1px dotted var(--sd-editor-colour__main-border);
413
+ margin-block-end: 0.8rem;
414
+ padding: 1rem 0 0.5rem;
415
+ flex-direction: column;
416
+ justify-content: flex-end;
417
+ }
418
+
419
+ .theme-preview__media-field {
420
+ display: flex;
421
+ color: inherit;
422
+ font-family: inherit;
423
+ margin-block-end: 0.8rem;
424
+ padding: 1rem 0 0.5rem;
425
+ flex-direction: column;
426
+ }
427
+
428
+ .theme-preview__button-bar {
429
+ text-align: end;
430
+
431
+ .sd-check__wrapper+.sd-check__wrapper {
432
+ margin-inline-start: 0.2rem;
433
+ }
434
+ }
435
+
436
+ // ------ THEME IN EDITOR ------ //
437
+
438
+ .main-article {
439
+ background-color: var(--sd-editor-colour__main-bg);
440
+ color: var(--sd-editor-colour__txt);
441
+
442
+ .Editor3-root {
443
+ .DraftEditor-editorContainer {
444
+ blockquote {
445
+ margin: 0 0 0 4px;
446
+ box-shadow: -4px 0 0 var(--sd-editor-colour__quote-border);
447
+ font-style: italic;
448
+ font-weight: 400;
449
+ padding: 0.5em 0 0 1em;
450
+ }
451
+ }
452
+ }
453
+ }
454
+
455
+ .main-article {
456
+
457
+ @each $name,
458
+ $font in $theme-font-list {
459
+ &.sd-editor--font-#{$name} {
460
+ font-family: $font;
461
+ }
462
+ }
463
+
464
+ @each $name,
465
+ $size in $headline-font-size {
466
+ &.sd-editor--headline-#{$name} {
467
+ .headline .Editor3-root .DraftEditor-editorContainer {
468
+ font-size: $size;
469
+ }
470
+
471
+ // Editor 2
472
+ .headline .text-editor,
473
+ .headline p .text-editor,
474
+ .headline div .text-editor {
475
+ font-size: $size;
476
+ }
477
+ }
478
+ }
479
+
480
+ @each $name,
481
+ $size in $abstract-font-size {
482
+ &.sd-editor--abstract-#{$name} {
483
+ .abstract .Editor3-root .DraftEditor-editorContainer {
484
+ font-size: $size;
485
+ }
486
+
487
+ // Editor 2
488
+ .abstract,
489
+ .abstract p,
490
+ .abstract div:not(.field__label) {
491
+ font-size: $size;
492
+ }
493
+ }
494
+ }
495
+
496
+ @each $name,
497
+ $size in $body-font-size {
498
+ &.sd-editor--body-#{$name} {
499
+ .Editor3-root .DraftEditor-editorContainer {
500
+ font-size: $size;
501
+
502
+ h1 {
503
+ font-size: 2em;
504
+ }
505
+
506
+ h2 {
507
+ font-size: 1.5em;
508
+ line-height: 140%;
509
+ }
510
+
511
+ h3 {
512
+ font-size: 1.125em;
513
+ }
514
+
515
+ h4 {
516
+ font-size: 0.875em;
517
+ }
518
+
519
+ h5 {
520
+ font-size: 0.75em;
521
+ }
522
+
523
+ h6 {
524
+ font-size: 0.6875em;
525
+ color: inherit;
526
+ opacity: 0.7;
527
+ letter-spacing: 0.03em;
528
+ }
529
+
530
+ h1,
531
+ h2,
532
+ h3,
533
+ h4,
534
+ h5,
535
+ h6 {
536
+ line-height: 140%;
537
+ }
538
+ }
539
+
540
+ // Editor 2
541
+ .body-text .text-editor {
542
+ font-size: $size;
543
+
544
+ p {
545
+ font-size: $size;
546
+ }
547
+ }
548
+ }
549
+ }
550
+ }
@@ -0,0 +1,54 @@
1
+ @use "../variables/colors";
2
+ @use "../variables/dimensions";
3
+
4
+ // Superdesk specific
5
+
6
+ .sd-searchbar, .sd-input--inline-label {
7
+ .p-autocomplete-panel {
8
+ margin-block-start: 0;
9
+ }
10
+ }
11
+
12
+ .sd-input--inline-label {
13
+ .p-autocomplete {
14
+ display: block;
15
+ grid-row: 2/3;
16
+ grid-column: 2/4;
17
+ }
18
+ }
19
+
20
+ .p-autocomplete-loader {
21
+ &.pi {
22
+ color: inherit !important;
23
+ z-index: 1;
24
+ border-radius: dimensions.$border-radius__base--full;
25
+ inset-inline-end:8px;
26
+
27
+ }
28
+ }
29
+
30
+ .sd-searchbar {
31
+ .p-autocomplete-loader {
32
+ &.pi {
33
+ font-size: 2.4rem !important;
34
+ background-color: colors.$white;
35
+ }
36
+ }
37
+ }
38
+
39
+ .sd-input {
40
+ .p-autocomplete-loader {
41
+ margin-block-start: -1.4rem;
42
+
43
+ &.pi {
44
+ font-size: 2rem !important;
45
+ background-color: transparent;
46
+ }
47
+ }
48
+ }
49
+
50
+ .sd-input.sd-input--inline-label {
51
+ .p-autocomplete-loader {
52
+ margin-block-start: -1rem;
53
+ }
54
+ }