@vaadin/vaadin-lumo-styles 25.0.0-alpha8 → 25.0.0-beta1
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 +4 -3
- package/components/accordion-panel.css +4 -3
- package/components/app-layout.css +4 -3
- package/components/avatar-group.css +10 -9
- package/components/avatar.css +6 -4
- package/components/button.css +4 -4
- package/components/card.css +6 -4
- package/components/charts.css +4 -3
- package/components/checkbox-group.css +4 -3
- package/components/checkbox.css +4 -3
- package/components/combo-box.css +8 -7
- package/components/confirm-dialog.css +4 -3
- package/components/context-menu.css +8 -7
- package/components/crud.css +13 -12
- package/components/custom-field.css +4 -3
- package/components/dashboard.css +12 -11
- package/components/date-picker.css +12 -11
- package/components/date-time-picker.css +4 -3
- package/components/details-summary.css +4 -3
- package/components/details.css +4 -3
- package/components/dialog.css +4 -3
- package/components/drawer-toggle.css +4 -3
- package/components/email-field.css +4 -3
- package/components/field-highlighter.css +8 -7
- package/components/form-item.css +4 -3
- package/components/form-layout.css +8 -5
- package/components/grid-filter.css +4 -3
- package/components/grid-pro-edit-column.css +8 -7
- package/components/grid-pro.css +4 -3
- package/components/grid-sorter.css +4 -3
- package/components/grid-tree-toggle.css +4 -3
- package/components/grid.css +4 -3
- package/components/horizontal-layout.css +4 -3
- package/components/icon.css +4 -3
- package/components/index.css +71 -0
- package/components/input-container.css +4 -3
- package/components/integer-field.css +4 -3
- package/components/item.css +4 -3
- package/components/list-box.css +4 -3
- package/components/login-form.css +4 -3
- package/components/login.css +4 -3
- package/components/map.css +4 -3
- package/components/master-detail-layout.css +14 -5
- package/components/menu-bar.css +12 -11
- package/components/message-input-button.css +12 -0
- package/components/message-input.css +5 -4
- package/components/message.css +4 -3
- package/components/multi-select-combo-box.css +12 -11
- package/components/notification.css +6 -5
- package/components/number-field.css +4 -3
- package/components/overlay.css +4 -3
- package/components/password-field.css +6 -5
- package/components/popover.css +4 -3
- package/components/progress-bar.css +4 -3
- package/components/radio-button.css +4 -3
- package/components/radio-group.css +4 -3
- package/components/rich-text-editor.css +6 -5
- package/components/scroller.css +4 -3
- package/components/select.css +12 -11
- package/components/side-nav-item.css +4 -3
- package/components/side-nav.css +4 -3
- package/components/split-layout.css +4 -3
- package/components/tab.css +4 -3
- package/components/tabs.css +4 -3
- package/components/tabsheet.css +6 -5
- package/components/text-area.css +4 -3
- package/components/text-field.css +4 -3
- package/components/time-picker.css +8 -7
- package/components/tooltip.css +4 -3
- package/components/upload.css +15 -10
- package/components/vertical-layout.css +4 -3
- package/dist/lumo.css +43 -0
- package/dist/presets/compact.css +1 -0
- package/dist/utility.css +1 -0
- package/lumo.css +3 -3
- package/mixins/field-button.js +3 -4
- package/mixins/helper.js +3 -4
- package/mixins/input-field-shared.js +4 -7
- package/mixins/loader.js +3 -2
- package/mixins/menu-overlay.js +3 -2
- package/mixins/overlay.js +3 -4
- package/mixins/required-field.js +3 -4
- package/package.json +15 -9
- package/presets/compact.css +32 -0
- package/src/components/app-layout.css +5 -5
- package/src/components/avatar-group-overlay.css +0 -4
- package/src/components/chart.css +3 -5
- package/src/components/checkbox.css +2 -3
- package/src/components/combo-box.css +1 -1
- package/src/components/confirm-dialog-overlay.css +0 -4
- package/src/components/context-menu-overlay.css +21 -1
- package/src/components/dashboard-layout.css +0 -66
- package/src/components/dashboard-section.css +3 -31
- package/src/components/dashboard-widget.css +1 -85
- package/src/components/dashboard.css +0 -9
- package/src/components/date-picker-overlay-content.css +6 -40
- package/src/components/date-picker-overlay.css +2 -14
- package/src/components/date-picker.css +2 -2
- package/src/components/dialog-overlay.css +10 -19
- package/src/components/grid-pro-edit-select.css +1 -1
- package/src/components/grid-pro.css +14 -8
- package/src/components/grid.css +0 -7
- package/src/components/horizontal-layout.css +0 -4
- package/src/components/icon.css +2 -2
- package/src/components/input-container.css +1 -3
- package/src/components/login-form-wrapper.css +5 -26
- package/src/components/login-overlay-wrapper.css +14 -4
- package/src/components/menu-bar-button.css +7 -7
- package/src/components/message.css +7 -32
- package/src/components/multi-select-combo-box.css +6 -2
- package/src/components/notification-container.css +8 -1
- package/src/components/number-field.css +6 -6
- package/src/components/password-field.css +4 -4
- package/src/components/popover-overlay.css +2 -138
- package/src/components/radio-button.css +1 -1
- package/src/components/rich-text-editor.css +40 -142
- package/src/components/scroller.css +3 -22
- package/src/components/select.css +15 -2
- package/src/components/side-nav-item.css +13 -0
- package/src/components/split-layout.css +19 -97
- package/src/components/tabsheet.css +5 -1
- package/src/components/text-area.css +2 -2
- package/src/components/time-picker.css +1 -1
- package/src/components/tooltip-overlay.css +4 -1
- package/src/components/upload-file.css +27 -61
- package/src/components/upload-icon.css +6 -0
- package/src/components/user-tags-overlay.css +2 -5
- package/src/components/vertical-layout.css +0 -4
- package/src/global/color-scheme.css +2 -1
- package/{user-colors.d.ts → src/global/index.css} +3 -3
- package/src/global/typography.css +2 -1
- package/src/mixins/dashboard-item.css +10 -142
- package/src/mixins/field-base.css +1 -1
- package/src/mixins/field-button.css +3 -3
- package/src/mixins/overlay.css +11 -1
- package/src/mixins/resizable-overlay.css +2 -1
- package/src/props/color.css +4 -2
- package/src/props/icons.css +21 -18
- package/src/props/index.css +12 -0
- package/src/props/reset.css +2 -1
- package/src/props/sizing.css +2 -1
- package/src/props/spacing.css +2 -1
- package/src/props/style.css +2 -1
- package/src/props/typography.css +2 -1
- package/utility.css +0 -1
- package/vaadin-iconset.js +2 -0
- package/auto-complete.css +0 -2512
- package/badge-global.js +0 -9
- package/badge.d.ts +0 -3
- package/badge.js +0 -178
- package/color-global.js +0 -9
- package/color.d.ts +0 -5
- package/color.js +0 -221
- package/components.css +0 -71
- package/font-icons.js +0 -69
- package/global.css +0 -8
- package/global.js +0 -5
- package/presets/compact.js +0 -40
- package/props.css +0 -12
- package/sizing.d.ts +0 -3
- package/sizing.js +0 -29
- package/spacing.d.ts +0 -3
- package/spacing.js +0 -37
- package/src/components/form-layout.css +0 -11
- package/src/components/master-detail-layout.css +0 -21
- package/src/components/upload-file-list.css +0 -24
- package/style.d.ts +0 -3
- package/style.js +0 -31
- 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 -50
- package/utilities/typography.js +0 -344
- package/utility-global.js +0 -9
- package/utility.d.ts +0 -3
- package/utility.js +0 -34
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
--_wrapper-gap: 0;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
:host([opened]) {
|
|
15
|
+
pointer-events: auto;
|
|
16
|
+
}
|
|
17
|
+
|
|
14
18
|
#chips {
|
|
15
19
|
display: flex;
|
|
16
20
|
align-items: center;
|
|
@@ -87,11 +91,11 @@
|
|
|
87
91
|
color: var(--lumo-primary-contrast-color);
|
|
88
92
|
}
|
|
89
93
|
|
|
90
|
-
[part
|
|
94
|
+
[part~='toggle-button']::before {
|
|
91
95
|
content: var(--lumo-icons-dropdown);
|
|
92
96
|
}
|
|
93
97
|
|
|
94
|
-
:host([readonly][has-value]) [part
|
|
98
|
+
:host([readonly][has-value]) [part~='toggle-button'] {
|
|
95
99
|
color: var(--lumo-contrast-60pct);
|
|
96
100
|
cursor: var(--lumo-clickable-cursor);
|
|
97
101
|
}
|
|
@@ -6,13 +6,20 @@
|
|
|
6
6
|
@media lumo_components_notification-container {
|
|
7
7
|
:host {
|
|
8
8
|
position: fixed;
|
|
9
|
-
z-index: 1000;
|
|
10
9
|
inset: 0;
|
|
11
10
|
box-sizing: border-box;
|
|
12
11
|
display: flex;
|
|
13
12
|
flex-direction: column;
|
|
14
13
|
align-items: stretch;
|
|
15
14
|
pointer-events: none;
|
|
15
|
+
|
|
16
|
+
/* Override native [popover] user agent styles */
|
|
17
|
+
width: auto;
|
|
18
|
+
height: auto;
|
|
19
|
+
border: none;
|
|
20
|
+
padding: 0;
|
|
21
|
+
background-color: transparent;
|
|
22
|
+
overflow: visible;
|
|
16
23
|
}
|
|
17
24
|
|
|
18
25
|
[region-group] {
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
padding: 0;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
[part
|
|
24
|
-
[part
|
|
23
|
+
[part~='decrease-button'],
|
|
24
|
+
[part~='increase-button'] {
|
|
25
25
|
cursor: pointer;
|
|
26
26
|
width: 1.5em;
|
|
27
27
|
height: 1.5em;
|
|
@@ -29,16 +29,16 @@
|
|
|
29
29
|
user-select: none;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
[part
|
|
33
|
-
[part
|
|
32
|
+
[part~='decrease-button']::before,
|
|
33
|
+
[part~='increase-button']::before {
|
|
34
34
|
margin-top: 0.25em;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
[part
|
|
37
|
+
[part~='decrease-button']::before {
|
|
38
38
|
content: var(--lumo-icons-minus);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
[part
|
|
41
|
+
[part~='increase-button']::before {
|
|
42
42
|
content: var(--lumo-icons-plus);
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -4,21 +4,21 @@
|
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
@media lumo_components_password-field {
|
|
7
|
-
[part
|
|
7
|
+
[part~='reveal-button']::before {
|
|
8
8
|
content: var(--lumo-icons-eye);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
:host([password-visible]) [part
|
|
11
|
+
:host([password-visible]) [part~='reveal-button']::before {
|
|
12
12
|
content: var(--lumo-icons-eye-disabled);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/* Make it easy to hide the button across the whole app */
|
|
16
|
-
[part
|
|
16
|
+
[part~='reveal-button'] {
|
|
17
17
|
position: relative;
|
|
18
18
|
display: var(--lumo-password-field-reveal-button-display, block);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
[part
|
|
21
|
+
[part~='reveal-button'][hidden] {
|
|
22
22
|
display: none !important;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -5,152 +5,16 @@
|
|
|
5
5
|
*/
|
|
6
6
|
@media lumo_components_popover-overlay {
|
|
7
7
|
:host {
|
|
8
|
-
--vaadin-popover-arrow-size
|
|
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
|
-
|
|
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;
|
|
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-
|
|
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(
|
|
23
|
-
|
|
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']
|
|
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
|
-
|
|
392
|
-
|
|
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-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
}
|