@vaadin/vaadin-lumo-styles 24.8.4 → 25.0.0-alpha10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/auto-complete.css +3 -73
- package/components/accordion-heading.css +14 -0
- package/components/accordion-panel.css +15 -0
- package/components/accordion.css +7 -0
- package/components/app-layout.css +11 -0
- package/components/avatar-group.css +31 -0
- package/components/avatar.css +17 -0
- package/components/button.css +12 -0
- package/components/card.css +50 -0
- package/components/charts.css +11 -0
- package/components/checkbox-group.css +23 -0
- package/components/checkbox.css +14 -0
- package/components/combo-box.css +47 -0
- package/components/confirm-dialog.css +17 -0
- package/components/context-menu.css +32 -0
- package/components/crud.css +40 -0
- package/components/custom-field.css +20 -0
- package/components/dashboard.css +34 -0
- package/components/date-picker.css +49 -0
- package/components/date-time-picker.css +28 -0
- package/components/details-summary.css +11 -0
- package/components/details.css +12 -0
- package/components/dialog.css +16 -0
- package/components/drawer-toggle.css +14 -0
- package/components/email-field.css +25 -0
- package/components/field-highlighter.css +22 -0
- package/components/form-item.css +11 -0
- package/components/form-layout.css +11 -0
- package/components/grid-filter-column.css +6 -0
- package/components/grid-filter.css +12 -0
- package/components/grid-pro-edit-column.css +48 -0
- package/components/grid-pro.css +14 -0
- package/components/grid-selection-column.css +6 -0
- package/components/grid-sort-column.css +6 -0
- package/components/grid-sorter.css +19 -0
- package/components/grid-tree-column.css +6 -0
- package/components/grid-tree-toggle.css +11 -0
- package/components/grid.css +11 -0
- package/components/horizontal-layout.css +11 -0
- package/components/icon.css +11 -0
- package/components/input-container.css +11 -0
- package/components/integer-field.css +25 -0
- package/components/item.css +11 -0
- package/components/list-box.css +11 -0
- package/components/login-form.css +14 -0
- package/components/login.css +15 -0
- package/components/map.css +11 -0
- package/components/master-detail-layout.css +19 -0
- package/components/menu-bar.css +47 -0
- package/components/message-input.css +13 -0
- package/components/message-list.css +6 -0
- package/components/message.css +12 -0
- package/components/multi-select-combo-box.css +61 -0
- package/components/notification.css +15 -0
- package/components/number-field.css +25 -0
- package/components/overlay.css +11 -0
- package/components/password-field.css +32 -0
- package/components/popover.css +14 -0
- package/components/progress-bar.css +11 -0
- package/components/radio-button.css +14 -0
- package/components/radio-group.css +23 -0
- package/components/rich-text-editor.css +26 -0
- package/components/scroller.css +11 -0
- package/components/select.css +48 -0
- package/components/side-nav-item.css +14 -0
- package/components/side-nav.css +12 -0
- package/components/split-layout.css +11 -0
- package/components/tab.css +11 -0
- package/components/tabs.css +12 -0
- package/components/tabsheet.css +19 -0
- package/components/text-area.css +25 -0
- package/components/text-field.css +23 -0
- package/components/time-picker.css +43 -0
- package/components/tooltip.css +14 -0
- package/components/upload.css +28 -0
- package/components/vertical-layout.css +11 -0
- package/components.css +71 -0
- package/font-icons.js +28 -26
- package/global.css +8 -0
- package/lumo.css +8 -0
- package/mixins/input-field-shared.js +1 -2
- package/mixins/menu-overlay.js +0 -2
- package/mixins/required-field.js +0 -1
- package/package.json +17 -15
- package/props.css +12 -0
- package/src/components/accordion-heading.css +42 -0
- package/src/components/accordion-panel.css +38 -0
- package/src/components/app-layout.css +193 -0
- package/src/components/avatar-group-menu-item.css +22 -0
- package/src/components/avatar-group-overlay.css +15 -0
- package/src/components/avatar-group.css +67 -0
- package/src/components/avatar.css +86 -0
- package/src/components/button.css +334 -0
- package/src/components/card.css +38 -0
- package/src/components/chart.css +85 -0
- package/src/components/checkbox-group.css +18 -0
- package/src/components/checkbox.css +341 -0
- package/src/components/combo-box-item.css +18 -0
- package/src/components/combo-box-overlay.css +15 -0
- package/src/components/combo-box.css +14 -0
- package/src/components/confirm-dialog-overlay.css +59 -0
- package/src/components/context-menu-item.css +39 -0
- package/src/components/context-menu-list-box.css +40 -0
- package/src/components/context-menu-overlay.css +41 -0
- package/src/components/crud-dialog-overlay.css +57 -0
- package/src/components/crud-edit.css +30 -0
- package/src/components/crud.css +157 -0
- package/src/components/custom-field.css +102 -0
- package/src/components/dashboard-layout.css +94 -0
- package/src/components/dashboard-section.css +113 -0
- package/src/components/dashboard-widget.css +224 -0
- package/src/components/dashboard.css +23 -0
- package/src/components/date-picker-month-calendar.css +192 -0
- package/src/components/date-picker-overlay-content.css +161 -0
- package/src/components/date-picker-overlay.css +60 -0
- package/src/components/date-picker-year.css +35 -0
- package/src/components/date-picker.css +41 -0
- package/src/components/date-time-picker.css +36 -0
- package/src/components/details-summary.css +131 -0
- package/src/components/details.css +37 -0
- package/src/components/dialog-overlay.css +173 -0
- package/src/components/drawer-toggle.css +51 -0
- package/src/components/email-field.css +26 -0
- package/src/components/field-outline.css +51 -0
- package/src/components/form-item.css +36 -0
- package/src/components/form-layout.css +12 -0
- package/src/components/grid-filter.css +16 -0
- package/src/components/grid-pro-edit-select.css +19 -0
- package/src/components/grid-pro.css +84 -0
- package/src/components/grid-sorter.css +70 -0
- package/src/components/grid-tree-toggle.css +104 -0
- package/src/components/grid.css +755 -0
- package/src/components/horizontal-layout.css +34 -0
- package/src/components/icon.css +11 -0
- package/src/components/input-container.css +228 -0
- package/src/components/item.css +94 -0
- package/src/components/list-box.css +31 -0
- package/src/components/login-form-wrapper.css +113 -0
- package/src/components/login-overlay-wrapper.css +189 -0
- package/src/components/map.css +182 -0
- package/src/components/menu-bar-button.css +128 -0
- package/src/components/menu-bar-item.css +23 -0
- package/src/components/menu-bar-overlay.css +10 -0
- package/src/components/menu-bar.css +31 -0
- package/src/components/message-input.css +30 -0
- package/src/components/message.css +82 -0
- package/src/components/multi-select-combo-box-chip.css +113 -0
- package/src/components/multi-select-combo-box-container.css +20 -0
- package/src/components/multi-select-combo-box-item.css +13 -0
- package/src/components/multi-select-combo-box-overlay.css +18 -0
- package/src/components/multi-select-combo-box.css +102 -0
- package/src/components/notification-card.css +228 -0
- package/src/components/notification-container.css +60 -0
- package/src/components/number-field.css +53 -0
- package/src/components/password-field-button.css +19 -0
- package/src/components/password-field.css +24 -0
- package/src/components/popover-overlay.css +156 -0
- package/src/components/progress-bar.css +295 -0
- package/src/components/radio-button.css +156 -0
- package/src/components/radio-group.css +18 -0
- package/src/components/rich-text-editor-popup-overlay.css +27 -0
- package/src/components/rich-text-editor.css +485 -0
- package/src/components/scroller.css +40 -0
- package/src/components/select-overlay.css +54 -0
- package/src/components/select-value-button.css +57 -0
- package/src/components/select.css +60 -0
- package/src/components/side-nav-item.css +170 -0
- package/src/components/side-nav.css +102 -0
- package/src/components/split-layout.css +131 -0
- package/src/components/tab.css +246 -0
- package/src/components/tabs.css +285 -0
- package/src/components/tabsheet.css +59 -0
- package/src/components/text-area.css +116 -0
- package/src/components/time-picker-overlay.css +15 -0
- package/src/components/time-picker.css +36 -0
- package/src/components/tooltip-overlay.css +50 -0
- package/src/components/upload-file-list.css +24 -0
- package/src/components/upload-file.css +133 -0
- package/src/components/upload-icon.css +20 -0
- package/src/components/upload.css +56 -0
- package/src/components/user-tag.css +48 -0
- package/src/components/user-tags-overlay.css +64 -0
- package/src/components/vertical-layout.css +34 -0
- package/src/global/badge.css +167 -0
- package/src/global/color-scheme.css +99 -0
- package/src/global/typography.css +113 -0
- package/src/mixins/checkable-field.css +67 -0
- package/src/mixins/combo-box-loader.css +14 -0
- package/src/mixins/combo-box-overlay.css +30 -0
- package/src/mixins/dashboard-item.css +252 -0
- package/src/mixins/field-base.css +187 -0
- package/src/mixins/field-button.css +46 -0
- package/src/mixins/field-error-message.css +36 -0
- package/src/mixins/field-helper.css +62 -0
- package/src/mixins/field-label.css +62 -0
- package/src/mixins/field-required.css +26 -0
- package/src/mixins/grid-pro-editor.css +35 -0
- package/src/mixins/group-field.css +58 -0
- package/src/mixins/loader.css +48 -0
- package/src/mixins/menu-overlay-core.css +36 -0
- package/src/mixins/menu-overlay-ext.css +63 -0
- package/src/mixins/overlay.css +121 -0
- package/src/mixins/resizable-overlay.css +99 -0
- package/src/props/color.css +98 -0
- package/src/props/icons.css +61 -0
- package/src/props/reset.css +11 -0
- package/src/props/sizing.css +19 -0
- package/src/props/spacing.css +27 -0
- package/src/props/style.css +21 -0
- package/src/props/typography.css +24 -0
- package/src/utilities/accessibility.css +17 -0
- package/src/utilities/background.css +189 -0
- package/src/utilities/border.css +173 -0
- package/src/utilities/filter.css +37 -0
- package/src/utilities/flexbox-grid.css +781 -0
- package/src/utilities/layout.css +629 -0
- package/src/utilities/shadows.css +29 -0
- package/src/utilities/sizing.css +142 -0
- package/src/utilities/spacing.css +682 -0
- package/src/utilities/transition.css +46 -0
- package/src/utilities/typography.css +424 -0
- package/style.d.ts +0 -2
- package/style.js +1 -89
- package/utilities/transition.js +3 -2
- package/utility.css +17 -0
- package/vaadin-iconset.js +2 -0
|
@@ -0,0 +1,170 @@
|
|
|
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_side-nav-item {
|
|
7
|
+
:host {
|
|
8
|
+
display: block;
|
|
9
|
+
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
10
|
+
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:host([hidden]),
|
|
14
|
+
[hidden] {
|
|
15
|
+
display: none !important;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:host([disabled]) {
|
|
19
|
+
pointer-events: none;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
[part='content'] {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[part='link'] {
|
|
28
|
+
flex: auto;
|
|
29
|
+
min-width: 0;
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
text-decoration: none;
|
|
33
|
+
color: inherit;
|
|
34
|
+
font: inherit;
|
|
35
|
+
width: 100%;
|
|
36
|
+
gap: var(--lumo-space-xs);
|
|
37
|
+
padding: var(--lumo-space-s);
|
|
38
|
+
padding-inline-start: calc(var(--lumo-space-s) + var(--_child-indent, 0px));
|
|
39
|
+
border-radius: var(--lumo-border-radius-m);
|
|
40
|
+
transition:
|
|
41
|
+
background-color 140ms,
|
|
42
|
+
color 140ms;
|
|
43
|
+
cursor: var(--lumo-clickable-cursor, default);
|
|
44
|
+
min-height: var(--lumo-icon-size-m);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
button {
|
|
48
|
+
appearance: none;
|
|
49
|
+
flex: none;
|
|
50
|
+
position: relative;
|
|
51
|
+
margin: 0;
|
|
52
|
+
padding: 0;
|
|
53
|
+
border: 0;
|
|
54
|
+
background: transparent;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
[part='children'] {
|
|
58
|
+
padding: 0;
|
|
59
|
+
margin: 0;
|
|
60
|
+
list-style-type: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:host(:not([has-children])) button {
|
|
64
|
+
display: none !important;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
slot[name='prefix'],
|
|
68
|
+
slot[name='suffix'] {
|
|
69
|
+
flex: none;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
slot:not([name]) {
|
|
73
|
+
display: block;
|
|
74
|
+
flex: auto;
|
|
75
|
+
min-width: 0;
|
|
76
|
+
overflow: hidden;
|
|
77
|
+
text-overflow: ellipsis;
|
|
78
|
+
white-space: nowrap;
|
|
79
|
+
margin: 0 var(--lumo-space-s);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
[part='link'][href] {
|
|
83
|
+
cursor: pointer;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:host([disabled]) [part='link'] {
|
|
87
|
+
color: var(--lumo-disabled-text-color);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
[part='toggle-button'] {
|
|
91
|
+
margin-inline-end: calc(var(--lumo-space-xs) * -1);
|
|
92
|
+
width: var(--lumo-size-s);
|
|
93
|
+
height: var(--lumo-size-s);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:host([has-children]) [part='content'] {
|
|
97
|
+
padding-inline-end: var(--lumo-space-s);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@media (any-hover: hover) {
|
|
101
|
+
[part='link']:hover {
|
|
102
|
+
color: var(--lumo-header-text-color);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
[part='toggle-button']:hover {
|
|
106
|
+
color: var(--lumo-body-text-color);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
[part='link']:active:focus {
|
|
111
|
+
background-color: var(--lumo-contrast-5pct);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
[part='toggle-button']::before {
|
|
115
|
+
content: var(--lumo-icons-dropdown);
|
|
116
|
+
transform: rotate(-90deg);
|
|
117
|
+
transition: transform 140ms;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
:host([dir='rtl']) [part='toggle-button']::before {
|
|
121
|
+
transform: rotate(90deg);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
:host([expanded]) [part='toggle-button']::before {
|
|
125
|
+
transform: none;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
[part='link'],
|
|
129
|
+
[part='toggle-button'] {
|
|
130
|
+
outline: none;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
[part='link']:focus-visible,
|
|
134
|
+
[part='toggle-button']:focus-visible {
|
|
135
|
+
border-radius: var(--lumo-border-radius-m);
|
|
136
|
+
box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
[part='link']:active {
|
|
140
|
+
color: var(--lumo-header-text-color);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
slot[name='prefix']::slotted(:is(vaadin-icon, [class*='icon'])) {
|
|
144
|
+
padding: 0.1em;
|
|
145
|
+
flex-shrink: 0;
|
|
146
|
+
color: var(--lumo-contrast-60pct);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
:host([disabled]) slot[name='prefix']::slotted(:is(vaadin-icon, [class*='icon'])) {
|
|
150
|
+
color: var(--lumo-disabled-text-color);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
:host([current]) slot[name='prefix']::slotted(:is(vaadin-icon, [class*='icon'])) {
|
|
154
|
+
color: inherit;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
slot[name='children'] {
|
|
158
|
+
--_child-indent: calc(var(--_child-indent-2, 0px) + var(--vaadin-side-nav-child-indent, var(--lumo-space-l)));
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
slot[name='children']::slotted(*) {
|
|
162
|
+
--_child-indent-2: var(--_child-indent);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
:host([current]) [part='content'] {
|
|
166
|
+
background-color: var(--lumo-primary-color-10pct);
|
|
167
|
+
color: var(--vaadin-selection-color-text, var(--lumo-primary-text-color));
|
|
168
|
+
border-radius: var(--lumo-border-radius-m);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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_side-nav {
|
|
7
|
+
:host {
|
|
8
|
+
display: block;
|
|
9
|
+
font-family: var(--lumo-font-family);
|
|
10
|
+
font-size: var(--lumo-font-size-m);
|
|
11
|
+
font-weight: 500;
|
|
12
|
+
line-height: var(--lumo-line-height-xs);
|
|
13
|
+
color: var(--lumo-body-text-color);
|
|
14
|
+
-webkit-tap-highlight-color: transparent;
|
|
15
|
+
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
16
|
+
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:host([hidden]) {
|
|
20
|
+
display: none !important;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
button {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: inherit;
|
|
27
|
+
width: 100%;
|
|
28
|
+
margin: 0;
|
|
29
|
+
padding: 0;
|
|
30
|
+
background-color: initial;
|
|
31
|
+
color: inherit;
|
|
32
|
+
border: initial;
|
|
33
|
+
outline: none;
|
|
34
|
+
font: inherit;
|
|
35
|
+
text-align: inherit;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
[part='children'] {
|
|
39
|
+
padding: 0;
|
|
40
|
+
margin: 0;
|
|
41
|
+
list-style-type: none;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[part='label'] {
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
width: 100%;
|
|
48
|
+
outline: none;
|
|
49
|
+
box-sizing: border-box;
|
|
50
|
+
border-radius: var(--lumo-border-radius-m);
|
|
51
|
+
font-family: var(--lumo-font-family);
|
|
52
|
+
font-size: var(--lumo-font-size-s);
|
|
53
|
+
font-weight: 500;
|
|
54
|
+
line-height: var(--lumo-line-height-xs);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
[part='label'] ::slotted([slot='label']) {
|
|
58
|
+
color: var(--lumo-secondary-text-color);
|
|
59
|
+
margin: var(--lumo-space-s);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:host([focus-ring]) [part='label'] {
|
|
63
|
+
box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
[part='toggle-button'] {
|
|
67
|
+
display: inline-flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
justify-content: center;
|
|
70
|
+
width: var(--lumo-size-s);
|
|
71
|
+
height: var(--lumo-size-s);
|
|
72
|
+
margin-inline: auto var(--lumo-space-xs);
|
|
73
|
+
font-size: var(--lumo-icon-size-m);
|
|
74
|
+
line-height: 1;
|
|
75
|
+
color: var(--lumo-contrast-60pct);
|
|
76
|
+
font-family: 'lumo-icons';
|
|
77
|
+
cursor: var(--lumo-clickable-cursor);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
[part='toggle-button']::before {
|
|
81
|
+
content: var(--lumo-icons-angle-right);
|
|
82
|
+
transition: transform 140ms;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:host(:not([collapsible])) [part='toggle-button'] {
|
|
86
|
+
display: none !important;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:host(:not([collapsed])) [part='toggle-button']::before {
|
|
90
|
+
transform: rotate(90deg);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
:host([collapsed][dir='rtl']) [part='toggle-button']::before {
|
|
94
|
+
transform: rotate(180deg);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@media (any-hover: hover) {
|
|
98
|
+
[part='label']:hover [part='toggle-button'] {
|
|
99
|
+
color: var(--lumo-body-text-color);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -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_split-layout {
|
|
7
|
+
:host {
|
|
8
|
+
display: flex;
|
|
9
|
+
overflow: hidden !important;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:host([hidden]) {
|
|
13
|
+
display: none !important;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:host([orientation='vertical']) {
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:host ::slotted(*) {
|
|
21
|
+
flex: 1 1 auto;
|
|
22
|
+
overflow: auto;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
[part='splitter'] {
|
|
26
|
+
flex: none;
|
|
27
|
+
position: relative;
|
|
28
|
+
z-index: 1;
|
|
29
|
+
overflow: visible;
|
|
30
|
+
min-width: var(--lumo-space-s);
|
|
31
|
+
min-height: var(--lumo-space-s);
|
|
32
|
+
background-color: var(--lumo-contrast-5pct);
|
|
33
|
+
transition: 0.1s background-color;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:host(:not([orientation='vertical'])) > [part='splitter'] {
|
|
37
|
+
cursor: ew-resize;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:host([orientation='vertical']) > [part='splitter'] {
|
|
41
|
+
cursor: ns-resize;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[part='handle'] {
|
|
45
|
+
position: absolute;
|
|
46
|
+
top: 50%;
|
|
47
|
+
left: 50%;
|
|
48
|
+
transform: translate3d(-50%, -50%, 0);
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
width: var(--lumo-size-m);
|
|
53
|
+
height: var(--lumo-size-m);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
[part='handle']::after {
|
|
57
|
+
content: '';
|
|
58
|
+
display: block;
|
|
59
|
+
--_handle-size: 4px;
|
|
60
|
+
width: var(--_handle-size);
|
|
61
|
+
height: 100%;
|
|
62
|
+
max-width: 100%;
|
|
63
|
+
max-height: 100%;
|
|
64
|
+
border-radius: var(--lumo-border-radius-s);
|
|
65
|
+
background-color: var(--lumo-contrast-30pct);
|
|
66
|
+
transition:
|
|
67
|
+
0.1s opacity,
|
|
68
|
+
0.1s background-color;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:host([orientation='vertical']) [part='handle']::after {
|
|
72
|
+
width: 100%;
|
|
73
|
+
height: var(--_handle-size);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* Active style */
|
|
77
|
+
[part='splitter']:active [part='handle']::after {
|
|
78
|
+
background-color: var(--lumo-contrast-50pct);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* Small/minimal */
|
|
82
|
+
:host([theme~='small']) > [part='splitter'] {
|
|
83
|
+
border-left: 1px solid var(--lumo-contrast-10pct);
|
|
84
|
+
border-top: 1px solid var(--lumo-contrast-10pct);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
:host(:is([theme~='small'], [theme~='minimal'])) > [part='splitter'] {
|
|
88
|
+
min-width: 0;
|
|
89
|
+
min-height: 0;
|
|
90
|
+
background-color: transparent;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
:host(:is([theme~='small'], [theme~='minimal'])) > [part='splitter']::after {
|
|
94
|
+
content: '';
|
|
95
|
+
position: absolute;
|
|
96
|
+
inset: -4px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
:host(:is([theme~='small'], [theme~='minimal'])) > [part='splitter'] > [part='handle'] {
|
|
100
|
+
left: calc(50% - 0.5px);
|
|
101
|
+
top: calc(50% - 0.5px);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:host(:is([theme~='small'], [theme~='minimal'])) > [part='splitter'] > [part='handle']::after {
|
|
105
|
+
opacity: 0;
|
|
106
|
+
--_handle-size: 5px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
:host(:is([theme~='small'], [theme~='minimal'])) > [part='splitter']:hover > [part='handle']::after,
|
|
110
|
+
:host(:is([theme~='small'], [theme~='minimal'])) > [part='splitter']:active > [part='handle']::after {
|
|
111
|
+
opacity: 1;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/* Hover style */
|
|
115
|
+
@media (any-hover: hover) {
|
|
116
|
+
[part='splitter']:hover [part='handle']::after {
|
|
117
|
+
background-color: var(--lumo-contrast-40pct);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@media (forced-colors: active) {
|
|
122
|
+
[part~='splitter'] {
|
|
123
|
+
outline: 1px solid;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
[part~='handle']::after {
|
|
127
|
+
background-color: AccentColor !important;
|
|
128
|
+
forced-color-adjust: none;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,246 @@
|
|
|
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_tab {
|
|
7
|
+
:host {
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
padding: 0.5rem 0.75rem;
|
|
10
|
+
font-family: var(--lumo-font-family);
|
|
11
|
+
font-size: var(--lumo-font-size-m);
|
|
12
|
+
line-height: var(--lumo-line-height-xs);
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
opacity: 1;
|
|
15
|
+
color: var(--lumo-secondary-text-color);
|
|
16
|
+
transition:
|
|
17
|
+
0.15s color,
|
|
18
|
+
0.2s transform;
|
|
19
|
+
flex-shrink: 0;
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
position: relative;
|
|
23
|
+
cursor: var(--lumo-clickable-cursor);
|
|
24
|
+
transform-origin: 50% 100%;
|
|
25
|
+
outline: none;
|
|
26
|
+
-webkit-font-smoothing: antialiased;
|
|
27
|
+
-moz-osx-font-smoothing: grayscale;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
min-width: var(--lumo-size-m);
|
|
30
|
+
-webkit-user-select: none;
|
|
31
|
+
user-select: none;
|
|
32
|
+
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
33
|
+
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
34
|
+
--_selection-color: var(--vaadin-selection-color, var(--lumo-primary-color));
|
|
35
|
+
--_selection-color-text: var(--vaadin-selection-color-text, var(--lumo-primary-text-color));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:host([hidden]) {
|
|
39
|
+
display: none !important;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:host(:not([orientation='vertical'])) {
|
|
43
|
+
text-align: center;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:host([orientation='vertical']) {
|
|
47
|
+
transform-origin: 0% 50%;
|
|
48
|
+
padding: 0.25rem 1rem;
|
|
49
|
+
min-height: var(--lumo-size-m);
|
|
50
|
+
min-width: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:host(:hover),
|
|
54
|
+
:host([focus-ring]) {
|
|
55
|
+
color: var(--lumo-body-text-color);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:host([selected]) {
|
|
59
|
+
color: var(--_selection-color-text);
|
|
60
|
+
transition: 0.6s color;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:host([active]:not([selected])) {
|
|
64
|
+
color: var(--_selection-color-text);
|
|
65
|
+
transition-duration: 0.1s;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:host::before,
|
|
69
|
+
:host::after {
|
|
70
|
+
content: '';
|
|
71
|
+
position: absolute;
|
|
72
|
+
display: var(--_lumo-tab-marker-display, block);
|
|
73
|
+
bottom: 0;
|
|
74
|
+
left: 50%;
|
|
75
|
+
width: var(--lumo-size-s);
|
|
76
|
+
height: 2px;
|
|
77
|
+
background-color: var(--lumo-contrast-60pct);
|
|
78
|
+
border-radius: var(--lumo-border-radius-s) var(--lumo-border-radius-s) 0 0;
|
|
79
|
+
transform: translateX(-50%) scale(0);
|
|
80
|
+
transform-origin: 50% 100%;
|
|
81
|
+
transition: 0.14s transform cubic-bezier(0.12, 0.32, 0.54, 1);
|
|
82
|
+
will-change: transform;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:host([orientation='vertical'])::before,
|
|
86
|
+
:host([orientation='vertical'])::after {
|
|
87
|
+
left: 0;
|
|
88
|
+
bottom: 50%;
|
|
89
|
+
transform: translateY(50%) scale(0);
|
|
90
|
+
width: 2px;
|
|
91
|
+
height: var(--lumo-size-xs);
|
|
92
|
+
border-radius: 0 var(--lumo-border-radius-s) var(--lumo-border-radius-s) 0;
|
|
93
|
+
transform-origin: 100% 50%;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:host::after {
|
|
97
|
+
box-shadow: 0 0 0 4px var(--_selection-color);
|
|
98
|
+
opacity: 0.15;
|
|
99
|
+
transition:
|
|
100
|
+
0.15s 0.02s transform,
|
|
101
|
+
0.8s 0.17s opacity;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:host([selected])::before,
|
|
105
|
+
:host([selected])::after {
|
|
106
|
+
background-color: var(--_selection-color);
|
|
107
|
+
transform: translateX(-50%) scale(1);
|
|
108
|
+
transition-timing-function: cubic-bezier(0.12, 0.32, 0.54, 1.5);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
:host([orientation='vertical'][selected])::before,
|
|
112
|
+
:host([orientation='vertical'][selected])::after {
|
|
113
|
+
transform: translateY(50%) scale(1);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
:host([selected]:not([active]))::after {
|
|
117
|
+
opacity: 0;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
:host(:not([orientation='vertical'])) ::slotted(a[href]) {
|
|
121
|
+
justify-content: center;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
:host ::slotted(a) {
|
|
125
|
+
display: flex;
|
|
126
|
+
width: 100%;
|
|
127
|
+
align-items: center;
|
|
128
|
+
height: 100%;
|
|
129
|
+
margin: -0.5rem -0.75rem;
|
|
130
|
+
padding: 0.5rem 0.75rem;
|
|
131
|
+
outline: none;
|
|
132
|
+
|
|
133
|
+
/*
|
|
134
|
+
Override the CSS inherited from `lumo-color` and `lumo-typography`.
|
|
135
|
+
Note: `!important` is needed because of the `:slotted` specificity.
|
|
136
|
+
*/
|
|
137
|
+
text-decoration: none !important;
|
|
138
|
+
color: inherit !important;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
:host ::slotted(vaadin-icon) {
|
|
142
|
+
margin: 0 4px;
|
|
143
|
+
width: var(--lumo-icon-size-m);
|
|
144
|
+
height: var(--lumo-icon-size-m);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
|
|
148
|
+
:host ::slotted(vaadin-icon[icon^='vaadin:']) {
|
|
149
|
+
padding: 0.25rem;
|
|
150
|
+
box-sizing: border-box !important;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
:host(:not([dir='rtl'])) ::slotted(vaadin-icon:first-child) {
|
|
154
|
+
margin-left: 0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
:host(:not([dir='rtl'])) ::slotted(vaadin-icon:last-child) {
|
|
158
|
+
margin-right: 0;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
:host([theme~='icon-on-top']) {
|
|
162
|
+
display: flex;
|
|
163
|
+
flex-direction: column;
|
|
164
|
+
align-items: center;
|
|
165
|
+
justify-content: space-around;
|
|
166
|
+
text-align: center;
|
|
167
|
+
padding-bottom: 0.5rem;
|
|
168
|
+
padding-top: 0.25rem;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
:host([theme~='icon-on-top']) ::slotted(a) {
|
|
172
|
+
flex-direction: column;
|
|
173
|
+
align-items: center;
|
|
174
|
+
margin-top: -0.25rem;
|
|
175
|
+
padding-top: 0.25rem;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
:host([theme~='icon-on-top']) ::slotted(vaadin-icon) {
|
|
179
|
+
margin: 0;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* Disabled */
|
|
183
|
+
|
|
184
|
+
:host([disabled]) {
|
|
185
|
+
pointer-events: none;
|
|
186
|
+
opacity: 1;
|
|
187
|
+
color: var(--lumo-disabled-text-color);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/* Focus-ring */
|
|
191
|
+
|
|
192
|
+
:host([focus-ring]) {
|
|
193
|
+
box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
194
|
+
border-radius: var(--lumo-border-radius-m);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/* RTL specific styles */
|
|
198
|
+
|
|
199
|
+
:host([dir='rtl'])::before,
|
|
200
|
+
:host([dir='rtl'])::after {
|
|
201
|
+
left: auto;
|
|
202
|
+
right: 50%;
|
|
203
|
+
transform: translateX(50%) scale(0);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
:host([dir='rtl'][selected]:not([orientation='vertical']))::before,
|
|
207
|
+
:host([dir='rtl'][selected]:not([orientation='vertical']))::after {
|
|
208
|
+
transform: translateX(50%) scale(1);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
:host([dir='rtl']) ::slotted(vaadin-icon:first-child) {
|
|
212
|
+
margin-right: 0;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
:host([dir='rtl']) ::slotted(vaadin-icon:last-child) {
|
|
216
|
+
margin-left: 0;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
:host([orientation='vertical'][dir='rtl']) {
|
|
220
|
+
transform-origin: 100% 50%;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
:host([dir='rtl'][orientation='vertical'])::before,
|
|
224
|
+
:host([dir='rtl'][orientation='vertical'])::after {
|
|
225
|
+
left: auto;
|
|
226
|
+
right: 0;
|
|
227
|
+
border-radius: var(--lumo-border-radius-s) 0 0 var(--lumo-border-radius-s);
|
|
228
|
+
transform-origin: 0% 50%;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
@media (forced-colors: active) {
|
|
232
|
+
:host([focused]) {
|
|
233
|
+
outline: 1px solid;
|
|
234
|
+
outline-offset: -1px;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
:host([selected]) {
|
|
238
|
+
border-bottom: 2px solid;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
:host([orientation='vertical'][selected]) {
|
|
242
|
+
border-bottom: none;
|
|
243
|
+
border-left: 2px solid;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|