@vaadin/vaadin-lumo-styles 25.0.0-alpha6 → 25.0.0-alpha8
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 +0 -71
- 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 +11 -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/global.css +8 -0
- package/lumo.css +8 -0
- package/package.json +8 -6
- 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 +88 -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 +11 -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 +38 -0
- package/src/components/icon.css +11 -0
- package/src/components/input-container.css +230 -0
- package/src/components/item.css +94 -0
- package/src/components/list-box.css +31 -0
- package/src/components/login-form-wrapper.css +134 -0
- package/src/components/login-overlay-wrapper.css +179 -0
- package/src/components/map.css +182 -0
- package/src/components/master-detail-layout.css +21 -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 +98 -0
- package/src/components/notification-card.css +228 -0
- package/src/components/notification-container.css +53 -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 +14 -0
- package/src/components/upload.css +56 -0
- package/src/components/user-tag.css +48 -0
- package/src/components/user-tags-overlay.css +67 -0
- package/src/components/vertical-layout.css +38 -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 +253 -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/utility.css +17 -0
|
@@ -0,0 +1,193 @@
|
|
|
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_app-layout {
|
|
7
|
+
:host {
|
|
8
|
+
display: block;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
height: 100%;
|
|
11
|
+
--vaadin-app-layout-transition-duration: 200ms;
|
|
12
|
+
transition: padding var(--vaadin-app-layout-transition-duration);
|
|
13
|
+
--_vaadin-app-layout-drawer-width: var(--vaadin-app-layout-drawer-width, 16em);
|
|
14
|
+
--vaadin-app-layout-touch-optimized: false;
|
|
15
|
+
--vaadin-app-layout-navbar-offset-top: var(--_vaadin-app-layout-navbar-offset-size);
|
|
16
|
+
--vaadin-app-layout-navbar-offset-bottom: var(--_vaadin-app-layout-navbar-offset-size-bottom);
|
|
17
|
+
padding-block: var(--vaadin-app-layout-navbar-offset-top) var(--vaadin-app-layout-navbar-offset-bottom);
|
|
18
|
+
padding-inline-start: var(--vaadin-app-layout-navbar-offset-left);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:host([hidden]),
|
|
22
|
+
[hidden] {
|
|
23
|
+
display: none !important;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:host([no-anim]) {
|
|
27
|
+
--vaadin-app-layout-transition-duration: 0s !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:host([drawer-opened]) {
|
|
31
|
+
--vaadin-app-layout-drawer-offset-left: var(--_vaadin-app-layout-drawer-offset-size);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:host([overlay]) {
|
|
35
|
+
--vaadin-app-layout-drawer-offset-left: 0;
|
|
36
|
+
--vaadin-app-layout-navbar-offset-left: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:host(:not([no-scroll])) [content] {
|
|
40
|
+
overflow: auto;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[content] {
|
|
44
|
+
height: 100%;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@media (pointer: coarse) and (max-width: 800px) and (min-height: 500px) {
|
|
48
|
+
:host {
|
|
49
|
+
--vaadin-app-layout-touch-optimized: true;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
[part='navbar'] {
|
|
54
|
+
position: fixed;
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
top: 0;
|
|
58
|
+
inset-inline: 0;
|
|
59
|
+
transition: inset-inline-start var(--vaadin-app-layout-transition-duration);
|
|
60
|
+
padding-top: var(--safe-area-inset-top);
|
|
61
|
+
padding-left: var(--safe-area-inset-left);
|
|
62
|
+
padding-right: var(--safe-area-inset-right);
|
|
63
|
+
z-index: 1;
|
|
64
|
+
min-height: var(--lumo-size-xl);
|
|
65
|
+
border-bottom: 1px solid var(--lumo-contrast-10pct);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:host([primary-section='drawer'][drawer-opened]:not([overlay])) [part='navbar'] {
|
|
69
|
+
inset-inline-start: var(--vaadin-app-layout-drawer-offset-left, 0);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:host([primary-section='drawer']) [part='drawer'] {
|
|
73
|
+
top: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
[part='navbar'][bottom] {
|
|
77
|
+
top: auto;
|
|
78
|
+
bottom: 0;
|
|
79
|
+
padding-bottom: var(--safe-area-inset-bottom);
|
|
80
|
+
border-bottom: none;
|
|
81
|
+
border-top: 1px solid var(--lumo-contrast-10pct);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
[part='drawer'] {
|
|
85
|
+
overflow: auto;
|
|
86
|
+
position: fixed;
|
|
87
|
+
top: var(--vaadin-app-layout-navbar-offset-top, 0);
|
|
88
|
+
bottom: var(--vaadin-app-layout-navbar-offset-bottom, var(--vaadin-viewport-offset-bottom, 0));
|
|
89
|
+
inset-inline: var(--vaadin-app-layout-navbar-offset-left, 0) auto;
|
|
90
|
+
transition:
|
|
91
|
+
transform var(--vaadin-app-layout-transition-duration),
|
|
92
|
+
visibility var(--vaadin-app-layout-transition-duration);
|
|
93
|
+
transform: translateX(-100%);
|
|
94
|
+
max-width: 90%;
|
|
95
|
+
width: var(--_vaadin-app-layout-drawer-width);
|
|
96
|
+
box-sizing: border-box;
|
|
97
|
+
padding: var(--safe-area-inset-top) 0 var(--safe-area-inset-bottom) var(--safe-area-inset-left);
|
|
98
|
+
outline: none;
|
|
99
|
+
/* The drawer should be inaccessible by the tabbing navigation when it is closed. */
|
|
100
|
+
visibility: hidden;
|
|
101
|
+
display: flex;
|
|
102
|
+
flex-direction: column;
|
|
103
|
+
border-inline-end: 1px solid var(--lumo-contrast-10pct);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
:host([drawer-opened]) [part='drawer'] {
|
|
107
|
+
/* The drawer should be accessible by the tabbing navigation when it is opened. */
|
|
108
|
+
visibility: visible;
|
|
109
|
+
transform: translateX(0%);
|
|
110
|
+
touch-action: manipulation;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
[part='backdrop'] {
|
|
114
|
+
background-color: var(--lumo-shade-20pct);
|
|
115
|
+
opacity: 1;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
:host(:not([drawer-opened])) [part='backdrop'] {
|
|
119
|
+
opacity: 0;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
:host([overlay]) [part='backdrop'] {
|
|
123
|
+
position: fixed;
|
|
124
|
+
inset: 0;
|
|
125
|
+
pointer-events: none;
|
|
126
|
+
transition: opacity var(--vaadin-app-layout-transition-duration);
|
|
127
|
+
-webkit-tap-highlight-color: transparent;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
:host([overlay]) [part='drawer'] {
|
|
131
|
+
top: 0;
|
|
132
|
+
bottom: 0;
|
|
133
|
+
border-inline-end: none;
|
|
134
|
+
box-shadow: var(--lumo-box-shadow-s);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
:host([overlay]) [part='drawer'],
|
|
138
|
+
:host([overlay]) [part='backdrop'] {
|
|
139
|
+
z-index: 2;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
:host([drawer-opened][overlay]) [part='backdrop'] {
|
|
143
|
+
pointer-events: auto;
|
|
144
|
+
touch-action: manipulation;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
:host([dir='rtl']) [part='drawer'] {
|
|
148
|
+
transform: translateX(100%);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
:host([dir='rtl'][drawer-opened]) [part='drawer'] {
|
|
152
|
+
transform: translateX(0%);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
:host([drawer-opened]:not([overlay])) {
|
|
156
|
+
padding-inline-start: var(--vaadin-app-layout-drawer-offset-left);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@media (max-width: 800px), (max-height: 600px) {
|
|
160
|
+
:host {
|
|
161
|
+
--vaadin-app-layout-drawer-overlay: true;
|
|
162
|
+
--_vaadin-app-layout-drawer-width: var(--vaadin-app-layout-drawer-width, 20em);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/* If a vaadin-scroller is used in the drawer, allow it to take all remaining space and contain scrolling */
|
|
167
|
+
[part='drawer'] ::slotted(vaadin-scroller) {
|
|
168
|
+
flex: 1;
|
|
169
|
+
overscroll-behavior: contain;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
[part='navbar'],
|
|
173
|
+
[part='drawer'] {
|
|
174
|
+
background-color: var(--lumo-base-color);
|
|
175
|
+
background-clip: padding-box;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
:host([primary-section='navbar']) [part='navbar'] {
|
|
179
|
+
border: none;
|
|
180
|
+
background-image: linear-gradient(var(--lumo-contrast-5pct), var(--lumo-contrast-5pct));
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
:host([primary-section='drawer']:not([overlay])) [part='drawer'] {
|
|
184
|
+
background-image: linear-gradient(var(--lumo-shade-5pct), var(--lumo-shade-5pct));
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
[part] ::slotted(h2),
|
|
188
|
+
[part] ::slotted(h3),
|
|
189
|
+
[part] ::slotted(h4) {
|
|
190
|
+
margin-top: var(--lumo-space-xs) !important;
|
|
191
|
+
margin-bottom: var(--lumo-space-xs) !important;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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_avatar-group-menu-item {
|
|
7
|
+
:host {
|
|
8
|
+
padding: var(--lumo-space-xs);
|
|
9
|
+
padding-inline-end: var(--lumo-space-m);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
[part='content'] {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[part='content'] ::slotted(vaadin-avatar) {
|
|
18
|
+
width: var(--lumo-size-xs);
|
|
19
|
+
height: var(--lumo-size-xs);
|
|
20
|
+
margin-inline-end: var(--lumo-space-s);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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_avatar-group-overlay {
|
|
7
|
+
:host {
|
|
8
|
+
--_lumo-list-box-item-selected-icon-display: none;
|
|
9
|
+
--_lumo-list-box-item-padding-left: calc(var(--lumo-space-m) + var(--lumo-border-radius-m) / 4);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
[part='overlay'] {
|
|
13
|
+
outline: none;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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_avatar-group {
|
|
7
|
+
:host {
|
|
8
|
+
display: block;
|
|
9
|
+
width: 100%; /* prevent collapsing inside non-stretching column flex */
|
|
10
|
+
--vaadin-avatar-size: var(--lumo-size-m);
|
|
11
|
+
--vaadin-avatar-group-overlap: 8px;
|
|
12
|
+
/* Deprecated property name (overlap-border), for backwards compatibility */
|
|
13
|
+
--vaadin-avatar-group-overlap-border: var(--vaadin-avatar-group-gap, 2px);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:host([hidden]) {
|
|
17
|
+
display: none !important;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[part='container'] {
|
|
21
|
+
display: flex;
|
|
22
|
+
position: relative;
|
|
23
|
+
width: 100%;
|
|
24
|
+
flex-wrap: nowrap;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
::slotted(vaadin-avatar:not(:first-of-type)) {
|
|
28
|
+
mask-image: url('data:image/svg+xml;utf8,<svg viewBox=%220 0 300 300%22 fill=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22><path fill-rule=%22evenodd%22 clip-rule=%22evenodd%22 d=%22M300 0H0V300H300V0ZM150 200C177.614 200 200 177.614 200 150C200 122.386 177.614 100 150 100C122.386 100 100 122.386 100 150C100 177.614 122.386 200 150 200Z%22 fill=%22black%22/></svg>');
|
|
29
|
+
mask-size: calc(300% + var(--vaadin-avatar-group-overlap-border) * 6 - var(--vaadin-avatar-outline-width) * 6);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
::slotted(vaadin-avatar:not([dir='rtl']):not(:first-of-type)) {
|
|
33
|
+
margin-left: calc(var(--vaadin-avatar-group-overlap) * -1 - var(--vaadin-avatar-outline-width));
|
|
34
|
+
mask-position: calc(50% - var(--vaadin-avatar-size) + var(--vaadin-avatar-group-overlap));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
::slotted(vaadin-avatar[dir='rtl']:not(:first-of-type)) {
|
|
38
|
+
margin-right: calc(var(--vaadin-avatar-group-overlap) * -1);
|
|
39
|
+
mask-position: calc(
|
|
40
|
+
50% + var(--vaadin-avatar-size) - var(--vaadin-avatar-group-overlap) + var(--vaadin-avatar-outline-width)
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:host([theme~='xlarge']) {
|
|
45
|
+
--vaadin-avatar-group-overlap: 12px;
|
|
46
|
+
--vaadin-avatar-group-overlap-border: 3px;
|
|
47
|
+
--vaadin-avatar-size: var(--lumo-size-xl);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:host([theme~='large']) {
|
|
51
|
+
--vaadin-avatar-group-overlap: 10px;
|
|
52
|
+
--vaadin-avatar-group-overlap-border: 3px;
|
|
53
|
+
--vaadin-avatar-size: var(--lumo-size-l);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:host([theme~='small']) {
|
|
57
|
+
--vaadin-avatar-group-overlap: 6px;
|
|
58
|
+
--vaadin-avatar-group-overlap-border: 2px;
|
|
59
|
+
--vaadin-avatar-size: var(--lumo-size-s);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:host([theme~='xsmall']) {
|
|
63
|
+
--vaadin-avatar-group-overlap: 4px;
|
|
64
|
+
--vaadin-avatar-group-overlap-border: 2px;
|
|
65
|
+
--vaadin-avatar-size: var(--lumo-size-xs);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
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_avatar {
|
|
7
|
+
:host {
|
|
8
|
+
--vaadin-avatar-outline-width: var(--vaadin-focus-ring-width, 2px);
|
|
9
|
+
border: var(--vaadin-avatar-outline-width) solid transparent;
|
|
10
|
+
margin: calc(var(--vaadin-avatar-outline-width) * -1);
|
|
11
|
+
color: var(--lumo-secondary-text-color);
|
|
12
|
+
background-color: var(--lumo-contrast-10pct);
|
|
13
|
+
outline: none;
|
|
14
|
+
-webkit-font-smoothing: antialiased;
|
|
15
|
+
-moz-osx-font-smoothing: grayscale;
|
|
16
|
+
vertical-align: baseline;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[part='icon'] {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
font-size: var(--vaadin-avatar-size, 64px);
|
|
24
|
+
line-height: 1;
|
|
25
|
+
mask: none;
|
|
26
|
+
background: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
[part='icon']::before {
|
|
30
|
+
content: var(--lumo-icons-user);
|
|
31
|
+
font-family: lumo-icons;
|
|
32
|
+
font-size: 0.9em;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[part='abbr'] {
|
|
36
|
+
font-family: var(--lumo-font-family);
|
|
37
|
+
font-size: 2.4375em;
|
|
38
|
+
font-weight: 500;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:host([has-color-index]) {
|
|
42
|
+
color: var(--lumo-base-color);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:host([has-color-index])::before {
|
|
46
|
+
border: none;
|
|
47
|
+
box-shadow: inset 0 0 0 2px var(--vaadin-avatar-user-color);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:host([focus-ring]) {
|
|
51
|
+
outline: none;
|
|
52
|
+
border-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:host([theme~='xlarge']) [part='abbr'] {
|
|
56
|
+
font-size: 2.5em;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:host([theme~='large']) [part='abbr'] {
|
|
60
|
+
font-size: 2.375em;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:host([theme~='small']) [part='abbr'] {
|
|
64
|
+
font-size: 2.75em;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:host([theme~='xsmall']) [part='abbr'] {
|
|
68
|
+
font-size: 3em;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:host([theme~='xlarge']) {
|
|
72
|
+
--vaadin-avatar-size: var(--lumo-size-xl);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:host([theme~='large']) {
|
|
76
|
+
--vaadin-avatar-size: var(--lumo-size-l);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
:host([theme~='small']) {
|
|
80
|
+
--vaadin-avatar-size: var(--lumo-size-s);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:host([theme~='xsmall']) {
|
|
84
|
+
--vaadin-avatar-size: var(--lumo-size-xs);
|
|
85
|
+
}
|
|
86
|
+
}
|