@vaadin/vaadin-lumo-styles 25.0.0-alpha9 → 25.0.0-beta2

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 (179) hide show
  1. package/all-imports.d.ts +0 -8
  2. package/all-imports.js +0 -18
  3. package/components/accordion-heading.css +4 -3
  4. package/components/accordion-panel.css +4 -3
  5. package/components/app-layout.css +4 -3
  6. package/components/avatar-group.css +10 -9
  7. package/components/avatar.css +6 -4
  8. package/components/button.css +4 -4
  9. package/components/card.css +6 -4
  10. package/components/charts.css +4 -3
  11. package/components/checkbox-group.css +4 -3
  12. package/components/checkbox.css +4 -3
  13. package/components/combo-box.css +8 -7
  14. package/components/confirm-dialog.css +4 -3
  15. package/components/context-menu.css +8 -7
  16. package/components/crud.css +13 -12
  17. package/components/custom-field.css +4 -3
  18. package/components/dashboard.css +12 -11
  19. package/components/date-picker.css +12 -11
  20. package/components/date-time-picker.css +4 -3
  21. package/components/details-summary.css +4 -3
  22. package/components/details.css +4 -3
  23. package/components/dialog.css +4 -3
  24. package/components/drawer-toggle.css +4 -3
  25. package/components/email-field.css +4 -3
  26. package/components/field-highlighter.css +8 -7
  27. package/components/form-item.css +4 -3
  28. package/components/form-layout.css +8 -5
  29. package/components/grid-filter.css +4 -3
  30. package/components/grid-pro-edit-column.css +8 -7
  31. package/components/grid-pro.css +4 -3
  32. package/components/grid-sorter.css +4 -3
  33. package/components/grid-tree-toggle.css +4 -3
  34. package/components/grid.css +4 -3
  35. package/components/horizontal-layout.css +4 -3
  36. package/components/icon.css +4 -3
  37. package/components/index.css +71 -0
  38. package/components/input-container.css +4 -3
  39. package/components/integer-field.css +4 -3
  40. package/components/item.css +4 -3
  41. package/components/list-box.css +4 -3
  42. package/components/login-form.css +4 -3
  43. package/components/login.css +4 -3
  44. package/components/map.css +4 -3
  45. package/components/master-detail-layout.css +2 -1
  46. package/components/menu-bar.css +12 -11
  47. package/components/message-input-button.css +12 -0
  48. package/components/message-input.css +5 -4
  49. package/components/message.css +4 -3
  50. package/components/multi-select-combo-box.css +12 -11
  51. package/components/notification.css +6 -5
  52. package/components/number-field.css +4 -3
  53. package/components/overlay.css +4 -3
  54. package/components/password-field.css +6 -5
  55. package/components/popover.css +4 -3
  56. package/components/progress-bar.css +4 -3
  57. package/components/radio-button.css +4 -3
  58. package/components/radio-group.css +4 -3
  59. package/components/rich-text-editor.css +6 -5
  60. package/components/scroller.css +4 -3
  61. package/components/select.css +12 -11
  62. package/components/side-nav-item.css +4 -3
  63. package/components/side-nav.css +4 -3
  64. package/components/split-layout.css +4 -3
  65. package/components/tab.css +4 -3
  66. package/components/tabs.css +4 -3
  67. package/components/tabsheet.css +6 -5
  68. package/components/text-area.css +4 -3
  69. package/components/text-field.css +4 -3
  70. package/components/time-picker.css +8 -7
  71. package/components/tooltip.css +4 -3
  72. package/components/upload.css +15 -10
  73. package/components/vertical-layout.css +4 -3
  74. package/dist/lumo.css +43 -0
  75. package/dist/presets/compact.css +1 -0
  76. package/dist/utility.css +1 -0
  77. package/lumo.css +8 -3
  78. package/mixins/field-button.js +3 -4
  79. package/mixins/helper.js +3 -4
  80. package/mixins/input-field-shared.js +4 -7
  81. package/mixins/loader.js +3 -2
  82. package/mixins/menu-overlay.js +3 -2
  83. package/mixins/overlay.js +3 -4
  84. package/mixins/required-field.js +3 -4
  85. package/package.json +15 -9
  86. package/presets/compact.css +32 -0
  87. package/src/components/app-layout.css +5 -5
  88. package/src/components/avatar-group-overlay.css +0 -4
  89. package/src/components/chart.css +2 -1
  90. package/src/components/checkbox.css +2 -3
  91. package/src/components/combo-box.css +1 -1
  92. package/src/components/confirm-dialog-overlay.css +0 -4
  93. package/src/components/context-menu-overlay.css +21 -1
  94. package/src/components/dashboard-layout.css +0 -66
  95. package/src/components/dashboard-section.css +3 -31
  96. package/src/components/dashboard-widget.css +1 -85
  97. package/src/components/dashboard.css +0 -9
  98. package/src/components/date-picker-overlay-content.css +6 -40
  99. package/src/components/date-picker-overlay.css +2 -14
  100. package/src/components/date-picker.css +2 -2
  101. package/src/components/dialog-overlay.css +10 -19
  102. package/src/components/grid-pro-edit-select.css +1 -1
  103. package/src/components/grid-pro.css +14 -8
  104. package/src/components/grid.css +0 -7
  105. package/src/components/icon.css +2 -2
  106. package/src/components/menu-bar-button.css +7 -7
  107. package/src/components/message.css +7 -32
  108. package/src/components/multi-select-combo-box.css +2 -2
  109. package/src/components/number-field.css +6 -6
  110. package/src/components/password-field.css +4 -4
  111. package/src/components/popover-overlay.css +2 -138
  112. package/src/components/radio-button.css +1 -1
  113. package/src/components/rich-text-editor.css +40 -142
  114. package/src/components/scroller.css +3 -22
  115. package/src/components/select.css +15 -2
  116. package/src/components/side-nav-item.css +13 -0
  117. package/src/components/split-layout.css +19 -97
  118. package/src/components/tabsheet.css +4 -0
  119. package/src/components/text-area.css +2 -2
  120. package/src/components/time-picker.css +1 -1
  121. package/src/components/tooltip-overlay.css +4 -1
  122. package/src/components/upload-file.css +27 -61
  123. package/src/global/color-scheme.css +2 -1
  124. package/{user-colors.d.ts → src/global/index.css} +3 -3
  125. package/src/global/typography.css +2 -1
  126. package/src/mixins/dashboard-item.css +10 -141
  127. package/src/mixins/field-base.css +1 -1
  128. package/src/mixins/field-button.css +3 -3
  129. package/src/mixins/overlay.css +11 -1
  130. package/src/mixins/resizable-overlay.css +2 -1
  131. package/src/props/color.css +4 -2
  132. package/src/props/icons.css +21 -18
  133. package/src/props/index.css +12 -0
  134. package/src/props/reset.css +2 -1
  135. package/src/props/sizing.css +2 -1
  136. package/src/props/spacing.css +2 -1
  137. package/src/props/style.css +2 -1
  138. package/src/props/typography.css +2 -1
  139. package/utility.css +0 -1
  140. package/vaadin-iconset.js +2 -0
  141. package/auto-complete.css +0 -2512
  142. package/badge-global.js +0 -9
  143. package/badge.d.ts +0 -3
  144. package/badge.js +0 -178
  145. package/color-global.js +0 -9
  146. package/color.d.ts +0 -5
  147. package/color.js +0 -221
  148. package/components.css +0 -71
  149. package/font-icons.js +0 -69
  150. package/global.css +0 -8
  151. package/global.js +0 -5
  152. package/presets/compact.js +0 -40
  153. package/props.css +0 -12
  154. package/sizing.d.ts +0 -3
  155. package/sizing.js +0 -29
  156. package/spacing.d.ts +0 -3
  157. package/spacing.js +0 -37
  158. package/src/components/form-layout.css +0 -12
  159. package/src/components/upload-file-list.css +0 -24
  160. package/style.d.ts +0 -3
  161. package/style.js +0 -31
  162. package/typography-global.js +0 -13
  163. package/typography.d.ts +0 -7
  164. package/typography.js +0 -129
  165. package/user-colors.js +0 -33
  166. package/utilities/accessibility.js +0 -21
  167. package/utilities/background.js +0 -156
  168. package/utilities/border.js +0 -147
  169. package/utilities/filter.js +0 -34
  170. package/utilities/flexbox-grid.js +0 -619
  171. package/utilities/layout.js +0 -504
  172. package/utilities/shadows.js +0 -28
  173. package/utilities/sizing.js +0 -121
  174. package/utilities/spacing.js +0 -542
  175. package/utilities/transition.js +0 -50
  176. package/utilities/typography.js +0 -344
  177. package/utility-global.js +0 -9
  178. package/utility.d.ts +0 -3
  179. package/utility.js +0 -34
@@ -5,152 +5,16 @@
5
5
  */
6
6
  @media lumo_components_popover-overlay {
7
7
  :host {
8
- --vaadin-popover-arrow-size: 0.5rem;
8
+ --_arrow-size: var(--vaadin-popover-arrow-size, 0.75rem);
9
9
  --_default-offset: var(--lumo-space-xs);
10
10
  }
11
11
 
12
12
  [part='overlay'] {
13
- position: relative;
14
13
  overflow: visible;
15
- max-height: 100%;
16
- outline: none;
14
+ border: none;
17
15
  }
18
16
 
19
17
  [part='content'] {
20
- overflow: auto;
21
- box-sizing: border-box;
22
- max-height: 100%;
23
18
  padding: var(--lumo-space-xs) var(--lumo-space-s);
24
19
  }
25
-
26
- /* Increase the area of the popover so the pointer can go from the target directly to it. */
27
- [part='overlay']::before {
28
- position: absolute;
29
- content: '';
30
- inset-block: calc(var(--vaadin-popover-offset-top, var(--_default-offset)) * -1)
31
- calc(var(--vaadin-popover-offset-bottom, var(--_default-offset)) * -1);
32
- inset-inline: calc(var(--vaadin-popover-offset-start, var(--_default-offset)) * -1)
33
- calc(var(--vaadin-popover-offset-end, var(--_default-offset)) * -1);
34
- z-index: -1;
35
- pointer-events: auto;
36
- }
37
-
38
- :host([theme~='no-padding']) [part='content'] {
39
- padding: 0 !important;
40
- }
41
-
42
- [part='arrow'] {
43
- display: none;
44
- position: absolute;
45
- height: 0;
46
- width: 0;
47
- }
48
-
49
- :host([theme~='arrow']) {
50
- --_default-offset: calc(var(--lumo-space-s) + var(--vaadin-popover-arrow-size) / 2);
51
- }
52
-
53
- :host([theme~='arrow']) [part='arrow'] {
54
- display: block;
55
- }
56
-
57
- :host([modeless][with-backdrop]) [part='backdrop'] {
58
- pointer-events: none;
59
- }
60
-
61
- :host([position^='top'][top-aligned]) [part='overlay'],
62
- :host([position^='bottom'][top-aligned]) [part='overlay'] {
63
- margin-top: var(--vaadin-popover-offset-top, var(--_default-offset));
64
- }
65
-
66
- :host([position^='top'][bottom-aligned]) [part='overlay'],
67
- :host([position^='bottom'][bottom-aligned]) [part='overlay'] {
68
- margin-bottom: var(--vaadin-popover-offset-bottom, var(--_default-offset));
69
- }
70
-
71
- :host([position^='start'][start-aligned]) [part='overlay'],
72
- :host([position^='end'][start-aligned]) [part='overlay'] {
73
- margin-inline-start: var(--vaadin-popover-offset-start, var(--_default-offset));
74
- }
75
-
76
- :host([position^='start'][end-aligned]) [part='overlay'],
77
- :host([position^='end'][end-aligned]) [part='overlay'] {
78
- margin-inline-end: var(--vaadin-popover-offset-end, var(--_default-offset));
79
- }
80
-
81
- /* top / bottom position */
82
- :host([theme~='arrow'][position^='top']) [part='arrow'],
83
- :host([theme~='arrow'][position^='bottom']) [part='arrow'] {
84
- border-left: var(--vaadin-popover-arrow-size) solid transparent;
85
- border-right: var(--vaadin-popover-arrow-size) solid transparent;
86
- }
87
-
88
- :host([theme~='arrow'][position^='bottom'][bottom-aligned]) [part='arrow'],
89
- :host([theme~='arrow'][position^='top'][bottom-aligned]) [part='arrow'] {
90
- bottom: calc(var(--vaadin-popover-arrow-size) * -1);
91
- border-top: var(--vaadin-popover-arrow-size) solid var(--lumo-base-color);
92
- filter: drop-shadow(0 2px 1px var(--lumo-shade-10pct));
93
- }
94
-
95
- :host([theme~='arrow'][position^='bottom'][top-aligned]) [part='arrow'],
96
- :host([theme~='arrow'][position^='top'][top-aligned]) [part='arrow'] {
97
- top: calc(var(--vaadin-popover-arrow-size) * -1);
98
- border-bottom: var(--vaadin-popover-arrow-size) solid var(--lumo-base-color);
99
- filter: drop-shadow(0 -2px 1px var(--lumo-shade-10pct));
100
- }
101
-
102
- :host([theme~='arrow'][position^='bottom'][start-aligned]) [part='arrow'],
103
- :host([theme~='arrow'][position^='top'][start-aligned]) [part='arrow'] {
104
- transform: translateX(-50%);
105
- inset-inline-start: 1.5rem;
106
- }
107
-
108
- :host([theme~='arrow'][position^='bottom'][end-aligned]) [part='arrow'],
109
- :host([theme~='arrow'][position^='top'][end-aligned]) [part='arrow'] {
110
- transform: translateX(50%);
111
- inset-inline-end: 1.5rem;
112
- }
113
-
114
- :host([theme~='arrow'][position^='bottom'][arrow-centered]) [part='arrow'],
115
- :host([theme~='arrow'][position^='top'][arrow-centered]) [part='arrow'] {
116
- transform: translateX(-50%);
117
- inset-inline-start: 50%;
118
- }
119
-
120
- /* start / end position */
121
- :host([theme~='arrow'][position^='start']) [part='arrow'],
122
- :host([theme~='arrow'][position^='end']) [part='arrow'] {
123
- border-top: var(--vaadin-popover-arrow-size) solid transparent;
124
- border-bottom: var(--vaadin-popover-arrow-size) solid transparent;
125
- }
126
-
127
- :host([theme~='arrow'][position^='start'][start-aligned]) [part='arrow'],
128
- :host([theme~='arrow'][position^='end'][start-aligned]) [part='arrow'] {
129
- inset-inline-start: calc(var(--vaadin-popover-arrow-size) * -1);
130
- border-right: var(--vaadin-popover-arrow-size) solid var(--lumo-base-color);
131
- filter: drop-shadow(-2px 0 1px var(--lumo-shade-10pct));
132
- }
133
-
134
- :host([theme~='arrow'][position^='start'][end-aligned]) [part='arrow'],
135
- :host([theme~='arrow'][position^='end'][end-aligned]) [part='arrow'] {
136
- inset-inline-end: calc(var(--vaadin-popover-arrow-size) * -1);
137
- border-left: var(--vaadin-popover-arrow-size) solid var(--lumo-base-color);
138
- filter: drop-shadow(2px 0 1px var(--lumo-shade-10pct));
139
- }
140
-
141
- :host([theme~='arrow'][position^='start'][top-aligned]) [part='arrow'],
142
- :host([theme~='arrow'][position^='end'][top-aligned]) [part='arrow'] {
143
- top: 0.5rem;
144
- }
145
-
146
- :host([theme~='arrow'][position='start'][top-aligned]) [part='arrow'],
147
- :host([theme~='arrow'][position='end'][top-aligned]) [part='arrow'] {
148
- top: 50%;
149
- transform: translateY(-50%);
150
- }
151
-
152
- :host([theme~='arrow'][position^='start'][bottom-aligned]) [part='arrow'],
153
- :host([theme~='arrow'][position^='end'][bottom-aligned]) [part='arrow'] {
154
- bottom: 0.5rem;
155
- }
156
20
  }
@@ -66,7 +66,7 @@
66
66
  pointer-events: none;
67
67
  width: 0;
68
68
  height: 0;
69
- border: var(--vaadin-radio-button-dot-size, 3px) solid
69
+ border: var(--vaadin-radio-button-marker-size, 3px) solid
70
70
  var(--vaadin-radio-button-dot-color, var(--lumo-primary-contrast-color));
71
71
  border-radius: 50%;
72
72
  position: absolute;
@@ -5,57 +5,34 @@
5
5
  */
6
6
  @media lumo_components_rich-text-editor {
7
7
  :host {
8
- display: flex;
9
- flex-direction: column;
10
- box-sizing: border-box;
11
8
  min-height: calc(var(--lumo-size-m) * 8);
12
9
  font-family: var(--lumo-font-family);
13
10
  font-size: var(--lumo-font-size-m);
14
11
  line-height: var(--lumo-line-height-m);
12
+ background: transparent;
13
+ border: none;
14
+ border-radius: 0;
15
15
  -webkit-text-size-adjust: 100%;
16
16
  -webkit-font-smoothing: antialiased;
17
17
  -moz-osx-font-smoothing: grayscale;
18
18
  --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
19
19
  --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
20
+ --_item-indent: var(--lumo-space-m);
21
+ --_marker-indent: var(--lumo-space-xs);
20
22
  }
21
23
 
22
- :host([hidden]) {
23
- display: none !important;
24
- }
25
-
26
- .announcer {
27
- position: fixed;
28
- clip: rect(0, 0, 0, 0);
29
- }
30
-
31
- input[type='file'] {
32
- display: none;
33
- }
34
-
35
- .vaadin-rich-text-editor-container {
36
- display: flex;
37
- flex-direction: column;
38
- min-height: inherit;
39
- max-height: inherit;
40
- flex: auto;
24
+ :host(:focus-within) {
25
+ outline: none;
41
26
  }
42
27
 
43
28
  [part='content'] {
44
- box-sizing: border-box;
45
- position: relative;
46
- flex: auto;
47
- display: flex;
48
- flex-direction: column;
49
- overflow: hidden;
50
29
  background-color: var(--lumo-base-color);
51
30
  }
52
31
 
53
32
  [part='toolbar'] {
54
- display: flex;
55
- flex-wrap: wrap;
56
- flex-shrink: 0;
57
33
  background-color: var(--lumo-contrast-5pct);
58
34
  padding: calc(var(--lumo-space-s) - 1px) var(--lumo-space-xs);
35
+ gap: 0;
59
36
  }
60
37
 
61
38
  [part~='toolbar-button'] {
@@ -65,7 +42,6 @@
65
42
  text-transform: none;
66
43
  background: transparent;
67
44
  border: none;
68
- position: relative;
69
45
  width: var(--lumo-size-m);
70
46
  height: var(--lumo-size-m);
71
47
  border-radius: var(--lumo-border-radius-m);
@@ -77,24 +53,12 @@
77
53
  color 100ms;
78
54
  }
79
55
 
80
- [part~='toolbar-button']:hover {
56
+ [part~='toolbar-button']:not([part~='toolbar-button-pressed']):hover {
81
57
  outline: none;
82
58
  background-color: var(--lumo-contrast-5pct);
83
59
  color: var(--lumo-contrast-80pct);
84
60
  }
85
61
 
86
- @media (forced-colors: active) {
87
- [part~='toolbar-button']:focus,
88
- [part~='toolbar-button']:hover {
89
- outline: 1px solid !important;
90
- }
91
-
92
- [part~='toolbar-button'][on] {
93
- outline: 2px solid;
94
- outline-offset: -1px;
95
- }
96
- }
97
-
98
62
  [part~='toolbar-button']::before {
99
63
  position: absolute;
100
64
  top: 50%;
@@ -102,10 +66,13 @@
102
66
  transform: translate(-50%, -50%);
103
67
  font-family: 'lumo-icons', var(--lumo-font-family);
104
68
  font-size: var(--lumo-icon-size-m);
69
+ mask-image: none;
70
+ background: transparent;
71
+ height: auto;
72
+ width: auto;
105
73
  }
106
74
 
107
75
  [part~='toolbar-group'] {
108
- display: flex;
109
76
  margin: 0 0.5em;
110
77
  margin: 0 calc(var(--lumo-space-l) / 2 - 1px);
111
78
  }
@@ -196,15 +163,20 @@
196
163
  font-size: 1em;
197
164
  }
198
165
 
166
+ [part~='toolbar-button-color']::after,
167
+ [part~='toolbar-button-background']::after {
168
+ width: auto;
169
+ height: auto;
170
+ mask-image: none;
171
+ transform: none;
172
+ }
173
+
199
174
  [part~='toolbar-button-color']::after {
200
- content: '';
201
- position: absolute;
202
175
  bottom: 4px;
203
176
  left: 25%;
204
177
  right: 25%;
205
178
  width: 50%;
206
179
  height: 4px;
207
- background-color: var(--_color-value, currentColor);
208
180
  }
209
181
 
210
182
  [part~='toolbar-button-background']::before {
@@ -226,17 +198,6 @@
226
198
  );
227
199
  }
228
200
 
229
- :host([readonly]) [part='toolbar'] {
230
- display: none;
231
- }
232
-
233
- :host([disabled]) {
234
- pointer-events: none;
235
- opacity: 0.5;
236
- -webkit-user-select: none;
237
- user-select: none;
238
- }
239
-
240
201
  :host([disabled]) [part~='toolbar-button'] {
241
202
  background-color: transparent;
242
203
  }
@@ -253,12 +214,12 @@
253
214
  }
254
215
  }
255
216
 
256
- [part~='toolbar-button'][on] {
217
+ [part~='toolbar-button-pressed'] {
257
218
  background-color: var(--vaadin-selection-color, var(--lumo-primary-color));
258
219
  color: var(--lumo-primary-contrast-color);
259
220
  }
260
221
 
261
- [part~='toolbar-button']:active {
222
+ [part~='toolbar-button']:not([part~='toolbar-button-pressed']):active {
262
223
  background-color: var(--lumo-contrast-10pct);
263
224
  color: var(--lumo-contrast-90pct);
264
225
  }
@@ -301,6 +262,14 @@
301
262
  content: var(--lumo-icons-unordered-list);
302
263
  }
303
264
 
265
+ [part~='toolbar-button-outdent']::before {
266
+ content: var(--lumo-icons-outdent);
267
+ }
268
+
269
+ [part~='toolbar-button-indent']::before {
270
+ content: var(--lumo-icons-indent);
271
+ }
272
+
304
273
  [part~='toolbar-button-align-left']::before {
305
274
  content: var(--lumo-icons-align-left);
306
275
  }
@@ -326,12 +295,6 @@
326
295
  font-size: var(--lumo-font-size-l);
327
296
  }
328
297
 
329
- /* TODO unsupported selector */
330
- [part='content'] > .ql-editor {
331
- padding: 0 var(--lumo-space-m);
332
- line-height: inherit;
333
- }
334
-
335
298
  /* Theme variants */
336
299
 
337
300
  /* No border */
@@ -370,89 +333,29 @@
370
333
  margin: 0 calc(var(--lumo-space-m) / 2 - 1px);
371
334
  }
372
335
 
373
- /*
374
- Quill core styles.
375
- CSS selectors removed: margin & padding reset, check list, indentation, video, colors, ordered & unordered list, h1-6, anchor
376
- */
377
- .ql-clipboard {
378
- left: -100000px;
379
- height: 1px;
380
- overflow-y: hidden;
381
- position: absolute;
382
- top: 50%;
383
- }
384
-
385
- .ql-clipboard p {
386
- margin: 0;
387
- padding: 0;
388
- }
389
-
390
336
  .ql-editor {
391
- box-sizing: border-box;
392
- line-height: 1.42;
393
- height: 100%;
394
- outline: none;
395
- overflow-y: auto;
396
- padding: 0.75em 1em;
397
- -moz-tab-size: 4;
398
- tab-size: 4;
399
- text-align: left;
400
- white-space: pre-wrap;
401
- word-wrap: break-word;
402
- flex: 1;
403
- }
404
-
405
- .ql-editor > * {
406
- cursor: text;
407
- }
408
-
409
- .ql-align-left {
410
- text-align: left;
411
- }
412
-
413
- .ql-direction-rtl {
414
- direction: rtl;
415
- text-align: inherit;
416
- }
417
-
418
- .ql-align-center {
419
- text-align: center;
337
+ color: inherit;
338
+ padding: var(--lumo-space-s) var(--lumo-space-m);
420
339
  }
421
340
 
422
- .ql-align-justify {
423
- text-align: justify;
424
- }
425
-
426
- .ql-align-right {
427
- text-align: right;
341
+ .ql-code-block-container {
342
+ background-color: var(--lumo-contrast-10pct);
343
+ border-radius: var(--lumo-border-radius-m);
344
+ margin-block: 0.3125em;
345
+ padding: 0.3125em 0.625em;
428
346
  }
429
- /* quill core end */
430
347
 
431
348
  blockquote {
432
349
  padding-left: 1em;
433
- }
434
-
435
- code,
436
- pre {
437
- background-color: #f0f0f0;
438
- }
439
-
440
- pre {
441
- white-space: pre-wrap;
442
- margin-bottom: 0.3125em;
443
- margin-top: 0.3125em;
444
- padding: 0.3125em 0.625em;
350
+ margin-inline: 40px;
445
351
  }
446
352
 
447
353
  code {
354
+ background-color: var(--lumo-contrast-10pct);
448
355
  font-size: 85%;
449
356
  padding: 0.125em 0.25em;
450
357
  }
451
358
 
452
- img {
453
- max-width: 100%;
454
- }
455
-
456
359
  :where(h1, h2, h3, h4, h5, h6) {
457
360
  margin-top: 1.25em;
458
361
  }
@@ -470,11 +373,6 @@
470
373
  }
471
374
 
472
375
  /* RTL specific styles */
473
- :host([dir='rtl']) .ql-editor {
474
- direction: rtl;
475
- text-align: right;
476
- }
477
-
478
376
  :host([dir='rtl']) [part~='toolbar-button-redo']::before {
479
377
  content: var(--lumo-icons-undo);
480
378
  }
@@ -5,36 +5,17 @@
5
5
  */
6
6
  @media lumo_components_scroller {
7
7
  :host {
8
- outline: none;
9
8
  --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
10
9
  --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
11
10
  }
12
11
 
13
12
  :host([focus-ring]) {
13
+ outline: none;
14
14
  box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
15
15
  }
16
16
 
17
- /* Show dividers when content overflows */
18
-
19
- :host([theme~='overflow-indicators'])::before,
20
- :host([theme~='overflow-indicators'])::after {
21
- content: '';
22
- display: none;
23
- position: sticky;
24
- inset: 0;
25
- z-index: 9999;
26
- height: 1px;
27
- margin-bottom: -1px;
17
+ :host([theme*='overflow-indicator'])::before,
18
+ :host([theme*='overflow-indicator'])::after {
28
19
  background: var(--lumo-contrast-10pct);
29
20
  }
30
-
31
- :host([theme~='overflow-indicators'])::after {
32
- margin-bottom: 0;
33
- margin-top: -1px;
34
- }
35
-
36
- :host([theme~='overflow-indicators'][overflow~='top'])::before,
37
- :host([theme~='overflow-indicators'][overflow~='bottom'])::after {
38
- display: block;
39
- }
40
21
  }
@@ -44,12 +44,12 @@
44
44
  opacity: 0;
45
45
  }
46
46
 
47
- [part='toggle-button']::before {
47
+ [part~='toggle-button']::before {
48
48
  content: var(--lumo-icons-dropdown);
49
49
  }
50
50
 
51
51
  /* Highlight the toggle button when hovering over the entire component */
52
- :host(:hover:not([readonly]):not([disabled])) [part='toggle-button'] {
52
+ :host(:hover:not([readonly]):not([disabled])) [part~='toggle-button'] {
53
53
  color: var(--lumo-contrast-80pct);
54
54
  }
55
55
 
@@ -57,4 +57,17 @@
57
57
  --_lumo-selected-item-height: var(--lumo-size-s);
58
58
  --_lumo-selected-item-padding: 0;
59
59
  }
60
+
61
+ .sr-only {
62
+ border: 0 !important;
63
+ clip: rect(1px, 1px, 1px, 1px) !important;
64
+ clip-path: inset(50%) !important;
65
+ height: 1px !important;
66
+ margin: -1px !important;
67
+ overflow: hidden !important;
68
+ padding: 0 !important;
69
+ position: absolute !important;
70
+ width: 1px !important;
71
+ white-space: nowrap !important;
72
+ }
60
73
  }
@@ -167,4 +167,17 @@
167
167
  color: var(--vaadin-selection-color-text, var(--lumo-primary-text-color));
168
168
  border-radius: var(--lumo-border-radius-m);
169
169
  }
170
+
171
+ .sr-only {
172
+ border: 0 !important;
173
+ clip: rect(1px, 1px, 1px, 1px) !important;
174
+ clip-path: inset(50%) !important;
175
+ height: 1px !important;
176
+ margin: -1px !important;
177
+ overflow: hidden !important;
178
+ padding: 0 !important;
179
+ position: absolute !important;
180
+ width: 1px !important;
181
+ white-space: nowrap !important;
182
+ }
170
183
  }