superdesk-ui-framework 3.0.42 → 3.0.43

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