@vaadin/vaadin-lumo-styles 25.0.0-alpha2 → 25.0.0-alpha21
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/all-imports.d.ts +0 -8
- package/all-imports.js +0 -18
- package/components/accordion-heading.css +14 -0
- package/components/accordion-panel.css +15 -0
- package/{user-colors.d.ts → components/accordion.css} +2 -3
- 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 +13 -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/index.css +71 -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-button.css +11 -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 +31 -0
- package/components/vertical-layout.css +11 -0
- package/dist/lumo.css +43 -0
- package/dist/presets/compact.css +1 -0
- package/dist/utility.css +1 -0
- package/{color-global.js → lumo.css} +3 -4
- package/mixins/field-button.js +3 -4
- package/mixins/helper.js +3 -4
- package/mixins/input-field-shared.js +5 -9
- package/mixins/loader.js +3 -2
- package/mixins/menu-overlay.js +3 -4
- package/mixins/overlay.js +3 -4
- package/mixins/required-field.js +3 -4
- package/package.json +24 -14
- package/presets/compact.css +31 -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 +86 -0
- package/src/components/checkbox-group.css +18 -0
- package/src/components/checkbox.css +340 -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 +55 -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 +61 -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 +28 -0
- package/src/components/dashboard-section.css +85 -0
- package/src/components/dashboard-widget.css +140 -0
- package/src/components/dashboard.css +14 -0
- package/src/components/date-picker-month-calendar.css +192 -0
- package/src/components/date-picker-overlay-content.css +127 -0
- package/src/components/date-picker-overlay.css +48 -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 +164 -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/grid-filter.css +16 -0
- package/src/components/grid-pro-edit-select.css +19 -0
- package/src/components/grid-pro.css +90 -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/{badge-global.js → src/components/menu-bar-overlay.css} +5 -4
- package/src/components/menu-bar.css +31 -0
- package/src/components/message-input.css +30 -0
- package/src/components/message.css +57 -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 +20 -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 +383 -0
- package/src/components/scroller.css +21 -0
- package/src/components/select-overlay.css +54 -0
- package/src/components/select-value-button.css +57 -0
- package/src/components/select.css +73 -0
- package/src/components/side-nav-item.css +183 -0
- package/src/components/side-nav.css +102 -0
- package/src/components/split-layout.css +53 -0
- package/src/components/tab.css +246 -0
- package/src/components/tabs.css +285 -0
- package/src/components/tabsheet.css +63 -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 +53 -0
- package/src/components/upload-file.css +99 -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/{utility-global.js → src/global/index.css} +3 -4
- 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 +121 -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 +131 -0
- package/src/mixins/resizable-overlay.css +100 -0
- package/src/props/color.css +98 -0
- package/src/props/icons.css +63 -0
- package/src/props/index.css +12 -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/utility.css +16 -0
- package/vaadin-iconset.js +4 -0
- package/auto-complete.css +0 -2582
- package/badge.d.ts +0 -3
- package/badge.js +0 -178
- package/color.d.ts +0 -5
- package/color.js +0 -221
- package/font-icons.js +0 -67
- package/global.js +0 -5
- package/presets/compact.js +0 -40
- package/sizing.d.ts +0 -3
- package/sizing.js +0 -29
- package/spacing.d.ts +0 -3
- package/spacing.js +0 -37
- package/style.d.ts +0 -5
- package/style.js +0 -119
- package/typography-global.js +0 -13
- package/typography.d.ts +0 -7
- package/typography.js +0 -129
- package/user-colors.js +0 -33
- package/utilities/accessibility.js +0 -21
- package/utilities/background.js +0 -156
- package/utilities/border.js +0 -147
- package/utilities/filter.js +0 -34
- package/utilities/flexbox-grid.js +0 -619
- package/utilities/layout.js +0 -504
- package/utilities/shadows.js +0 -28
- package/utilities/sizing.js +0 -121
- package/utilities/spacing.js +0 -542
- package/utilities/transition.js +0 -49
- package/utilities/typography.js +0 -344
- package/utility.d.ts +0 -3
- package/utility.js +0 -34
|
@@ -0,0 +1,383 @@
|
|
|
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
|
+
min-height: calc(var(--lumo-size-m) * 8);
|
|
9
|
+
font-family: var(--lumo-font-family);
|
|
10
|
+
font-size: var(--lumo-font-size-m);
|
|
11
|
+
line-height: var(--lumo-line-height-m);
|
|
12
|
+
background: transparent;
|
|
13
|
+
border: none;
|
|
14
|
+
border-radius: 0;
|
|
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
|
+
--_item-indent: var(--lumo-space-m);
|
|
21
|
+
--_marker-indent: var(--lumo-space-xs);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:host(:focus-within) {
|
|
25
|
+
outline: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
[part='content'] {
|
|
29
|
+
background-color: var(--lumo-base-color);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
[part='toolbar'] {
|
|
33
|
+
background-color: var(--lumo-contrast-5pct);
|
|
34
|
+
padding: calc(var(--lumo-space-s) - 1px) var(--lumo-space-xs);
|
|
35
|
+
gap: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
[part~='toolbar-button'] {
|
|
39
|
+
padding: 0;
|
|
40
|
+
font: inherit;
|
|
41
|
+
line-height: 1;
|
|
42
|
+
text-transform: none;
|
|
43
|
+
background: transparent;
|
|
44
|
+
border: none;
|
|
45
|
+
width: var(--lumo-size-m);
|
|
46
|
+
height: var(--lumo-size-m);
|
|
47
|
+
border-radius: var(--lumo-border-radius-m);
|
|
48
|
+
color: var(--lumo-contrast-60pct);
|
|
49
|
+
margin: 2px 1px;
|
|
50
|
+
cursor: var(--lumo-clickable-cursor);
|
|
51
|
+
transition:
|
|
52
|
+
background-color 100ms,
|
|
53
|
+
color 100ms;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
[part~='toolbar-button']:not([part~='toolbar-button-pressed']):hover {
|
|
57
|
+
outline: none;
|
|
58
|
+
background-color: var(--lumo-contrast-5pct);
|
|
59
|
+
color: var(--lumo-contrast-80pct);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
[part~='toolbar-button']::before {
|
|
63
|
+
position: absolute;
|
|
64
|
+
top: 50%;
|
|
65
|
+
left: 50%;
|
|
66
|
+
transform: translate(-50%, -50%);
|
|
67
|
+
font-family: 'lumo-icons', var(--lumo-font-family);
|
|
68
|
+
font-size: var(--lumo-icon-size-m);
|
|
69
|
+
mask-image: none;
|
|
70
|
+
background: transparent;
|
|
71
|
+
height: auto;
|
|
72
|
+
width: auto;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
[part~='toolbar-group'] {
|
|
76
|
+
margin: 0 0.5em;
|
|
77
|
+
margin: 0 calc(var(--lumo-space-l) / 2 - 1px);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
[part~='toolbar-button-bold']::before {
|
|
81
|
+
content: 'B';
|
|
82
|
+
font-weight: 700;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
[part~='toolbar-button-italic']::before {
|
|
86
|
+
content: 'I';
|
|
87
|
+
font-style: italic;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
[part~='toolbar-button-underline']::before {
|
|
91
|
+
content: 'U';
|
|
92
|
+
text-decoration: underline;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
[part~='toolbar-button-strike']::before {
|
|
96
|
+
content: 'T';
|
|
97
|
+
text-decoration: line-through;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
[part~='toolbar-button-h1']::before {
|
|
101
|
+
content: 'H1';
|
|
102
|
+
font-size: 1.25em;
|
|
103
|
+
font-size: var(--lumo-font-size-m);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
[part~='toolbar-button-h2']::before {
|
|
107
|
+
content: 'H2';
|
|
108
|
+
font-size: 1em;
|
|
109
|
+
font-size: var(--lumo-font-size-s);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
[part~='toolbar-button-h3']::before {
|
|
113
|
+
content: 'H3';
|
|
114
|
+
font-size: 0.875em;
|
|
115
|
+
font-size: var(--lumo-font-size-xs);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
[part~='toolbar-button-h1']::before,
|
|
119
|
+
[part~='toolbar-button-h2']::before,
|
|
120
|
+
[part~='toolbar-button-h3']::before {
|
|
121
|
+
letter-spacing: -0.05em;
|
|
122
|
+
font-weight: 600;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
[part~='toolbar-button-subscript']::before,
|
|
126
|
+
[part~='toolbar-button-superscript']::before {
|
|
127
|
+
content: 'X';
|
|
128
|
+
font-weight: 600;
|
|
129
|
+
font-size: var(--lumo-font-size-s);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
[part~='toolbar-button-subscript']::after,
|
|
133
|
+
[part~='toolbar-button-superscript']::after {
|
|
134
|
+
content: '2';
|
|
135
|
+
position: absolute;
|
|
136
|
+
top: 50%;
|
|
137
|
+
left: 70%;
|
|
138
|
+
font-size: 0.625em;
|
|
139
|
+
font-weight: 700;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
[part~='toolbar-button-superscript']::after {
|
|
143
|
+
top: 20%;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
[part~='toolbar-button-blockquote']::before {
|
|
147
|
+
content: '”';
|
|
148
|
+
height: 0.6em;
|
|
149
|
+
font-size: var(--lumo-font-size-xxl);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
[part~='toolbar-button-code-block']::before {
|
|
153
|
+
content: var(--lumo-icons-angle-left) var(--lumo-icons-angle-right);
|
|
154
|
+
font-size: var(--lumo-font-size-l);
|
|
155
|
+
letter-spacing: -0.5em;
|
|
156
|
+
margin-left: -0.25em;
|
|
157
|
+
font-weight: 600;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
[part~='toolbar-button-background']::before,
|
|
161
|
+
[part~='toolbar-button-color']::before {
|
|
162
|
+
content: 'A';
|
|
163
|
+
font-size: 1em;
|
|
164
|
+
}
|
|
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
|
+
|
|
174
|
+
[part~='toolbar-button-color']::after {
|
|
175
|
+
bottom: 4px;
|
|
176
|
+
left: 25%;
|
|
177
|
+
right: 25%;
|
|
178
|
+
width: 50%;
|
|
179
|
+
height: 4px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
[part~='toolbar-button-background']::before {
|
|
183
|
+
z-index: 1;
|
|
184
|
+
background-color: var(--lumo-base-color);
|
|
185
|
+
background-image: linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct));
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
[part~='toolbar-button-background']::after {
|
|
189
|
+
content: '';
|
|
190
|
+
position: absolute;
|
|
191
|
+
inset: 20%;
|
|
192
|
+
background: repeating-linear-gradient(
|
|
193
|
+
135deg,
|
|
194
|
+
var(--_background-value, currentColor),
|
|
195
|
+
var(--_background-value, currentColor) 1px,
|
|
196
|
+
transparent 1px,
|
|
197
|
+
transparent 2px
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
:host([disabled]) [part~='toolbar-button'] {
|
|
202
|
+
background-color: transparent;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
[part~='toolbar-button']:focus,
|
|
206
|
+
[part~='toolbar-button'][aria-expanded='true'] {
|
|
207
|
+
outline: none;
|
|
208
|
+
box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
@media (hover: none) {
|
|
212
|
+
[part~='toolbar-button']:hover {
|
|
213
|
+
background-color: transparent;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
[part~='toolbar-button-pressed'] {
|
|
218
|
+
background-color: var(--vaadin-selection-color, var(--lumo-primary-color));
|
|
219
|
+
color: var(--lumo-primary-contrast-color);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
[part~='toolbar-button']:not([part~='toolbar-button-pressed']):active {
|
|
223
|
+
background-color: var(--lumo-contrast-10pct);
|
|
224
|
+
color: var(--lumo-contrast-90pct);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
[part~='toolbar-button-undo']::before {
|
|
228
|
+
content: var(--lumo-icons-undo);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
[part~='toolbar-button-redo']::before {
|
|
232
|
+
content: var(--lumo-icons-redo);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
[part~='toolbar-button-bold']::before,
|
|
236
|
+
[part~='toolbar-button-background']::before,
|
|
237
|
+
[part~='toolbar-button-color']::before,
|
|
238
|
+
[part~='toolbar-button-italic']::before,
|
|
239
|
+
[part~='toolbar-button-underline']::before,
|
|
240
|
+
[part~='toolbar-button-strike']::before {
|
|
241
|
+
font-size: var(--lumo-font-size-m);
|
|
242
|
+
font-weight: 600;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
[part~='toolbar-button-background']:hover::before {
|
|
246
|
+
background-image:
|
|
247
|
+
linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct)),
|
|
248
|
+
linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct));
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
[part~='toolbar-button-background']:active::before {
|
|
252
|
+
background-image:
|
|
253
|
+
linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct)),
|
|
254
|
+
linear-gradient(var(--lumo-contrast-10pct), var(--lumo-contrast-10pct));
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
[part~='toolbar-button-list-ordered']::before {
|
|
258
|
+
content: var(--lumo-icons-ordered-list);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
[part~='toolbar-button-list-bullet']::before {
|
|
262
|
+
content: var(--lumo-icons-unordered-list);
|
|
263
|
+
}
|
|
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
|
+
|
|
273
|
+
[part~='toolbar-button-align-left']::before {
|
|
274
|
+
content: var(--lumo-icons-align-left);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
[part~='toolbar-button-align-center']::before {
|
|
278
|
+
content: var(--lumo-icons-align-center);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
[part~='toolbar-button-align-right']::before {
|
|
282
|
+
content: var(--lumo-icons-align-right);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
[part~='toolbar-button-image']::before {
|
|
286
|
+
content: var(--lumo-icons-photo);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
[part~='toolbar-button-link']::before {
|
|
290
|
+
content: var(--lumo-icons-link);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
[part~='toolbar-button-clean']::before {
|
|
294
|
+
content: var(--lumo-icons-clean);
|
|
295
|
+
font-size: var(--lumo-font-size-l);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/* Theme variants */
|
|
299
|
+
|
|
300
|
+
/* No border */
|
|
301
|
+
:host(:not([theme~='no-border'])) {
|
|
302
|
+
border: 1px solid var(--lumo-contrast-20pct);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
:host(:not([theme~='no-border']):not([readonly])) [part='content'] {
|
|
306
|
+
border-top: 1px solid var(--lumo-contrast-20pct);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
:host([theme~='no-border']) [part='toolbar'] {
|
|
310
|
+
padding-top: var(--lumo-space-s);
|
|
311
|
+
padding-bottom: var(--lumo-space-s);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/* Compact */
|
|
315
|
+
:host([theme~='compact']) {
|
|
316
|
+
min-height: calc(var(--lumo-size-m) * 6);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
:host([theme~='compact']) [part='toolbar'] {
|
|
320
|
+
padding: var(--lumo-space-xs) 0;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
:host([theme~='compact'][theme~='no-border']) [part='toolbar'] {
|
|
324
|
+
padding: calc(var(--lumo-space-xs) + 1px) 0;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
:host([theme~='compact']) [part~='toolbar-button'] {
|
|
328
|
+
width: var(--lumo-size-s);
|
|
329
|
+
height: var(--lumo-size-s);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
:host([theme~='compact']) [part~='toolbar-group'] {
|
|
333
|
+
margin: 0 calc(var(--lumo-space-m) / 2 - 1px);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.ql-editor {
|
|
337
|
+
color: inherit;
|
|
338
|
+
padding: 0 var(--lumo-space-m);
|
|
339
|
+
}
|
|
340
|
+
|
|
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;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
blockquote {
|
|
349
|
+
padding-left: 1em;
|
|
350
|
+
margin-inline: 40px;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
code {
|
|
354
|
+
background-color: var(--lumo-contrast-10pct);
|
|
355
|
+
font-size: 85%;
|
|
356
|
+
padding: 0.125em 0.25em;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
:where(h1, h2, h3, h4, h5, h6) {
|
|
360
|
+
margin-top: 1.25em;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
:where(h1) {
|
|
364
|
+
margin-bottom: 0.75em;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
:where(h2, h3, h4) {
|
|
368
|
+
margin-bottom: 0.5em;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
:where(h5) {
|
|
372
|
+
margin-bottom: 0.25em;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
/* RTL specific styles */
|
|
376
|
+
:host([dir='rtl']) [part~='toolbar-button-redo']::before {
|
|
377
|
+
content: var(--lumo-icons-undo);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
:host([dir='rtl']) [part~='toolbar-button-undo']::before {
|
|
381
|
+
content: var(--lumo-icons-redo);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
9
|
+
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:host([focus-ring]) {
|
|
13
|
+
outline: none;
|
|
14
|
+
box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:host([theme*='overflow-indicator'])::before,
|
|
18
|
+
:host([theme*='overflow-indicator'])::after {
|
|
19
|
+
background: var(--lumo-contrast-10pct);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -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,73 @@
|
|
|
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
|
+
|
|
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
|
+
}
|
|
73
|
+
}
|