@vaadin/vaadin-lumo-styles 25.0.0-alpha1 → 25.0.0-alpha11
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/auto-complete.css +3 -73
- package/components/accordion-heading.css +14 -0
- package/components/accordion-panel.css +15 -0
- package/components/accordion.css +7 -0
- package/components/app-layout.css +11 -0
- package/components/avatar-group.css +31 -0
- package/components/avatar.css +17 -0
- package/components/button.css +11 -0
- package/components/card.css +50 -0
- package/components/charts.css +11 -0
- package/components/checkbox-group.css +23 -0
- package/components/checkbox.css +14 -0
- package/components/combo-box.css +47 -0
- package/components/confirm-dialog.css +17 -0
- package/components/context-menu.css +32 -0
- package/components/crud.css +40 -0
- package/components/custom-field.css +20 -0
- package/components/dashboard.css +34 -0
- package/components/date-picker.css +49 -0
- package/components/date-time-picker.css +28 -0
- package/components/details-summary.css +11 -0
- package/components/details.css +12 -0
- package/components/dialog.css +16 -0
- package/components/drawer-toggle.css +14 -0
- package/components/email-field.css +25 -0
- package/components/field-highlighter.css +22 -0
- package/components/form-item.css +11 -0
- package/components/form-layout.css +11 -0
- package/components/grid-filter-column.css +6 -0
- package/components/grid-filter.css +12 -0
- package/components/grid-pro-edit-column.css +48 -0
- package/components/grid-pro.css +14 -0
- package/components/grid-selection-column.css +6 -0
- package/components/grid-sort-column.css +6 -0
- package/components/grid-sorter.css +19 -0
- package/components/grid-tree-column.css +6 -0
- package/components/grid-tree-toggle.css +11 -0
- package/components/grid.css +11 -0
- package/components/horizontal-layout.css +11 -0
- package/components/icon.css +11 -0
- package/components/input-container.css +11 -0
- package/components/integer-field.css +25 -0
- package/components/item.css +11 -0
- package/components/list-box.css +11 -0
- package/components/login-form.css +14 -0
- package/components/login.css +15 -0
- package/components/map.css +11 -0
- package/components/master-detail-layout.css +19 -0
- package/components/menu-bar.css +47 -0
- package/components/message-input.css +13 -0
- package/components/message-list.css +6 -0
- package/components/message.css +12 -0
- package/components/multi-select-combo-box.css +61 -0
- package/components/notification.css +15 -0
- package/components/number-field.css +25 -0
- package/components/overlay.css +11 -0
- package/components/password-field.css +32 -0
- package/components/popover.css +14 -0
- package/components/progress-bar.css +11 -0
- package/components/radio-button.css +14 -0
- package/components/radio-group.css +23 -0
- package/components/rich-text-editor.css +26 -0
- package/components/scroller.css +11 -0
- package/components/select.css +48 -0
- package/components/side-nav-item.css +14 -0
- package/components/side-nav.css +12 -0
- package/components/split-layout.css +11 -0
- package/components/tab.css +11 -0
- package/components/tabs.css +12 -0
- package/components/tabsheet.css +19 -0
- package/components/text-area.css +25 -0
- package/components/text-field.css +23 -0
- package/components/time-picker.css +43 -0
- package/components/tooltip.css +14 -0
- package/components/upload.css +28 -0
- package/components/vertical-layout.css +11 -0
- package/components.css +71 -0
- package/font-icons.js +28 -26
- package/global.css +8 -0
- package/lumo.css +8 -0
- package/mixins/input-field-shared.js +1 -2
- package/mixins/menu-overlay.js +0 -2
- package/mixins/required-field.js +0 -1
- package/package.json +16 -12
- package/props.css +12 -0
- package/src/components/accordion-heading.css +42 -0
- package/src/components/accordion-panel.css +38 -0
- package/src/components/app-layout.css +193 -0
- package/src/components/avatar-group-menu-item.css +22 -0
- package/src/components/avatar-group-overlay.css +11 -0
- package/src/components/avatar-group.css +67 -0
- package/src/components/avatar.css +86 -0
- package/src/components/button.css +334 -0
- package/src/components/card.css +38 -0
- package/src/components/chart.css +85 -0
- package/src/components/checkbox-group.css +18 -0
- package/src/components/checkbox.css +341 -0
- package/src/components/combo-box-item.css +18 -0
- package/src/components/combo-box-overlay.css +15 -0
- package/src/components/combo-box.css +14 -0
- package/src/components/confirm-dialog-overlay.css +59 -0
- package/src/components/context-menu-item.css +39 -0
- package/src/components/context-menu-list-box.css +40 -0
- package/src/components/context-menu-overlay.css +41 -0
- package/src/components/crud-dialog-overlay.css +57 -0
- package/src/components/crud-edit.css +30 -0
- package/src/components/crud.css +157 -0
- package/src/components/custom-field.css +102 -0
- package/src/components/dashboard-layout.css +94 -0
- package/src/components/dashboard-section.css +113 -0
- package/src/components/dashboard-widget.css +224 -0
- package/src/components/dashboard.css +23 -0
- package/src/components/date-picker-month-calendar.css +192 -0
- package/src/components/date-picker-overlay-content.css +161 -0
- package/src/components/date-picker-overlay.css +60 -0
- package/src/components/date-picker-year.css +35 -0
- package/src/components/date-picker.css +41 -0
- package/src/components/date-time-picker.css +36 -0
- package/src/components/details-summary.css +131 -0
- package/src/components/details.css +37 -0
- package/src/components/dialog-overlay.css +163 -0
- package/src/components/drawer-toggle.css +51 -0
- package/src/components/email-field.css +26 -0
- package/src/components/field-outline.css +51 -0
- package/src/components/form-item.css +36 -0
- package/src/components/form-layout.css +12 -0
- package/src/components/grid-filter.css +16 -0
- package/src/components/grid-pro-edit-select.css +19 -0
- package/src/components/grid-pro.css +84 -0
- package/src/components/grid-sorter.css +70 -0
- package/src/components/grid-tree-toggle.css +104 -0
- package/src/components/grid.css +755 -0
- package/src/components/horizontal-layout.css +34 -0
- package/src/components/icon.css +11 -0
- package/src/components/input-container.css +228 -0
- package/src/components/item.css +94 -0
- package/src/components/list-box.css +31 -0
- package/src/components/login-form-wrapper.css +113 -0
- package/src/components/login-overlay-wrapper.css +189 -0
- package/src/components/map.css +182 -0
- package/src/components/menu-bar-button.css +128 -0
- package/src/components/menu-bar-item.css +23 -0
- package/src/components/menu-bar-overlay.css +10 -0
- package/src/components/menu-bar.css +31 -0
- package/src/components/message-input.css +30 -0
- package/src/components/message.css +82 -0
- package/src/components/multi-select-combo-box-chip.css +113 -0
- package/src/components/multi-select-combo-box-container.css +20 -0
- package/src/components/multi-select-combo-box-item.css +13 -0
- package/src/components/multi-select-combo-box-overlay.css +18 -0
- package/src/components/multi-select-combo-box.css +102 -0
- package/src/components/notification-card.css +228 -0
- package/src/components/notification-container.css +60 -0
- package/src/components/number-field.css +53 -0
- package/src/components/password-field-button.css +19 -0
- package/src/components/password-field.css +24 -0
- package/src/components/popover-overlay.css +156 -0
- package/src/components/progress-bar.css +295 -0
- package/src/components/radio-button.css +156 -0
- package/src/components/radio-group.css +18 -0
- package/src/components/rich-text-editor-popup-overlay.css +27 -0
- package/src/components/rich-text-editor.css +485 -0
- package/src/components/scroller.css +40 -0
- package/src/components/select-overlay.css +54 -0
- package/src/components/select-value-button.css +57 -0
- package/src/components/select.css +60 -0
- package/src/components/side-nav-item.css +170 -0
- package/src/components/side-nav.css +102 -0
- package/src/components/split-layout.css +131 -0
- package/src/components/tab.css +246 -0
- package/src/components/tabs.css +285 -0
- package/src/components/tabsheet.css +59 -0
- package/src/components/text-area.css +116 -0
- package/src/components/time-picker-overlay.css +15 -0
- package/src/components/time-picker.css +36 -0
- package/src/components/tooltip-overlay.css +50 -0
- package/src/components/upload-file-list.css +24 -0
- package/src/components/upload-file.css +133 -0
- package/src/components/upload-icon.css +20 -0
- package/src/components/upload.css +56 -0
- package/src/components/user-tag.css +48 -0
- package/src/components/user-tags-overlay.css +64 -0
- package/src/components/vertical-layout.css +34 -0
- package/src/global/badge.css +167 -0
- package/src/global/color-scheme.css +99 -0
- package/src/global/typography.css +113 -0
- package/src/mixins/checkable-field.css +67 -0
- package/src/mixins/combo-box-loader.css +14 -0
- package/src/mixins/combo-box-overlay.css +30 -0
- package/src/mixins/dashboard-item.css +252 -0
- package/src/mixins/field-base.css +187 -0
- package/src/mixins/field-button.css +46 -0
- package/src/mixins/field-error-message.css +36 -0
- package/src/mixins/field-helper.css +62 -0
- package/src/mixins/field-label.css +62 -0
- package/src/mixins/field-required.css +26 -0
- package/src/mixins/grid-pro-editor.css +35 -0
- package/src/mixins/group-field.css +58 -0
- package/src/mixins/loader.css +48 -0
- package/src/mixins/menu-overlay-core.css +36 -0
- package/src/mixins/menu-overlay-ext.css +63 -0
- package/src/mixins/overlay.css +121 -0
- package/src/mixins/resizable-overlay.css +100 -0
- package/src/props/color.css +98 -0
- package/src/props/icons.css +61 -0
- package/src/props/reset.css +11 -0
- package/src/props/sizing.css +19 -0
- package/src/props/spacing.css +27 -0
- package/src/props/style.css +21 -0
- package/src/props/typography.css +24 -0
- package/src/utilities/accessibility.css +17 -0
- package/src/utilities/background.css +189 -0
- package/src/utilities/border.css +173 -0
- package/src/utilities/filter.css +37 -0
- package/src/utilities/flexbox-grid.css +781 -0
- package/src/utilities/layout.css +629 -0
- package/src/utilities/shadows.css +29 -0
- package/src/utilities/sizing.css +142 -0
- package/src/utilities/spacing.css +682 -0
- package/src/utilities/transition.css +46 -0
- package/src/utilities/typography.css +424 -0
- package/style.d.ts +0 -2
- package/style.js +1 -89
- package/utilities/transition.js +3 -2
- package/utility.css +17 -0
- package/vaadin-iconset.js +2 -0
|
@@ -0,0 +1,485 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2000 - 2025 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
@media lumo_components_rich-text-editor {
|
|
7
|
+
:host {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
min-height: calc(var(--lumo-size-m) * 8);
|
|
12
|
+
font-family: var(--lumo-font-family);
|
|
13
|
+
font-size: var(--lumo-font-size-m);
|
|
14
|
+
line-height: var(--lumo-line-height-m);
|
|
15
|
+
-webkit-text-size-adjust: 100%;
|
|
16
|
+
-webkit-font-smoothing: antialiased;
|
|
17
|
+
-moz-osx-font-smoothing: grayscale;
|
|
18
|
+
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
19
|
+
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
20
|
+
}
|
|
21
|
+
|
|
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;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[part='content'] {
|
|
44
|
+
box-sizing: border-box;
|
|
45
|
+
position: relative;
|
|
46
|
+
flex: auto;
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
background-color: var(--lumo-base-color);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
[part='toolbar'] {
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-wrap: wrap;
|
|
56
|
+
flex-shrink: 0;
|
|
57
|
+
background-color: var(--lumo-contrast-5pct);
|
|
58
|
+
padding: calc(var(--lumo-space-s) - 1px) var(--lumo-space-xs);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
[part~='toolbar-button'] {
|
|
62
|
+
padding: 0;
|
|
63
|
+
font: inherit;
|
|
64
|
+
line-height: 1;
|
|
65
|
+
text-transform: none;
|
|
66
|
+
background: transparent;
|
|
67
|
+
border: none;
|
|
68
|
+
position: relative;
|
|
69
|
+
width: var(--lumo-size-m);
|
|
70
|
+
height: var(--lumo-size-m);
|
|
71
|
+
border-radius: var(--lumo-border-radius-m);
|
|
72
|
+
color: var(--lumo-contrast-60pct);
|
|
73
|
+
margin: 2px 1px;
|
|
74
|
+
cursor: var(--lumo-clickable-cursor);
|
|
75
|
+
transition:
|
|
76
|
+
background-color 100ms,
|
|
77
|
+
color 100ms;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
[part~='toolbar-button']:hover {
|
|
81
|
+
outline: none;
|
|
82
|
+
background-color: var(--lumo-contrast-5pct);
|
|
83
|
+
color: var(--lumo-contrast-80pct);
|
|
84
|
+
}
|
|
85
|
+
|
|
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
|
+
[part~='toolbar-button']::before {
|
|
99
|
+
position: absolute;
|
|
100
|
+
top: 50%;
|
|
101
|
+
left: 50%;
|
|
102
|
+
transform: translate(-50%, -50%);
|
|
103
|
+
font-family: 'lumo-icons', var(--lumo-font-family);
|
|
104
|
+
font-size: var(--lumo-icon-size-m);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
[part~='toolbar-group'] {
|
|
108
|
+
display: flex;
|
|
109
|
+
margin: 0 0.5em;
|
|
110
|
+
margin: 0 calc(var(--lumo-space-l) / 2 - 1px);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
[part~='toolbar-button-bold']::before {
|
|
114
|
+
content: 'B';
|
|
115
|
+
font-weight: 700;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
[part~='toolbar-button-italic']::before {
|
|
119
|
+
content: 'I';
|
|
120
|
+
font-style: italic;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
[part~='toolbar-button-underline']::before {
|
|
124
|
+
content: 'U';
|
|
125
|
+
text-decoration: underline;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
[part~='toolbar-button-strike']::before {
|
|
129
|
+
content: 'T';
|
|
130
|
+
text-decoration: line-through;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
[part~='toolbar-button-h1']::before {
|
|
134
|
+
content: 'H1';
|
|
135
|
+
font-size: 1.25em;
|
|
136
|
+
font-size: var(--lumo-font-size-m);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
[part~='toolbar-button-h2']::before {
|
|
140
|
+
content: 'H2';
|
|
141
|
+
font-size: 1em;
|
|
142
|
+
font-size: var(--lumo-font-size-s);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
[part~='toolbar-button-h3']::before {
|
|
146
|
+
content: 'H3';
|
|
147
|
+
font-size: 0.875em;
|
|
148
|
+
font-size: var(--lumo-font-size-xs);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
[part~='toolbar-button-h1']::before,
|
|
152
|
+
[part~='toolbar-button-h2']::before,
|
|
153
|
+
[part~='toolbar-button-h3']::before {
|
|
154
|
+
letter-spacing: -0.05em;
|
|
155
|
+
font-weight: 600;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
[part~='toolbar-button-subscript']::before,
|
|
159
|
+
[part~='toolbar-button-superscript']::before {
|
|
160
|
+
content: 'X';
|
|
161
|
+
font-weight: 600;
|
|
162
|
+
font-size: var(--lumo-font-size-s);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
[part~='toolbar-button-subscript']::after,
|
|
166
|
+
[part~='toolbar-button-superscript']::after {
|
|
167
|
+
content: '2';
|
|
168
|
+
position: absolute;
|
|
169
|
+
top: 50%;
|
|
170
|
+
left: 70%;
|
|
171
|
+
font-size: 0.625em;
|
|
172
|
+
font-weight: 700;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
[part~='toolbar-button-superscript']::after {
|
|
176
|
+
top: 20%;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
[part~='toolbar-button-blockquote']::before {
|
|
180
|
+
content: '”';
|
|
181
|
+
height: 0.6em;
|
|
182
|
+
font-size: var(--lumo-font-size-xxl);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
[part~='toolbar-button-code-block']::before {
|
|
186
|
+
content: var(--lumo-icons-angle-left) var(--lumo-icons-angle-right);
|
|
187
|
+
font-size: var(--lumo-font-size-l);
|
|
188
|
+
letter-spacing: -0.5em;
|
|
189
|
+
margin-left: -0.25em;
|
|
190
|
+
font-weight: 600;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
[part~='toolbar-button-background']::before,
|
|
194
|
+
[part~='toolbar-button-color']::before {
|
|
195
|
+
content: 'A';
|
|
196
|
+
font-size: 1em;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
[part~='toolbar-button-color']::after {
|
|
200
|
+
content: '';
|
|
201
|
+
position: absolute;
|
|
202
|
+
bottom: 4px;
|
|
203
|
+
left: 25%;
|
|
204
|
+
right: 25%;
|
|
205
|
+
width: 50%;
|
|
206
|
+
height: 4px;
|
|
207
|
+
background-color: var(--_color-value, currentColor);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
[part~='toolbar-button-background']::before {
|
|
211
|
+
z-index: 1;
|
|
212
|
+
background-color: var(--lumo-base-color);
|
|
213
|
+
background-image: linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct));
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
[part~='toolbar-button-background']::after {
|
|
217
|
+
content: '';
|
|
218
|
+
position: absolute;
|
|
219
|
+
inset: 20%;
|
|
220
|
+
background: repeating-linear-gradient(
|
|
221
|
+
135deg,
|
|
222
|
+
var(--_background-value, currentColor),
|
|
223
|
+
var(--_background-value, currentColor) 1px,
|
|
224
|
+
transparent 1px,
|
|
225
|
+
transparent 2px
|
|
226
|
+
);
|
|
227
|
+
}
|
|
228
|
+
|
|
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
|
+
:host([disabled]) [part~='toolbar-button'] {
|
|
241
|
+
background-color: transparent;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
[part~='toolbar-button']:focus,
|
|
245
|
+
[part~='toolbar-button'][aria-expanded='true'] {
|
|
246
|
+
outline: none;
|
|
247
|
+
box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
@media (hover: none) {
|
|
251
|
+
[part~='toolbar-button']:hover {
|
|
252
|
+
background-color: transparent;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
[part~='toolbar-button'][on] {
|
|
257
|
+
background-color: var(--vaadin-selection-color, var(--lumo-primary-color));
|
|
258
|
+
color: var(--lumo-primary-contrast-color);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
[part~='toolbar-button']:active {
|
|
262
|
+
background-color: var(--lumo-contrast-10pct);
|
|
263
|
+
color: var(--lumo-contrast-90pct);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
[part~='toolbar-button-undo']::before {
|
|
267
|
+
content: var(--lumo-icons-undo);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
[part~='toolbar-button-redo']::before {
|
|
271
|
+
content: var(--lumo-icons-redo);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
[part~='toolbar-button-bold']::before,
|
|
275
|
+
[part~='toolbar-button-background']::before,
|
|
276
|
+
[part~='toolbar-button-color']::before,
|
|
277
|
+
[part~='toolbar-button-italic']::before,
|
|
278
|
+
[part~='toolbar-button-underline']::before,
|
|
279
|
+
[part~='toolbar-button-strike']::before {
|
|
280
|
+
font-size: var(--lumo-font-size-m);
|
|
281
|
+
font-weight: 600;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
[part~='toolbar-button-background']:hover::before {
|
|
285
|
+
background-image:
|
|
286
|
+
linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct)),
|
|
287
|
+
linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct));
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
[part~='toolbar-button-background']:active::before {
|
|
291
|
+
background-image:
|
|
292
|
+
linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct)),
|
|
293
|
+
linear-gradient(var(--lumo-contrast-10pct), var(--lumo-contrast-10pct));
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
[part~='toolbar-button-list-ordered']::before {
|
|
297
|
+
content: var(--lumo-icons-ordered-list);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
[part~='toolbar-button-list-bullet']::before {
|
|
301
|
+
content: var(--lumo-icons-unordered-list);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
[part~='toolbar-button-align-left']::before {
|
|
305
|
+
content: var(--lumo-icons-align-left);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
[part~='toolbar-button-align-center']::before {
|
|
309
|
+
content: var(--lumo-icons-align-center);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
[part~='toolbar-button-align-right']::before {
|
|
313
|
+
content: var(--lumo-icons-align-right);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
[part~='toolbar-button-image']::before {
|
|
317
|
+
content: var(--lumo-icons-photo);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
[part~='toolbar-button-link']::before {
|
|
321
|
+
content: var(--lumo-icons-link);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
[part~='toolbar-button-clean']::before {
|
|
325
|
+
content: var(--lumo-icons-clean);
|
|
326
|
+
font-size: var(--lumo-font-size-l);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/* TODO unsupported selector */
|
|
330
|
+
[part='content'] > .ql-editor {
|
|
331
|
+
padding: 0 var(--lumo-space-m);
|
|
332
|
+
line-height: inherit;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/* Theme variants */
|
|
336
|
+
|
|
337
|
+
/* No border */
|
|
338
|
+
:host(:not([theme~='no-border'])) {
|
|
339
|
+
border: 1px solid var(--lumo-contrast-20pct);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
:host(:not([theme~='no-border']):not([readonly])) [part='content'] {
|
|
343
|
+
border-top: 1px solid var(--lumo-contrast-20pct);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
:host([theme~='no-border']) [part='toolbar'] {
|
|
347
|
+
padding-top: var(--lumo-space-s);
|
|
348
|
+
padding-bottom: var(--lumo-space-s);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/* Compact */
|
|
352
|
+
:host([theme~='compact']) {
|
|
353
|
+
min-height: calc(var(--lumo-size-m) * 6);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
:host([theme~='compact']) [part='toolbar'] {
|
|
357
|
+
padding: var(--lumo-space-xs) 0;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
:host([theme~='compact'][theme~='no-border']) [part='toolbar'] {
|
|
361
|
+
padding: calc(var(--lumo-space-xs) + 1px) 0;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
:host([theme~='compact']) [part~='toolbar-button'] {
|
|
365
|
+
width: var(--lumo-size-s);
|
|
366
|
+
height: var(--lumo-size-s);
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
:host([theme~='compact']) [part~='toolbar-group'] {
|
|
370
|
+
margin: 0 calc(var(--lumo-space-m) / 2 - 1px);
|
|
371
|
+
}
|
|
372
|
+
|
|
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
|
+
.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;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.ql-align-justify {
|
|
423
|
+
text-align: justify;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.ql-align-right {
|
|
427
|
+
text-align: right;
|
|
428
|
+
}
|
|
429
|
+
/* quill core end */
|
|
430
|
+
|
|
431
|
+
blockquote {
|
|
432
|
+
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;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
code {
|
|
448
|
+
font-size: 85%;
|
|
449
|
+
padding: 0.125em 0.25em;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
img {
|
|
453
|
+
max-width: 100%;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
:where(h1, h2, h3, h4, h5, h6) {
|
|
457
|
+
margin-top: 1.25em;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
:where(h1) {
|
|
461
|
+
margin-bottom: 0.75em;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
:where(h2, h3, h4) {
|
|
465
|
+
margin-bottom: 0.5em;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
:where(h5) {
|
|
469
|
+
margin-bottom: 0.25em;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
/* RTL specific styles */
|
|
473
|
+
:host([dir='rtl']) .ql-editor {
|
|
474
|
+
direction: rtl;
|
|
475
|
+
text-align: right;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
:host([dir='rtl']) [part~='toolbar-button-redo']::before {
|
|
479
|
+
content: var(--lumo-icons-undo);
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
:host([dir='rtl']) [part~='toolbar-button-undo']::before {
|
|
483
|
+
content: var(--lumo-icons-redo);
|
|
484
|
+
}
|
|
485
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2000 - 2025 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
@media lumo_components_scroller {
|
|
7
|
+
:host {
|
|
8
|
+
outline: none;
|
|
9
|
+
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
10
|
+
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:host([focus-ring]) {
|
|
14
|
+
box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
15
|
+
}
|
|
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;
|
|
28
|
+
background: var(--lumo-contrast-10pct);
|
|
29
|
+
}
|
|
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
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2017 - 2025 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
@media lumo_components_select-overlay {
|
|
7
|
+
:host {
|
|
8
|
+
align-items: flex-start;
|
|
9
|
+
justify-content: flex-start;
|
|
10
|
+
--_lumo-item-selected-icon-display: block;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* Small viewport adjustment */
|
|
14
|
+
:host([phone]) {
|
|
15
|
+
/* stylelint-disable declaration-block-no-redundant-longhand-properties */
|
|
16
|
+
top: 0 !important;
|
|
17
|
+
right: 0 !important;
|
|
18
|
+
bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
|
|
19
|
+
left: 0 !important;
|
|
20
|
+
/* stylelint-enable declaration-block-no-redundant-longhand-properties */
|
|
21
|
+
align-items: stretch;
|
|
22
|
+
justify-content: flex-end;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:host(:not([phone])) [part='overlay'] {
|
|
26
|
+
min-width: var(--vaadin-select-overlay-width, var(--_vaadin-select-overlay-default-width));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host([no-vertical-overlap][top-aligned]) [part='overlay'] {
|
|
30
|
+
margin-block-start: var(--lumo-space-xs);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:host([no-vertical-overlap][bottom-aligned]) [part='overlay'] {
|
|
34
|
+
margin-block-end: var(--lumo-space-xs);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:host([theme~='align-left']) {
|
|
38
|
+
text-align: left;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:host([theme~='align-right']) {
|
|
42
|
+
text-align: right;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:host([theme~='align-center']) {
|
|
46
|
+
text-align: center;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@media (forced-colors: active) {
|
|
50
|
+
[part='overlay'] {
|
|
51
|
+
outline: 3px solid;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2017 - 2025 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
@media lumo_components_select-value-button {
|
|
7
|
+
:host {
|
|
8
|
+
display: inline-block;
|
|
9
|
+
position: relative;
|
|
10
|
+
outline: none;
|
|
11
|
+
white-space: nowrap;
|
|
12
|
+
-webkit-user-select: none;
|
|
13
|
+
user-select: none;
|
|
14
|
+
min-width: 0;
|
|
15
|
+
width: 0;
|
|
16
|
+
font-family: var(--lumo-font-family);
|
|
17
|
+
font-size: var(--vaadin-input-field-value-font-size, var(--lumo-font-size-m));
|
|
18
|
+
padding: 0 0.25em;
|
|
19
|
+
--_lumo-selected-item-height: var(--lumo-size-m);
|
|
20
|
+
--_lumo-selected-item-padding: 0.5em;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
::slotted(*) {
|
|
24
|
+
padding: var(--_lumo-selected-item-padding) 0 var(--_lumo-selected-item-padding) 0;
|
|
25
|
+
flex: auto;
|
|
26
|
+
min-height: var(--_lumo-selected-item-height);
|
|
27
|
+
font-size: inherit;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
::slotted(*:hover) {
|
|
31
|
+
background-color: transparent;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* placeholder styles */
|
|
35
|
+
::slotted(*:not([selected])) {
|
|
36
|
+
line-height: 1;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.vaadin-button-container {
|
|
40
|
+
display: inline-flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
text-align: inherit;
|
|
44
|
+
width: 100%;
|
|
45
|
+
height: 100%;
|
|
46
|
+
min-height: inherit;
|
|
47
|
+
text-shadow: inherit;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
[part='label'] {
|
|
51
|
+
white-space: nowrap;
|
|
52
|
+
overflow: hidden;
|
|
53
|
+
text-overflow: ellipsis;
|
|
54
|
+
width: 100%;
|
|
55
|
+
line-height: inherit;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2017 - 2025 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
@media lumo_components_select {
|
|
7
|
+
:host {
|
|
8
|
+
position: relative;
|
|
9
|
+
/* Disable pointer focus-ring for select, not supported yet */
|
|
10
|
+
--lumo-input-field-pointer-focus-visible: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
::slotted(div[slot='overlay']) {
|
|
14
|
+
display: contents;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:host(:not([theme*='align'])) ::slotted([slot='value']) {
|
|
18
|
+
text-align: start;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
[part='input-field'] {
|
|
22
|
+
cursor: var(--lumo-clickable-cursor);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
[part='input-field'] ::slotted([slot='value']) {
|
|
26
|
+
flex-grow: 1;
|
|
27
|
+
font-weight: var(--vaadin-input-field-value-font-weight, 500);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
[part='input-field'] ::slotted([slot='value']:not([placeholder])) {
|
|
31
|
+
color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:host([readonly]) [part='input-field'] ::slotted([slot='value']:not([placeholder])) {
|
|
35
|
+
color: var(--lumo-secondary-text-color);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* placeholder styles */
|
|
39
|
+
[part='input-field'] ::slotted([slot='value'][placeholder]) {
|
|
40
|
+
color: var(--vaadin-input-field-placeholder-color, var(--lumo-secondary-text-color));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:host(:is([readonly], [disabled])) ::slotted([slot='value'][placeholder]) {
|
|
44
|
+
opacity: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
[part='toggle-button']::before {
|
|
48
|
+
content: var(--lumo-icons-dropdown);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* Highlight the toggle button when hovering over the entire component */
|
|
52
|
+
:host(:hover:not([readonly]):not([disabled])) [part='toggle-button'] {
|
|
53
|
+
color: var(--lumo-contrast-80pct);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:host([theme~='small']) [part='input-field'] ::slotted([slot='value']) {
|
|
57
|
+
--_lumo-selected-item-height: var(--lumo-size-s);
|
|
58
|
+
--_lumo-selected-item-padding: 0;
|
|
59
|
+
}
|
|
60
|
+
}
|