@vaadin/vaadin-lumo-styles 25.3.0-dev.3a3c2d7d2a → 25.3.0
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/components/ai-field-marker.css +6 -0
- package/components/checkbox.css +1 -1
- package/components/date-picker.css +4 -1
- package/components/grid-pro-edit-column.css +2 -0
- package/components/grid-pro.css +2 -0
- package/components/grid.css +4 -1
- package/components/index.css +2 -0
- package/components/select.css +2 -0
- package/components/side-nav-item.css +2 -0
- package/components/switch.css +21 -0
- package/components/text-field.css +1 -1
- package/dist/lumo.css +13 -11
- package/package.json +5 -5
- package/src/components/ai-field-marker.css +21 -0
- package/src/components/badge.css +1 -1
- package/src/components/dashboard-widget.css +0 -3
- package/src/components/date-picker-month-calendar.css +52 -88
- package/src/components/date-picker-overlay-content.css +3 -3
- package/src/components/form-item.css +1 -9
- package/src/components/grid-tree-toggle.css +1 -1
- package/src/components/grid.css +8 -0
- package/src/components/input-container.css +1 -1
- package/src/components/message-input.css +10 -0
- package/src/components/notification-container.css +1 -1
- package/src/components/select.css +0 -13
- package/src/components/side-nav-item.css +0 -13
- package/src/components/switch.css +174 -0
- package/src/components/upload-file.css +11 -11
- package/src/mixins/checkable-field.css +13 -4
- package/src/mixins/overlay.css +5 -0
- package/src/mixins/slider.css +0 -3
- package/src/mixins/sr-only.css +19 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/vaadin-lumo-styles",
|
|
3
|
-
"version": "25.3.0
|
|
3
|
+
"version": "25.3.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"web-component"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@vaadin/component-base": "25.3.0
|
|
46
|
-
"@vaadin/icon": "25.3.0
|
|
47
|
-
"@vaadin/vaadin-themable-mixin": "25.3.0
|
|
45
|
+
"@vaadin/component-base": "~25.3.0",
|
|
46
|
+
"@vaadin/icon": "~25.3.0",
|
|
47
|
+
"@vaadin/vaadin-themable-mixin": "~25.3.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"cssnano": "^7.1.1",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"postcss-cli": "^11.0.1",
|
|
53
53
|
"postcss-import": "^16.1.1"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "4133747243c03bf544f6e82cc2ec9f295aaccd65"
|
|
56
56
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2017 - 2026 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
vaadin-ai-field-marker :is(.badge, .actions > button):focus-visible {
|
|
7
|
+
outline: var(--vaadin-focus-ring-width, 2px) solid var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
[has-label] > vaadin-ai-field-marker {
|
|
11
|
+
&::before,
|
|
12
|
+
.badge {
|
|
13
|
+
top: calc(var(--lumo-space-m) - 6px);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:has(> vaadin-ai-field-marker) {
|
|
18
|
+
--vaadin-ai-field-marker-confidence-low-color: var(--lumo-error-text-color);
|
|
19
|
+
--vaadin-ai-field-marker-confidence-medium-color: var(--lumo-warning-text-color);
|
|
20
|
+
--vaadin-ai-field-marker-confidence-high-color: var(--lumo-success-text-color);
|
|
21
|
+
}
|
package/src/components/badge.css
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
@media lumo_components_badge {
|
|
7
7
|
:host {
|
|
8
|
-
border-width: var(--vaadin-badge-border-width, 0);
|
|
9
8
|
background: var(--vaadin-badge-background, var(--lumo-primary-color-10pct));
|
|
9
|
+
border-color: var(--vaadin-badge-border-color, transparent);
|
|
10
10
|
color: var(--vaadin-badge-text-color, var(--lumo-primary-text-color));
|
|
11
11
|
font-family: var(--vaadin-badge-font-family, var(--lumo-font-family));
|
|
12
12
|
font-size: var(--vaadin-badge-font-size, var(--lumo-font-size-s));
|
|
@@ -39,9 +39,6 @@
|
|
|
39
39
|
|
|
40
40
|
#content {
|
|
41
41
|
min-height: var(--lumo-size-m);
|
|
42
|
-
padding-inline: var(--vaadin-dashboard-widget-padding, 0);
|
|
43
|
-
padding-bottom: var(--vaadin-dashboard-widget-padding, 0);
|
|
44
|
-
padding-top: 0;
|
|
45
42
|
border-radius: inherit;
|
|
46
43
|
border-top-left-radius: 0;
|
|
47
44
|
border-top-right-radius: 0;
|
|
@@ -5,30 +5,16 @@
|
|
|
5
5
|
*/
|
|
6
6
|
@media lumo_components_date-picker-month-calendar {
|
|
7
7
|
:host {
|
|
8
|
-
display: block;
|
|
9
|
-
-webkit-user-select: none;
|
|
10
|
-
-webkit-tap-highlight-color: transparent;
|
|
11
|
-
user-select: none;
|
|
12
8
|
font-size: var(--lumo-font-size-m);
|
|
13
9
|
color: var(--lumo-body-text-color);
|
|
14
10
|
text-align: center;
|
|
15
|
-
padding: 0 var(--lumo-space-xs);
|
|
11
|
+
padding: var(--vaadin-date-picker-month-padding, 0 var(--lumo-space-xs));
|
|
16
12
|
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
17
13
|
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
18
14
|
--_selection-color: var(--vaadin-selection-color, var(--lumo-primary-color));
|
|
19
15
|
--_selection-color-text: var(--vaadin-selection-color-text, var(--lumo-primary-text-color));
|
|
20
16
|
}
|
|
21
17
|
|
|
22
|
-
#monthGrid {
|
|
23
|
-
width: 100%;
|
|
24
|
-
border-collapse: collapse;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
#days-container tr,
|
|
28
|
-
#weekdays-container tr {
|
|
29
|
-
display: flex;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
18
|
[part~='disabled'] {
|
|
33
19
|
pointer-events: none;
|
|
34
20
|
}
|
|
@@ -36,53 +22,45 @@
|
|
|
36
22
|
/* Month header */
|
|
37
23
|
|
|
38
24
|
[part='month-header'] {
|
|
39
|
-
color: var(--lumo-header-text-color);
|
|
40
|
-
font-size: var(--lumo-font-size-l);
|
|
41
|
-
line-height: 1;
|
|
42
|
-
font-weight: 500;
|
|
25
|
+
color: var(--vaadin-date-picker-month-header-color, var(--lumo-header-text-color));
|
|
26
|
+
font-size: var(--vaadin-date-picker-month-header-font-size, var(--lumo-font-size-l));
|
|
43
27
|
margin-bottom: var(--lumo-space-m);
|
|
44
28
|
}
|
|
45
29
|
|
|
46
30
|
/* Week days and numbers */
|
|
47
31
|
|
|
48
|
-
[part
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
font-
|
|
32
|
+
[part~='weekday'] {
|
|
33
|
+
color: var(--vaadin-date-picker-weekday-color, var(--lumo-secondary-text-color));
|
|
34
|
+
font-size: var(--vaadin-date-picker-weekday-font-size, var(--lumo-font-size-xxs));
|
|
35
|
+
font-weight: var(--vaadin-date-picker-weekday-font-weight, normal);
|
|
52
36
|
line-height: 1;
|
|
53
|
-
color: var(--lumo-secondary-text-color);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
[part='weekdays'] {
|
|
57
37
|
margin-bottom: var(--lumo-space-s);
|
|
58
38
|
}
|
|
59
39
|
|
|
60
|
-
[
|
|
61
|
-
|
|
62
|
-
flex-shrink: 0;
|
|
63
|
-
padding: 0;
|
|
64
|
-
width: var(--lumo-size-xs);
|
|
40
|
+
:host([week-numbers]) table {
|
|
41
|
+
grid-template-columns: var(--lumo-size-xs) repeat(7, 1fr);
|
|
65
42
|
}
|
|
66
43
|
|
|
67
|
-
[
|
|
68
|
-
|
|
69
|
-
display: none;
|
|
44
|
+
:host([week-numbers]) [part~='weekday']:empty {
|
|
45
|
+
display: flex;
|
|
70
46
|
}
|
|
71
47
|
|
|
72
|
-
|
|
48
|
+
[part~='week-number'] {
|
|
49
|
+
color: var(--vaadin-date-picker-week-number-color, var(--lumo-secondary-text-color));
|
|
50
|
+
font-size: var(--vaadin-date-picker-week-number-font-size, var(--lumo-font-size-xxs));
|
|
51
|
+
grid-column: auto;
|
|
52
|
+
margin: 0;
|
|
53
|
+
}
|
|
73
54
|
|
|
74
|
-
[part~='
|
|
75
|
-
|
|
76
|
-
box-sizing: border-box;
|
|
77
|
-
display: inline-flex;
|
|
78
|
-
align-items: center;
|
|
79
|
-
justify-content: center;
|
|
80
|
-
height: var(--lumo-size-m);
|
|
81
|
-
position: relative;
|
|
55
|
+
[part~='week-number']::after {
|
|
56
|
+
display: none;
|
|
82
57
|
}
|
|
83
58
|
|
|
59
|
+
/* Date cells */
|
|
60
|
+
|
|
84
61
|
[part~='date'] {
|
|
85
|
-
|
|
62
|
+
border-radius: var(--vaadin-date-picker-date-border-radius, var(--lumo-border-radius-m));
|
|
63
|
+
height: var(--vaadin-date-picker-date-height, var(--lumo-size-m));
|
|
86
64
|
transition: color 0.1s;
|
|
87
65
|
}
|
|
88
66
|
|
|
@@ -90,49 +68,41 @@
|
|
|
90
68
|
cursor: var(--lumo-clickable-cursor);
|
|
91
69
|
}
|
|
92
70
|
|
|
93
|
-
[part
|
|
94
|
-
|
|
95
|
-
width: calc(100% / 7);
|
|
96
|
-
padding: 0;
|
|
97
|
-
font-weight: normal;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
:host([week-numbers]) [part='weekday']:not(:empty),
|
|
101
|
-
:host([week-numbers]) [part~='date'] {
|
|
102
|
-
width: calc((100% - var(--lumo-size-xs)) / 7);
|
|
71
|
+
[part~='today'] {
|
|
72
|
+
color: var(--vaadin-date-picker-date-today-color, var(--_selection-color-text));
|
|
103
73
|
}
|
|
104
74
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
[part~='date'][part~='today'] {
|
|
108
|
-
color: var(--_selection-color-text);
|
|
75
|
+
[part~='selected'] {
|
|
76
|
+
color: var(--vaadin-date-picker-date-selected-color, var(--lumo-primary-contrast-color));
|
|
109
77
|
}
|
|
110
78
|
|
|
111
|
-
/*
|
|
79
|
+
/* Selection, hover and focus indicator */
|
|
112
80
|
|
|
113
|
-
[part~='date']::
|
|
114
|
-
content: '';
|
|
115
|
-
position: absolute;
|
|
116
|
-
z-index: -1;
|
|
81
|
+
[part~='date']::after {
|
|
117
82
|
top: 50%;
|
|
118
83
|
left: 50%;
|
|
119
|
-
|
|
120
|
-
min-width: 2em;
|
|
121
|
-
min-height: 2em;
|
|
84
|
+
translate: -50% -50%;
|
|
122
85
|
width: 80%;
|
|
123
86
|
height: 80%;
|
|
124
|
-
|
|
87
|
+
min-width: 2em;
|
|
88
|
+
min-height: 2em;
|
|
125
89
|
max-width: 100%;
|
|
126
|
-
|
|
90
|
+
max-height: 100%;
|
|
91
|
+
aspect-ratio: auto;
|
|
92
|
+
outline: none;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
[part~='selected']::after {
|
|
96
|
+
background: var(--vaadin-date-picker-date-selected-background, var(--_selection-color));
|
|
127
97
|
}
|
|
128
98
|
|
|
129
|
-
[part~='date'][part~='focused']::
|
|
99
|
+
[part~='date'][part~='focused']::after {
|
|
130
100
|
box-shadow:
|
|
131
101
|
0 0 0 1px var(--lumo-base-color),
|
|
132
102
|
0 0 0 calc(var(--_focus-ring-width) + 1px) var(--_focus-ring-color);
|
|
133
103
|
}
|
|
134
104
|
|
|
135
|
-
:host(:not([focused])) [part~='date'][part~='focused']::
|
|
105
|
+
:host(:not([focused])) [part~='date'][part~='focused']::after {
|
|
136
106
|
animation: vaadin-date-picker-month-calendar-focus-date 1.4s infinite;
|
|
137
107
|
}
|
|
138
108
|
|
|
@@ -144,38 +114,32 @@
|
|
|
144
114
|
}
|
|
145
115
|
}
|
|
146
116
|
|
|
147
|
-
[part~='date']:not(:empty):not([part~='disabled']):not([part~='selected']):hover::
|
|
117
|
+
[part~='date']:not(:empty):not([part~='disabled']):not([part~='selected']):hover::after {
|
|
148
118
|
background-color: var(--lumo-primary-color-10pct);
|
|
149
119
|
}
|
|
150
120
|
|
|
151
|
-
[part~='date'][part~='selected'] {
|
|
152
|
-
color: var(--lumo-primary-contrast-color);
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
[part~='date'][part~='selected']::before {
|
|
156
|
-
background-color: var(--_selection-color);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
[part~='date'][part~='disabled'] {
|
|
160
|
-
color: var(--lumo-disabled-text-color);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
121
|
@media (pointer: coarse) {
|
|
164
|
-
[part~='date']:hover:not([part~='selected'])::
|
|
165
|
-
:host(:not([focus-ring])) [part~='focused']:not([part~='selected'])::
|
|
122
|
+
[part~='date']:hover:not([part~='selected'])::after,
|
|
123
|
+
:host(:not([focus-ring])) [part~='focused']:not([part~='selected'])::after {
|
|
166
124
|
display: none;
|
|
167
125
|
}
|
|
168
126
|
|
|
169
|
-
[part~='date']:not(:empty):not([part~='disabled']):active::
|
|
127
|
+
[part~='date']:not(:empty):not([part~='disabled']):active::after {
|
|
170
128
|
display: block;
|
|
171
129
|
}
|
|
172
130
|
|
|
173
|
-
:host(:not([focus-ring])) [part~='date'][part~='selected']::
|
|
131
|
+
:host(:not([focus-ring])) [part~='date'][part~='selected']::after {
|
|
174
132
|
box-shadow: none;
|
|
175
133
|
}
|
|
176
134
|
}
|
|
135
|
+
|
|
177
136
|
/* Disabled */
|
|
178
137
|
|
|
138
|
+
[disabled] {
|
|
139
|
+
color: var(--vaadin-date-picker-date-disabled-color, var(--lumo-disabled-text-color));
|
|
140
|
+
opacity: 1;
|
|
141
|
+
}
|
|
142
|
+
|
|
179
143
|
:host([disabled]) * {
|
|
180
144
|
color: var(--lumo-disabled-text-color) !important;
|
|
181
145
|
}
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
/* prettier-ignore */
|
|
28
28
|
--vaadin-infinite-scroller-item-height:
|
|
29
29
|
calc(
|
|
30
|
-
var(--lumo-font-size-l) + var(--lumo-space-m)
|
|
31
|
-
+ var(--lumo-font-size-xs) + var(--lumo-space-s)
|
|
32
|
-
+ var(--lumo-size-m) * 6
|
|
30
|
+
var(--vaadin-date-picker-month-header-font-size, var(--lumo-font-size-l)) + var(--lumo-space-m)
|
|
31
|
+
+ var(--vaadin-date-picker-weekday-font-size, var(--lumo-font-size-xs)) + var(--lumo-space-s)
|
|
32
|
+
+ var(--vaadin-date-picker-date-height, var(--lumo-size-m)) * 6
|
|
33
33
|
+ var(--lumo-space-s)
|
|
34
34
|
);
|
|
35
35
|
--vaadin-infinite-scroller-buffer-offset: 10%;
|
|
@@ -14,23 +14,15 @@
|
|
|
14
14
|
margin-left: calc(var(--lumo-border-radius-m) / 4);
|
|
15
15
|
margin-bottom: var(--lumo-space-xs);
|
|
16
16
|
line-height: 1.333;
|
|
17
|
+
min-height: 1lh;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
[part='required-indicator']::after {
|
|
20
21
|
content: var(--vaadin-input-field-required-indicator, var(--lumo-required-field-indicator, '\2022'));
|
|
21
|
-
transition: opacity 0.2s;
|
|
22
|
-
opacity: 0;
|
|
23
22
|
color: var(
|
|
24
23
|
--vaadin-input-field-required-indicator-color,
|
|
25
24
|
var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color))
|
|
26
25
|
);
|
|
27
|
-
position: relative;
|
|
28
|
-
width: 1em;
|
|
29
|
-
text-align: center;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
:host([required]) [part='required-indicator']::after {
|
|
33
|
-
opacity: 1;
|
|
34
26
|
}
|
|
35
27
|
|
|
36
28
|
:host([invalid]) [part='required-indicator']::after {
|
package/src/components/grid.css
CHANGED
|
@@ -415,6 +415,14 @@
|
|
|
415
415
|
}
|
|
416
416
|
|
|
417
417
|
/* Drag and Drop styles */
|
|
418
|
+
|
|
419
|
+
/* Draggable cell content; see _filterDragAndDrop in vaadin-grid-drag-and-drop-mixin.js. */
|
|
420
|
+
::slotted(vaadin-grid-cell-content[draggable-source]) {
|
|
421
|
+
-webkit-user-drag: element;
|
|
422
|
+
-webkit-user-select: none;
|
|
423
|
+
user-select: none;
|
|
424
|
+
}
|
|
425
|
+
|
|
418
426
|
:host([dragover])::after {
|
|
419
427
|
content: '';
|
|
420
428
|
position: absolute;
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
align-items: flex-start;
|
|
9
9
|
box-sizing: border-box;
|
|
10
10
|
display: flex;
|
|
11
|
+
flex-wrap: wrap;
|
|
11
12
|
max-height: 50vh;
|
|
12
13
|
overflow: hidden;
|
|
13
14
|
flex-shrink: 0;
|
|
@@ -27,4 +28,13 @@
|
|
|
27
28
|
flex-grow: 1;
|
|
28
29
|
margin-inline-end: var(--lumo-space-s);
|
|
29
30
|
}
|
|
31
|
+
|
|
32
|
+
:host([has-prefix]) ::slotted([slot='textarea']) {
|
|
33
|
+
margin-inline-start: var(--lumo-space-s);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
::slotted([slot='header']),
|
|
37
|
+
::slotted([slot='footer']) {
|
|
38
|
+
width: 100%;
|
|
39
|
+
}
|
|
30
40
|
}
|
|
@@ -57,17 +57,4 @@
|
|
|
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
|
-
}
|
|
73
60
|
}
|
|
@@ -167,17 +167,4 @@
|
|
|
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
|
-
}
|
|
183
170
|
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2017 - 2026 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
@media lumo_components_switch {
|
|
7
|
+
:host {
|
|
8
|
+
--_switch-height: var(--vaadin-switch-height, calc(var(--lumo-size-m) / 2));
|
|
9
|
+
--_marker-height: var(--vaadin-switch-marker-height, round(var(--lumo-size-m) / 2 - 4px, 2px));
|
|
10
|
+
--_cursor: var(--lumo-clickable-cursor);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:host::before {
|
|
14
|
+
display: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[part='switch'] {
|
|
18
|
+
width: var(--_switch-width);
|
|
19
|
+
height: var(--_switch-height);
|
|
20
|
+
box-shadow: none;
|
|
21
|
+
background: var(--vaadin-switch-background, light-dark(var(--lumo-contrast-50pct), var(--lumo-contrast-40pct)));
|
|
22
|
+
border-color: var(--vaadin-switch-border-color, transparent);
|
|
23
|
+
|
|
24
|
+
&::before {
|
|
25
|
+
position: absolute;
|
|
26
|
+
transform: scaleX(1.4) scaleY(1.7);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
[part='marker'] {
|
|
31
|
+
background: var(--vaadin-switch-marker-color, var(--lumo-tint));
|
|
32
|
+
color: var(--vaadin-switch-icon-color, var(--lumo-shade-60pct));
|
|
33
|
+
scale: var(--vaadin-switch-marker-scale, 1);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:host(:not([disabled], [readonly])) [part='marker'] {
|
|
37
|
+
box-shadow: var(--lumo-box-shadow-xs);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
::slotted(label) {
|
|
41
|
+
color: var(--vaadin-switch-label-color, var(--lumo-body-text-color));
|
|
42
|
+
font-size: var(--vaadin-switch-label-font-size, var(--lumo-font-size-m));
|
|
43
|
+
font-weight: var(--vaadin-switch-label-font-weight, var(--vaadin-input-field-label-font-weight, 400));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:host([required]) [part='label'] {
|
|
47
|
+
display: flex;
|
|
48
|
+
position: relative;
|
|
49
|
+
max-width: max-content;
|
|
50
|
+
padding-inline-end: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:host([has-label]) ::slotted(label) {
|
|
54
|
+
padding: var(
|
|
55
|
+
--vaadin-switch-label-padding,
|
|
56
|
+
var(--lumo-space-xs) var(--lumo-space-s) var(--lumo-space-xs) var(--lumo-space-xs)
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:host([dir='rtl'][has-label]) ::slotted(label) {
|
|
61
|
+
padding: var(--lumo-space-xs) var(--lumo-space-xs) var(--lumo-space-xs) var(--lumo-space-s);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:host([has-label][required]) ::slotted(label) {
|
|
65
|
+
padding-inline-end: var(--lumo-space-m);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:host([required]) [part='required-indicator'] {
|
|
69
|
+
width: auto;
|
|
70
|
+
top: var(--lumo-space-xs);
|
|
71
|
+
right: var(--lumo-space-xs);
|
|
72
|
+
|
|
73
|
+
&::after {
|
|
74
|
+
position: static;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
:host([required][dir='rtl']) [part='required-indicator'] {
|
|
79
|
+
right: auto;
|
|
80
|
+
left: var(--lumo-space-xs);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
[part='helper-text'] {
|
|
84
|
+
padding-inline-start: var(--lumo-space-xs);
|
|
85
|
+
margin-top: 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
:host([has-helper]) [part='helper-text']::before,
|
|
89
|
+
:host([has-error-message]) [part='error-message']::before {
|
|
90
|
+
display: none;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
:host([has-helper]) [part='helper-text']::after {
|
|
94
|
+
content: '';
|
|
95
|
+
display: block;
|
|
96
|
+
height: 0.4em;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
:host([has-error-message]) ::slotted(label),
|
|
100
|
+
:host([has-helper]) ::slotted(label) {
|
|
101
|
+
padding-bottom: 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
[part='error-message'] {
|
|
105
|
+
display: block;
|
|
106
|
+
margin: 0;
|
|
107
|
+
padding-inline-start: var(--lumo-space-xs);
|
|
108
|
+
|
|
109
|
+
&::before {
|
|
110
|
+
background: transparent;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:host([checked]) {
|
|
115
|
+
--vaadin-switch-background: var(--lumo-primary-color);
|
|
116
|
+
--vaadin-switch-marker-color: var(--lumo-primary-contrast-color);
|
|
117
|
+
--vaadin-switch-icon-color: var(--lumo-primary-color);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
:host([disabled]) {
|
|
121
|
+
--vaadin-switch-background: var(--lumo-contrast-10pct);
|
|
122
|
+
--vaadin-switch-marker-color: var(--lumo-tint-30pct);
|
|
123
|
+
--vaadin-switch-border-color: transparent;
|
|
124
|
+
--vaadin-switch-icon-color: var(--lumo-shade-10pct);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
:host([disabled][checked]) {
|
|
128
|
+
--vaadin-switch-background: var(--lumo-primary-color-10pct);
|
|
129
|
+
--vaadin-switch-marker-color: var(--lumo-tint-30pct);
|
|
130
|
+
--vaadin-switch-icon-color: color-mix(in srgb, var(--lumo-primary-color) 10%, var(--lumo-base-color) 50%);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
:host([readonly]) {
|
|
134
|
+
--vaadin-switch-marker-color: var(--lumo-contrast-50pct);
|
|
135
|
+
--vaadin-switch-marker-scale: 0.8;
|
|
136
|
+
--_border-style: solid;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
:host([readonly][checked]) {
|
|
140
|
+
--vaadin-switch-background: transparent;
|
|
141
|
+
--_border-style: solid;
|
|
142
|
+
--vaadin-switch-border-color: var(--lumo-contrast-50pct);
|
|
143
|
+
--vaadin-switch-marker-color: var(--lumo-secondary-text-color);
|
|
144
|
+
--vaadin-switch-icon-color: var(--lumo-base-color);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
:host([invalid]) {
|
|
148
|
+
--vaadin-switch-background: var(--vaadin-input-field-invalid-background, var(--lumo-error-color-50pct));
|
|
149
|
+
--_focus-ring-color: var(--lumo-error-color-50pct);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/* Active */
|
|
153
|
+
:host([active]) [part='switch'] {
|
|
154
|
+
transform: scale(0.95);
|
|
155
|
+
transition-duration: 0.05s;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
:host([active]:not([checked])) [part='switch']::before {
|
|
159
|
+
transition-duration: 0.01s, 0.01s;
|
|
160
|
+
transform: scale(0);
|
|
161
|
+
opacity: 0.4;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/* Focus ring */
|
|
165
|
+
:host([focus-ring]) [part='switch'] {
|
|
166
|
+
box-shadow:
|
|
167
|
+
0 0 0 1px var(--lumo-base-color),
|
|
168
|
+
0 0 0 calc(var(--_focus-ring-width) + 1px) var(--_focus-ring-color);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
:host([readonly][focus-ring]) [part='switch'] {
|
|
172
|
+
outline: none;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
@@ -22,17 +22,21 @@
|
|
|
22
22
|
display: none;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
[part='status'],
|
|
26
|
-
[part='error'] {
|
|
27
|
-
color: var(--lumo-secondary-text-color);
|
|
28
|
-
font-size: var(--lumo-font-size-s);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
25
|
[part='name'] {
|
|
32
|
-
color: var(--lumo-body-text-color);
|
|
26
|
+
color: var(--vaadin-upload-file-name-color, var(--lumo-body-text-color));
|
|
33
27
|
white-space: nowrap;
|
|
34
28
|
}
|
|
35
29
|
|
|
30
|
+
[part='status'] {
|
|
31
|
+
color: var(--vaadin-upload-file-status-color, var(--lumo-secondary-text-color));
|
|
32
|
+
font-size: var(--vaadin-upload-file-status-font-size, var(--lumo-font-size-s));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[part='error'] {
|
|
36
|
+
color: var(--vaadin-upload-file-error-color, var(--lumo-error-text-color));
|
|
37
|
+
font-size: var(--vaadin-upload-file-error-font-size, var(--lumo-font-size-s));
|
|
38
|
+
}
|
|
39
|
+
|
|
36
40
|
[part='commands'] {
|
|
37
41
|
align-self: start;
|
|
38
42
|
}
|
|
@@ -94,10 +98,6 @@
|
|
|
94
98
|
content: var(--lumo-icons-cross);
|
|
95
99
|
}
|
|
96
100
|
|
|
97
|
-
[part='error'] {
|
|
98
|
-
color: var(--lumo-error-text-color);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
101
|
::slotted([slot='progress']) {
|
|
102
102
|
margin-inline-end: calc(var(--lumo-icon-size-m) + var(--lumo-space-xs));
|
|
103
103
|
}
|