@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,192 @@
|
|
|
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_date-picker-month-calendar {
|
|
7
|
+
:host {
|
|
8
|
+
display: block;
|
|
9
|
+
-webkit-user-select: none;
|
|
10
|
+
-webkit-tap-highlight-color: transparent;
|
|
11
|
+
user-select: none;
|
|
12
|
+
font-size: var(--lumo-font-size-m);
|
|
13
|
+
color: var(--lumo-body-text-color);
|
|
14
|
+
text-align: center;
|
|
15
|
+
padding: 0 var(--lumo-space-xs);
|
|
16
|
+
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
17
|
+
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
18
|
+
--_selection-color: var(--vaadin-selection-color, var(--lumo-primary-color));
|
|
19
|
+
--_selection-color-text: var(--vaadin-selection-color-text, var(--lumo-primary-text-color));
|
|
20
|
+
}
|
|
21
|
+
|
|
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
|
+
[part~='disabled'] {
|
|
33
|
+
pointer-events: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* Month header */
|
|
37
|
+
|
|
38
|
+
[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;
|
|
43
|
+
margin-bottom: var(--lumo-space-m);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Week days and numbers */
|
|
47
|
+
|
|
48
|
+
[part='weekdays'],
|
|
49
|
+
[part='weekday'],
|
|
50
|
+
[part='week-number'] {
|
|
51
|
+
font-size: var(--lumo-font-size-xxs);
|
|
52
|
+
line-height: 1;
|
|
53
|
+
color: var(--lumo-secondary-text-color);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
[part='weekdays'] {
|
|
57
|
+
margin-bottom: var(--lumo-space-s);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
[part='weekday']:empty,
|
|
61
|
+
[part='week-number'] {
|
|
62
|
+
flex-shrink: 0;
|
|
63
|
+
padding: 0;
|
|
64
|
+
width: var(--lumo-size-xs);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
[part='week-number'][hidden],
|
|
68
|
+
[part='weekday'][hidden] {
|
|
69
|
+
display: none;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* Date and week number cells */
|
|
73
|
+
|
|
74
|
+
[part~='date'],
|
|
75
|
+
[part='week-number'] {
|
|
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;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
[part~='date'] {
|
|
85
|
+
outline: none;
|
|
86
|
+
transition: color 0.1s;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
[part~='date']:not(:empty) {
|
|
90
|
+
cursor: var(--lumo-clickable-cursor);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
[part='weekday'],
|
|
94
|
+
[part~='date'] {
|
|
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);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* Today date */
|
|
106
|
+
|
|
107
|
+
[part~='date'][part~='today'] {
|
|
108
|
+
color: var(--_selection-color-text);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* Focused date */
|
|
112
|
+
|
|
113
|
+
[part~='date']::before {
|
|
114
|
+
content: '';
|
|
115
|
+
position: absolute;
|
|
116
|
+
z-index: -1;
|
|
117
|
+
top: 50%;
|
|
118
|
+
left: 50%;
|
|
119
|
+
transform: translate(-50%, -50%);
|
|
120
|
+
min-width: 2em;
|
|
121
|
+
min-height: 2em;
|
|
122
|
+
width: 80%;
|
|
123
|
+
height: 80%;
|
|
124
|
+
max-height: 100%;
|
|
125
|
+
max-width: 100%;
|
|
126
|
+
border-radius: var(--lumo-border-radius-m);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
[part~='date'][part~='focused']::before {
|
|
130
|
+
box-shadow:
|
|
131
|
+
0 0 0 1px var(--lumo-base-color),
|
|
132
|
+
0 0 0 calc(var(--_focus-ring-width) + 1px) var(--_focus-ring-color);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
:host(:not([focused])) [part~='date'][part~='focused']::before {
|
|
136
|
+
animation: vaadin-date-picker-month-calendar-focus-date 1.4s infinite;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
@keyframes vaadin-date-picker-month-calendar-focus-date {
|
|
140
|
+
50% {
|
|
141
|
+
box-shadow:
|
|
142
|
+
0 0 0 1px var(--lumo-base-color),
|
|
143
|
+
0 0 0 calc(var(--_focus-ring-width) + 1px) transparent;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
[part~='date']:not(:empty):not([part~='disabled']):not([part~='selected']):hover::before {
|
|
148
|
+
background-color: var(--lumo-primary-color-10pct);
|
|
149
|
+
}
|
|
150
|
+
|
|
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
|
+
@media (pointer: coarse) {
|
|
164
|
+
[part~='date']:hover:not([part~='selected'])::before,
|
|
165
|
+
:host(:not([focus-ring])) [part~='focused']:not([part~='selected'])::before {
|
|
166
|
+
display: none;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
[part~='date']:not(:empty):not([part~='disabled']):active::before {
|
|
170
|
+
display: block;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
:host(:not([focus-ring])) [part~='date'][part~='selected']::before {
|
|
174
|
+
box-shadow: none;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
/* Disabled */
|
|
178
|
+
|
|
179
|
+
:host([disabled]) * {
|
|
180
|
+
color: var(--lumo-disabled-text-color) !important;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
@media (forced-colors: active) {
|
|
184
|
+
[part~='date'][part~='focused'] {
|
|
185
|
+
outline: 1px solid;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
[part~='date'][part~='selected'] {
|
|
189
|
+
outline: 3px solid;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
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_date-picker-overlay-content {
|
|
7
|
+
:host {
|
|
8
|
+
/* Background for the year scroller, placed here as we are using a mask image on the actual years part */
|
|
9
|
+
background-image: linear-gradient(var(--lumo-shade-5pct), var(--lumo-shade-5pct));
|
|
10
|
+
background-size: 57px 100%;
|
|
11
|
+
background-position: top right;
|
|
12
|
+
background-repeat: no-repeat;
|
|
13
|
+
cursor: default;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:host([dir='rtl']) {
|
|
17
|
+
background-position: top left;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
::slotted([slot='months']) {
|
|
21
|
+
/* Month calendar height:
|
|
22
|
+
header height + margin-bottom
|
|
23
|
+
+ weekdays height + margin-bottom
|
|
24
|
+
+ date cell heights
|
|
25
|
+
+ small margin between month calendars
|
|
26
|
+
*/
|
|
27
|
+
/* prettier-ignore */
|
|
28
|
+
--vaadin-infinite-scroller-item-height:
|
|
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
|
|
33
|
+
+ var(--lumo-space-s)
|
|
34
|
+
);
|
|
35
|
+
--vaadin-infinite-scroller-buffer-offset: 10%;
|
|
36
|
+
mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
::slotted([slot='years']) {
|
|
40
|
+
/* TODO get rid of fixed magic number */
|
|
41
|
+
--vaadin-infinite-scroller-buffer-width: 57px;
|
|
42
|
+
width: 57px;
|
|
43
|
+
font-size: var(--lumo-font-size-s);
|
|
44
|
+
border: none;
|
|
45
|
+
background: transparent;
|
|
46
|
+
box-shadow: inset 2px 0 4px 0 var(--lumo-shade-5pct);
|
|
47
|
+
mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
|
|
48
|
+
cursor: var(--lumo-clickable-cursor);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:host([dir='rtl']) ::slotted([slot='years']) {
|
|
52
|
+
box-shadow: inset -2px 0 4px 0 var(--lumo-shade-5pct);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
::slotted([slot='years']:hover) {
|
|
56
|
+
--_lumo-date-picker-year-opacity: 1;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* Year scroller position indicator */
|
|
60
|
+
::slotted([slot='years'])::before {
|
|
61
|
+
border: none;
|
|
62
|
+
width: 1em;
|
|
63
|
+
height: 1em;
|
|
64
|
+
background-color: var(--lumo-base-color);
|
|
65
|
+
background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
|
|
66
|
+
border-top-right-radius: var(--lumo-border-radius-s);
|
|
67
|
+
box-shadow: 2px -2px 6px 0 var(--lumo-shade-5pct);
|
|
68
|
+
translate: -75% -50%;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:host([dir='rtl']) ::slotted([slot='years'])::before {
|
|
72
|
+
border-bottom-left-radius: var(--lumo-border-radius-s);
|
|
73
|
+
translate: 75% -50%;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
[part='toolbar'] {
|
|
77
|
+
padding: var(--lumo-space-s);
|
|
78
|
+
border-bottom-left-radius: var(--lumo-border-radius-l);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* Narrow viewport mode (fullscreen) */
|
|
82
|
+
|
|
83
|
+
:host([fullscreen]) [part='toolbar'] {
|
|
84
|
+
margin-inline-end: 57px;
|
|
85
|
+
background-color: var(--lumo-base-color);
|
|
86
|
+
border: none;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
[part='toolbar'] ::slotted(vaadin-button) {
|
|
90
|
+
margin: 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* Very narrow screen (year scroller initially hidden) */
|
|
94
|
+
|
|
95
|
+
[part='years-toggle-button'] {
|
|
96
|
+
height: var(--lumo-size-m);
|
|
97
|
+
padding: 0 0.5em;
|
|
98
|
+
border-radius: var(--lumo-border-radius-m);
|
|
99
|
+
color: var(--lumo-primary-text-color);
|
|
100
|
+
font-weight: 500;
|
|
101
|
+
-webkit-font-smoothing: antialiased;
|
|
102
|
+
-moz-osx-font-smoothing: grayscale;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
:host([years-visible]) [part='years-toggle-button'] {
|
|
106
|
+
background-color: var(--lumo-primary-color);
|
|
107
|
+
color: var(--lumo-primary-contrast-color);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* TODO magic number (same as used for media-query in vaadin-date-picker-overlay-content) */
|
|
111
|
+
@media screen and (max-width: 374px) {
|
|
112
|
+
:host {
|
|
113
|
+
background-image: none;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
:host([fullscreen]) [part='toolbar'] {
|
|
117
|
+
margin-inline-end: 0;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* TODO make date-picker adapt to the width of the years part */
|
|
121
|
+
::slotted([slot='years']) {
|
|
122
|
+
--vaadin-infinite-scroller-buffer-width: 50px;
|
|
123
|
+
width: 50px;
|
|
124
|
+
background-color: var(--lumo-shade-5pct);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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_date-picker-overlay {
|
|
7
|
+
[part='overlay'] {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex: auto;
|
|
10
|
+
/* Width: date cell widths + month calendar side padding + year scroller width */
|
|
11
|
+
width: calc(var(--lumo-size-m) * 7 + var(--lumo-space-xs) * 2 + 57px);
|
|
12
|
+
height: 100%;
|
|
13
|
+
max-height: calc(var(--lumo-size-m) * 14);
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
-webkit-tap-highlight-color: transparent;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[part='content'] {
|
|
20
|
+
flex: auto;
|
|
21
|
+
padding: 0;
|
|
22
|
+
height: 100%;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
mask-image: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:host([top-aligned]) [part='overlay'] {
|
|
28
|
+
margin-top: var(--lumo-space-xs);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:host([bottom-aligned]) [part='overlay'] {
|
|
32
|
+
margin-bottom: var(--lumo-space-xs);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@media (max-width: 450px), (max-height: 450px) {
|
|
36
|
+
[part='overlay'] {
|
|
37
|
+
width: 100vw;
|
|
38
|
+
height: 70vh;
|
|
39
|
+
max-height: 70vh;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@media (forced-colors: active) {
|
|
44
|
+
[part='overlay'] {
|
|
45
|
+
outline: 3px solid;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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_date-picker-year {
|
|
7
|
+
:host {
|
|
8
|
+
display: block;
|
|
9
|
+
height: 100%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:host([current]) [part='year-number'] {
|
|
13
|
+
color: var(--lumo-primary-text-color);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:host(:not([current])) [part='year-number'],
|
|
17
|
+
[part='year-separator'] {
|
|
18
|
+
opacity: var(--_lumo-date-picker-year-opacity, 0.7);
|
|
19
|
+
transition: 0.2s opacity;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
[part='year-number'],
|
|
23
|
+
[part='year-separator'] {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
height: 50%;
|
|
28
|
+
transform: translateY(-50%);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
[part='year-separator']::after {
|
|
32
|
+
color: var(--lumo-disabled-text-color);
|
|
33
|
+
content: '\2022';
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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_date-picker {
|
|
7
|
+
:host([opened]) {
|
|
8
|
+
pointer-events: auto;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:host([dir='rtl']) [part='input-field'] {
|
|
12
|
+
direction: ltr;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:host([dir='rtl']) [part='input-field'] ::slotted(input)::placeholder {
|
|
16
|
+
direction: rtl;
|
|
17
|
+
text-align: left;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[part~='toggle-button']::before {
|
|
21
|
+
content: var(--lumo-icons-calendar);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
[part~='clear-button']::before {
|
|
25
|
+
content: var(--lumo-icons-cross);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@media (max-width: 450px), (max-height: 450px) {
|
|
29
|
+
[part='overlay-content'] {
|
|
30
|
+
height: 70vh;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:host([dir='rtl']) [part='input-field'] ::slotted(input) {
|
|
35
|
+
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
|
|
39
|
+
--_lumo-text-field-overflow-mask-image: none;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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_date-time-picker {
|
|
7
|
+
.vaadin-date-time-picker-container {
|
|
8
|
+
--vaadin-field-default-width: auto;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.slots {
|
|
12
|
+
display: flex;
|
|
13
|
+
--vaadin-field-default-width: 12em;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.slots ::slotted([slot='date-picker']) {
|
|
17
|
+
min-width: 0;
|
|
18
|
+
flex: 1 1 auto;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.slots ::slotted([slot='time-picker']) {
|
|
22
|
+
min-width: 0;
|
|
23
|
+
flex: 1 1.65 auto;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
::slotted([slot='date-picker']) {
|
|
27
|
+
margin-inline-end: 2px;
|
|
28
|
+
--vaadin-input-field-top-end-radius: 0;
|
|
29
|
+
--vaadin-input-field-bottom-end-radius: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
::slotted([slot='time-picker']) {
|
|
33
|
+
--vaadin-input-field-top-start-radius: 0;
|
|
34
|
+
--vaadin-input-field-bottom-start-radius: 0;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
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_details-summary {
|
|
7
|
+
:host {
|
|
8
|
+
white-space: nowrap;
|
|
9
|
+
-webkit-user-select: none;
|
|
10
|
+
user-select: none;
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
width: 100%;
|
|
14
|
+
outline: none;
|
|
15
|
+
padding: var(--lumo-space-s) 0;
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
font-family: var(--lumo-font-family);
|
|
18
|
+
font-size: var(--lumo-font-size-m);
|
|
19
|
+
font-weight: 500;
|
|
20
|
+
line-height: var(--lumo-line-height-xs);
|
|
21
|
+
color: var(--lumo-secondary-text-color);
|
|
22
|
+
background-color: inherit;
|
|
23
|
+
border-radius: var(--lumo-border-radius-m);
|
|
24
|
+
cursor: var(--lumo-clickable-cursor);
|
|
25
|
+
-webkit-tap-highlight-color: transparent;
|
|
26
|
+
-webkit-font-smoothing: antialiased;
|
|
27
|
+
-moz-osx-font-smoothing: grayscale;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:host([hidden]) {
|
|
31
|
+
display: none !important;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:host([disabled]) {
|
|
35
|
+
pointer-events: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:host([disabled]),
|
|
39
|
+
:host([disabled]) [part='toggle'] {
|
|
40
|
+
color: var(--lumo-disabled-text-color);
|
|
41
|
+
cursor: default;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@media (hover: hover) {
|
|
45
|
+
:host(:hover:not([disabled])),
|
|
46
|
+
:host(:hover:not([disabled])) [part='toggle'] {
|
|
47
|
+
color: var(--lumo-contrast-80pct);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
[part='toggle'] {
|
|
52
|
+
display: block;
|
|
53
|
+
width: 1em;
|
|
54
|
+
height: 1em;
|
|
55
|
+
margin-left: calc(var(--lumo-space-xs) * -1);
|
|
56
|
+
margin-right: var(--lumo-space-xs);
|
|
57
|
+
font-size: var(--lumo-icon-size-s);
|
|
58
|
+
line-height: 1;
|
|
59
|
+
color: var(--lumo-contrast-60pct);
|
|
60
|
+
font-family: 'lumo-icons';
|
|
61
|
+
cursor: var(--lumo-clickable-cursor);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
[part='toggle']::before {
|
|
65
|
+
content: var(--lumo-icons-angle-right);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:host([opened]) [part='toggle'] {
|
|
69
|
+
transform: rotate(90deg);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
[part='content'] {
|
|
73
|
+
flex-grow: 1;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* RTL styles */
|
|
77
|
+
:host([dir='rtl']) [part='toggle'] {
|
|
78
|
+
margin-left: var(--lumo-space-xs);
|
|
79
|
+
margin-right: calc(var(--lumo-space-xs) * -1);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:host([dir='rtl']) [part='toggle']::before {
|
|
83
|
+
content: var(--lumo-icons-angle-left);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:host([opened][dir='rtl']) [part='toggle'] {
|
|
87
|
+
transform: rotate(-90deg);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* Small */
|
|
91
|
+
:host([theme~='small']) {
|
|
92
|
+
padding-top: var(--lumo-space-xs);
|
|
93
|
+
padding-bottom: var(--lumo-space-xs);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:host([theme~='small']) [part='toggle'] {
|
|
97
|
+
margin-right: calc(var(--lumo-space-xs) / 2);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
:host([theme~='small'][dir='rtl']) [part='toggle'] {
|
|
101
|
+
margin-left: calc(var(--lumo-space-xs) / 2);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* Filled */
|
|
105
|
+
:host([theme~='filled']) {
|
|
106
|
+
padding: var(--lumo-space-s) calc(var(--lumo-space-s) + var(--lumo-space-xs) / 2);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* Reverse */
|
|
110
|
+
:host([theme~='reverse']) {
|
|
111
|
+
justify-content: space-between;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:host([theme~='reverse']) [part='toggle'] {
|
|
115
|
+
order: 1;
|
|
116
|
+
margin-right: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
:host([theme~='reverse'][dir='rtl']) [part='toggle'] {
|
|
120
|
+
margin-left: 0;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* Filled reverse */
|
|
124
|
+
:host([theme~='reverse'][theme~='filled']) {
|
|
125
|
+
padding-left: var(--lumo-space-m);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
:host([theme~='reverse'][theme~='filled'][dir='rtl']) {
|
|
129
|
+
padding-right: var(--lumo-space-m);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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_details {
|
|
7
|
+
:host {
|
|
8
|
+
margin: var(--lumo-space-xs) 0;
|
|
9
|
+
outline: none;
|
|
10
|
+
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
11
|
+
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host([focus-ring]) ::slotted([slot='summary']) {
|
|
15
|
+
box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
[part='content'] {
|
|
19
|
+
padding: var(--lumo-space-xs) 0 var(--lumo-space-s);
|
|
20
|
+
font-size: var(--lumo-font-size-m);
|
|
21
|
+
line-height: var(--lumo-line-height-m);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:host([theme~='filled']) {
|
|
25
|
+
background-color: var(--lumo-contrast-5pct);
|
|
26
|
+
border-radius: var(--lumo-border-radius-m);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host([theme~='filled']) [part='content'] {
|
|
30
|
+
padding-left: var(--lumo-space-m);
|
|
31
|
+
padding-right: var(--lumo-space-m);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:host([theme~='small']) [part$='content'] {
|
|
35
|
+
font-size: var(--lumo-font-size-s);
|
|
36
|
+
}
|
|
37
|
+
}
|