@vaadin/aura 25.0.0-alpha18 → 25.0.0-alpha20
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/aura.css +29 -2
- package/dist/aura.css +1 -0
- package/dist/fonts/InstrumentSans/InstrumentSans.woff2 +0 -0
- package/package.json +14 -2
- package/src/color-scheme.css +9 -0
- package/src/color.css +107 -0
- package/src/components/app-layout.css +135 -0
- package/src/components/avatar.css +15 -0
- package/src/components/button.css +113 -0
- package/src/components/card.css +43 -0
- package/src/components/checkbox-radio.css +68 -0
- package/src/components/date-picker.css +68 -0
- package/src/components/dialog.css +29 -0
- package/src/components/grid.css +25 -0
- package/src/components/input-container.css +37 -0
- package/src/components/master-detail-layout.css +40 -0
- package/src/components/message-input.css +30 -0
- package/src/components/multi-select-combo-box.css +12 -0
- package/src/components/notification.css +42 -0
- package/src/components/overlay.css +35 -0
- package/src/components/select.css +30 -0
- package/src/components/side-nav.css +90 -0
- package/src/fonts/InstrumentSans/InstrumentSans.css +13 -0
- package/src/fonts/InstrumentSans/InstrumentSans.woff2 +0 -0
- package/src/fonts/InstrumentSans/LICENSE.txt +93 -0
- package/src/palette.css +35 -0
- package/src/shadow.css +7 -0
- package/src/size.css +44 -0
- package/src/surface.css +54 -0
- package/src/typography.css +101 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
:where(:root, :host) {
|
|
2
|
+
--vaadin-date-picker-year-scroller-background: light-dark(var(--vaadin-background-container), transparent);
|
|
3
|
+
--vaadin-date-picker-month-header-font-weight: var(--aura-font-weight-semibold);
|
|
4
|
+
/* TODO add/use selection color */
|
|
5
|
+
--vaadin-date-picker-date-selected-background: var(--aura-accent-color);
|
|
6
|
+
--vaadin-date-picker-date-selected-color: var(--aura-accent-contrast);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:where(:root, :host, [theme]) {
|
|
10
|
+
--vaadin-date-picker-date-width: calc(var(--aura-font-size-m) * 2.5);
|
|
11
|
+
--vaadin-date-picker-year-scroller-width: calc(var(--aura-font-size-m) * 3.5);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
vaadin-date-picker-month-scroller,
|
|
15
|
+
vaadin-date-picker-overlay-content::part(toolbar) {
|
|
16
|
+
background: var(--aura-surface);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
vaadin-date-picker-year-scroller::before {
|
|
20
|
+
width: 12px;
|
|
21
|
+
height: 12px;
|
|
22
|
+
background: var(--aura-surface-solid) padding-box;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
vaadin-date-picker-year::part(year-number) {
|
|
26
|
+
font-size: var(--aura-font-size-s);
|
|
27
|
+
font-weight: var(--aura-font-weight-medium);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
vaadin-date-picker-year[current]::part(year-number) {
|
|
31
|
+
font-weight: var(--aura-font-weight-semibold);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
vaadin-date-picker-year[selected] {
|
|
35
|
+
position: relative;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
vaadin-date-picker-year[selected]::part(year-number) {
|
|
39
|
+
color: var(--aura-accent-text);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
vaadin-date-picker-year[selected]::after {
|
|
43
|
+
content: '';
|
|
44
|
+
position: absolute;
|
|
45
|
+
z-index: -1;
|
|
46
|
+
height: 100%;
|
|
47
|
+
background: var(--aura-accent-color);
|
|
48
|
+
border-radius: var(--vaadin-radius-s);
|
|
49
|
+
top: -0.5lh;
|
|
50
|
+
inset-inline: 3px;
|
|
51
|
+
opacity: 0.1;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
vaadin-date-picker-year::part(year-separator) {
|
|
55
|
+
text-align: center;
|
|
56
|
+
translate: 0 -50%;
|
|
57
|
+
height: 8px;
|
|
58
|
+
line-height: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
vaadin-date-picker-year::part(year-separator)::before {
|
|
62
|
+
content: '';
|
|
63
|
+
display: inline-block;
|
|
64
|
+
width: 3px;
|
|
65
|
+
height: 3px;
|
|
66
|
+
border-radius: 50%;
|
|
67
|
+
background: var(--vaadin-text-color-disabled);
|
|
68
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
:where(:root, :host) {
|
|
2
|
+
--vaadin-dialog-title-font-size: var(--aura-font-size-l);
|
|
3
|
+
--vaadin-dialog-border-width: 0px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
vaadin-dialog,
|
|
7
|
+
vaadin-confirm-dialog {
|
|
8
|
+
color-scheme: var(--aura-content-color-scheme);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
vaadin-dialog::part(overlay),
|
|
12
|
+
vaadin-confirm-dialog::part(overlay) {
|
|
13
|
+
--vaadin-dialog-background: var(--aura-surface);
|
|
14
|
+
--aura-surface-level: 4;
|
|
15
|
+
|
|
16
|
+
/* TODO probably should be in base styles */
|
|
17
|
+
/* Keeps dialogs on top of MDL view transitions */
|
|
18
|
+
view-transition-name: vaadin-dialog;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
vaadin-confirm-dialog::part(message) {
|
|
22
|
+
color: var(--vaadin-text-color-secondary);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* TODO probably should be in base styles */
|
|
26
|
+
::view-transition-group(vaadin-dialog) {
|
|
27
|
+
border-radius: var(--vaadin-dialog-border-radius, var(--vaadin-radius-l));
|
|
28
|
+
z-index: 1;
|
|
29
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
:where(:root, :host) {
|
|
2
|
+
/* TODO should likely be just a color prop, not a background-image */
|
|
3
|
+
--vaadin-grid-row-selected-background: linear-gradient(
|
|
4
|
+
var(--vaadin-background-container),
|
|
5
|
+
var(--vaadin-background-container)
|
|
6
|
+
);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
vaadin-grid[theme~='no-border']::part(first-column-cell) {
|
|
10
|
+
/* TODO can't use --vaadin-grid-cell-padding, it only works on the host */
|
|
11
|
+
/* quite difficult to override the cell padding when it’s on the slotted vaadin-grid-cell-content element */
|
|
12
|
+
--_cell-padding: var(--vaadin-padding-xs) var(--vaadin-padding-s) var(--vaadin-padding-xs) var(--vaadin-padding-l);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
vaadin-grid[theme~='no-border']::part(last-column-cell) {
|
|
16
|
+
--_cell-padding: var(--vaadin-padding-xs) var(--vaadin-padding-l) var(--vaadin-padding-xs) var(--vaadin-padding-s);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* TODO custom part name: how should we indicate an active row? Should we have a built-in part name? */
|
|
20
|
+
vaadin-grid::part(active-nav-item) {
|
|
21
|
+
/* TODO should likely be just a color prop, not a background-image */
|
|
22
|
+
/* TODO need a custom prop in grid base styles that can be used to just highlight a row, which works together with row stripes, selection color, etc. */
|
|
23
|
+
--vaadin-grid-cell-background: linear-gradient(var(--vaadin-background-container), var(--vaadin-background-container))
|
|
24
|
+
var(--vaadin-background-color);
|
|
25
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
:where(:root, :host, [theme]) {
|
|
2
|
+
--vaadin-input-field-background: var(--aura-surface);
|
|
3
|
+
--vaadin-input-field-error-color: var(--aura-red);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
::part(input-field),
|
|
7
|
+
vaadin-message-input,
|
|
8
|
+
vaadin-input-container {
|
|
9
|
+
--vaadin-input-field-background: var(--aura-surface);
|
|
10
|
+
--aura-surface-level: 4;
|
|
11
|
+
--aura-surface-opacity: 0.7;
|
|
12
|
+
background-clip: padding-box;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:not([readonly], [disabled])::part(input-field),
|
|
16
|
+
vaadin-message-input:not([readonly], [disabled]) {
|
|
17
|
+
box-shadow: 0 2px 1px -1px hsla(0, 0%, 0%, 0.04);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[disabled]::part(input-field) {
|
|
21
|
+
--aura-surface-opacity: 0.5;
|
|
22
|
+
--aura-surface-level: 1;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
::part(field-button) {
|
|
26
|
+
transition: color 100ms;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:not([readonly], [disabled])::part(field-button):active {
|
|
30
|
+
color: var(--vaadin-text-color);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@media (any-hover: hover) {
|
|
34
|
+
:not([readonly], [disabled])::part(field-button):hover {
|
|
35
|
+
color: var(--vaadin-text-color);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
vaadin-master-detail-layout::part(detail) {
|
|
2
|
+
--aura-surface-level: 2;
|
|
3
|
+
background: var(--aura-surface) padding-box;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
vaadin-master-detail-layout[drawer]::part(detail) {
|
|
7
|
+
--aura-surface-opacity: var(--aura-overlay-surface-opacity);
|
|
8
|
+
background: var(--aura-surface) padding-box;
|
|
9
|
+
-webkit-backdrop-filter: var(--aura-overlay-backdrop-filter);
|
|
10
|
+
backdrop-filter: var(--aura-overlay-backdrop-filter);
|
|
11
|
+
box-shadow:
|
|
12
|
+
inset 1px 0 0 0 var(--aura-overlay-inner-outline-color),
|
|
13
|
+
-1px 0 0 0 var(--aura-overlay-outline-color),
|
|
14
|
+
var(--aura-shadow-m);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
vaadin-master-detail-layout[containment='viewport'][drawer]::part(detail) {
|
|
18
|
+
box-shadow: var(--aura-overlay-shadow);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* TODO could be a built-in variant */
|
|
22
|
+
vaadin-master-detail-layout[theme~='inset-drawer'][drawer]::part(detail),
|
|
23
|
+
vaadin-master-detail-layout[containment='viewport'][drawer]::part(detail) {
|
|
24
|
+
margin: calc(var(--aura-app-layout-inset) / 2);
|
|
25
|
+
border-radius: var(--_app-layout-radius);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
vaadin-master-detail-layout > vaadin-master-detail-layout,
|
|
29
|
+
vaadin-master-detail-layout:not([drawer])::part(detail) {
|
|
30
|
+
border-start-end-radius: var(--_app-layout-radius);
|
|
31
|
+
border-end-end-radius: var(--_app-layout-radius);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* TODO these end up affecting all MDLs, not just the one directly inside the App Layout */
|
|
35
|
+
::view-transition-group(vaadin-mdl-backdrop),
|
|
36
|
+
::view-transition-group(vaadin-mdl-master),
|
|
37
|
+
::view-transition-group(vaadin-mdl-detail) {
|
|
38
|
+
border-radius: var(--_app-layout-radius);
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
vaadin-message-input vaadin-text-area::part(input-field) {
|
|
2
|
+
--vaadin-input-field-background: transparent;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
vaadin-message-input[theme~='icon-button'] vaadin-message-input-button {
|
|
6
|
+
width: var(--vaadin-icon-size, 1lh);
|
|
7
|
+
height: var(--vaadin-icon-size, 1lh);
|
|
8
|
+
color: transparent;
|
|
9
|
+
position: relative;
|
|
10
|
+
contain: strict;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
vaadin-message-input[theme~='icon-button'] vaadin-message-input-button::before {
|
|
14
|
+
content: '';
|
|
15
|
+
position: absolute;
|
|
16
|
+
inset: 0;
|
|
17
|
+
mask-image: var(--_vaadin-icon-paper-airplane);
|
|
18
|
+
background: var(--vaadin-button-text-color);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
vaadin-message-input[theme~='icon-button'][dir='rtl'] vaadin-message-input-button::before {
|
|
22
|
+
scale: -1;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@media (forced-colors: active) {
|
|
26
|
+
vaadin-message-input[theme~='icon-button'] vaadin-message-input-button {
|
|
27
|
+
forced-color-adjust: none;
|
|
28
|
+
--vaadin-button-text-color: CanvasText;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
:where(:root, :host) {
|
|
2
|
+
--vaadin-chip-padding: 0.4em;
|
|
3
|
+
--vaadin-chip-background: var(--vaadin-background-container-strong);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
vaadin-multi-select-combo-box-chip {
|
|
7
|
+
--vaadin-chip-height: 1lh;
|
|
8
|
+
--vaadin-icon-size: 1.25em;
|
|
9
|
+
--vaadin-chip-padding: 0.4em;
|
|
10
|
+
--vaadin-chip-border-radius: var(--vaadin-radius-s);
|
|
11
|
+
--vaadin-chip-border-width: 0px;
|
|
12
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
:where(:root, :host) {
|
|
2
|
+
--vaadin-notification-border-width: 0px;
|
|
3
|
+
--vaadin-ease-fluid: cubic-bezier(0.78, 0, 0.22, 1);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
vaadin-notification-container {
|
|
7
|
+
color-scheme: var(--aura-notification-color-scheme);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
vaadin-notification-card::part(overlay) {
|
|
11
|
+
--aura-surface-level: 4;
|
|
12
|
+
--vaadin-notification-background: var(--aura-surface);
|
|
13
|
+
|
|
14
|
+
/* TODO probably should be in base styles */
|
|
15
|
+
/* Keeps notifications on top of MDL view transitions */
|
|
16
|
+
view-transition-name: vaadin-notification;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
::view-transition-group(vaadin-notification) {
|
|
20
|
+
/* Keep on top of MDL view-transition elements */
|
|
21
|
+
z-index: 1;
|
|
22
|
+
/* The backdrop-filter from vaadin-notification-card::part(overlay) is copied here, so we need to clip it with the same border radius */
|
|
23
|
+
border-radius: var(--vaadin-notification-border-radius, var(--vaadin-radius-l));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* In Safari, the backdrop-filter is copied to transition-group pseudo element but also retained in the new/old pseudo elements */
|
|
27
|
+
/* Removing it from the transition-group makes it look better */
|
|
28
|
+
@supports (background: -webkit-named-image(i)) {
|
|
29
|
+
::view-transition-group(vaadin-notification) {
|
|
30
|
+
backdrop-filter: none;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
vaadin-notification-card vaadin-card {
|
|
35
|
+
--vaadin-card-gap: var(--vaadin-gap-xs) var(--vaadin-gap-s);
|
|
36
|
+
color: var(--vaadin-text-color-secondary);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
vaadin-notification-card vaadin-button {
|
|
40
|
+
--aura-surface-level: 8;
|
|
41
|
+
--aura-surface-opacity: 0.3;
|
|
42
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
:where(:root, :host) {
|
|
2
|
+
--vaadin-overlay-border-width: 0px;
|
|
3
|
+
--vaadin-overlay-backdrop-background: light-dark(
|
|
4
|
+
oklch(from var(--aura-background-light) calc(l * 0.1) c h / 0.15),
|
|
5
|
+
hsla(0deg, 0%, 0%, 0.3)
|
|
6
|
+
);
|
|
7
|
+
--aura-overlay-outline-color: light-dark(
|
|
8
|
+
oklch(from var(--aura-background-light) 0.1 c h / max(0.04, 0.03 + 0.04 * var(--aura-contrast))),
|
|
9
|
+
oklch(from var(--aura-background-dark) 0.1 c h / max(0.04, 0.03 + 0.04 * var(--aura-contrast)))
|
|
10
|
+
);
|
|
11
|
+
--aura-overlay-inner-outline-color: hsla(0deg, 0%, 100%, max(3%, 2% + 4% * var(--aura-contrast)));
|
|
12
|
+
--aura-overlay-shadow:
|
|
13
|
+
inset 0 0 0 1px var(--aura-overlay-inner-outline-color), 0 0 0 1px var(--aura-overlay-outline-color),
|
|
14
|
+
var(--aura-shadow-m);
|
|
15
|
+
--aura-overlay-backdrop-filter: blur(12px) brightness(1.2) saturate(1.2);
|
|
16
|
+
--aura-overlay-surface-opacity: 0.85;
|
|
17
|
+
|
|
18
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
19
|
+
--aura-overlay-surface-opacity: 1 !important;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
::part(overlay) {
|
|
24
|
+
--vaadin-overlay-background: var(--aura-surface);
|
|
25
|
+
--aura-surface-level: 4;
|
|
26
|
+
--aura-surface-opacity: var(--aura-overlay-surface-opacity);
|
|
27
|
+
box-shadow: var(--aura-overlay-shadow);
|
|
28
|
+
-webkit-backdrop-filter: var(--aura-overlay-backdrop-filter);
|
|
29
|
+
backdrop-filter: var(--aura-overlay-backdrop-filter);
|
|
30
|
+
font-family: var(--aura-font-family);
|
|
31
|
+
font-size: var(--aura-font-size-m);
|
|
32
|
+
font-weight: var(--aura-font-weight);
|
|
33
|
+
line-height: var(--aura-line-height-m);
|
|
34
|
+
color: var(--vaadin-text-color);
|
|
35
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
vaadin-select-item::part(content) {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: inherit;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
vaadin-select[theme~='subtle']::part(input-field) {
|
|
8
|
+
--vaadin-input-field-border-color: transparent;
|
|
9
|
+
--vaadin-input-field-background: transparent;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
vaadin-select[theme~='subtle']::part(toggle-button) {
|
|
13
|
+
transition: opacity 200ms;
|
|
14
|
+
opacity: 0;
|
|
15
|
+
--vaadin-icon-size: 0.75lh;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
vaadin-select[theme~='subtle'][focus-ring]::part(toggle-button) {
|
|
19
|
+
opacity: 1;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@media (any-hover: hover) {
|
|
23
|
+
vaadin-select[theme~='subtle']:hover::part(toggle-button) {
|
|
24
|
+
opacity: 1;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
vaadin-select[theme~='auto-size'] {
|
|
29
|
+
--vaadin-field-default-width: auto;
|
|
30
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
:where(:root, :host) {
|
|
2
|
+
--vaadin-side-nav-label-line-height: var(--aura-line-height-xs);
|
|
3
|
+
--vaadin-side-nav-label-font-weight: var(--aura-font-weight-medium);
|
|
4
|
+
--vaadin-side-nav-item-font-weight: var(--aura-font-weight-medium);
|
|
5
|
+
--vaadin-side-nav-item-border-width: 1px;
|
|
6
|
+
--vaadin-side-nav-items-gap: var(--vaadin-gap-xs);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
vaadin-side-nav + vaadin-side-nav {
|
|
10
|
+
margin-top: var(--vaadin-gap-l);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
vaadin-side-nav-item::part(content) {
|
|
14
|
+
transition:
|
|
15
|
+
color 120ms,
|
|
16
|
+
border-color 120ms,
|
|
17
|
+
background-color 120ms;
|
|
18
|
+
background-clip: padding-box;
|
|
19
|
+
--aura-surface-level: 3;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
vaadin-side-nav-item:not([disabled])::part(content):hover {
|
|
23
|
+
--vaadin-side-nav-item-color: var(--vaadin-text-color);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
vaadin-side-nav-item[current]::part(content) {
|
|
27
|
+
--vaadin-side-nav-item-background: var(--aura-surface);
|
|
28
|
+
--vaadin-side-nav-item-border-color: var(--vaadin-border-color-secondary);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Contrast variant */
|
|
32
|
+
|
|
33
|
+
vaadin-side-nav[theme~='contrast'] vaadin-side-nav-item[current]::part(content) {
|
|
34
|
+
color-scheme: var(--_side-nav-current-item-color-scheme, dark);
|
|
35
|
+
background: var(--aura-surface-solid);
|
|
36
|
+
border-color: transparent;
|
|
37
|
+
outline-offset: 2px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
vaadin-side-nav[theme~='contrast'] vaadin-side-nav-item[current] > :not([slot='children']) {
|
|
41
|
+
--aura-red: var(--vaadin-text-color);
|
|
42
|
+
--aura-red-text: var(--vaadin-text-color);
|
|
43
|
+
--aura-orange: var(--vaadin-text-color);
|
|
44
|
+
--aura-orange-text: var(--vaadin-text-color);
|
|
45
|
+
--aura-yellow: var(--vaadin-text-color);
|
|
46
|
+
--aura-yellow-text: var(--vaadin-text-color);
|
|
47
|
+
--aura-green: var(--vaadin-text-color);
|
|
48
|
+
--aura-green-text: var(--vaadin-text-color);
|
|
49
|
+
--aura-blue: var(--vaadin-text-color);
|
|
50
|
+
--aura-blue-text: var(--vaadin-text-color);
|
|
51
|
+
--aura-purple: var(--vaadin-text-color);
|
|
52
|
+
--aura-purple-text: var(--vaadin-text-color);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@container style(--aura-color-scheme: dark) {
|
|
56
|
+
[slot='drawer'] {
|
|
57
|
+
--_side-nav-current-item-color-scheme: light;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@container style(--aura-content-color-scheme: dark) {
|
|
62
|
+
vaadin-app-layout > :not([slot]) {
|
|
63
|
+
--_side-nav-current-item-color-scheme: light;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@container style(--aura-content-color-scheme: light) {
|
|
68
|
+
vaadin-app-layout > :not([slot]) {
|
|
69
|
+
--_side-nav-current-item-color-scheme: dark;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@media (prefers-color-scheme: dark) {
|
|
74
|
+
@container style(--aura-content-color-scheme: light dark) {
|
|
75
|
+
vaadin-app-layout > :not([slot]) {
|
|
76
|
+
--_side-nav-current-item-color-scheme: light;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@container style(--aura-color-scheme: light dark) {
|
|
81
|
+
[slot='drawer'] {
|
|
82
|
+
--_side-nav-current-item-color-scheme: light;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* TODO bug in component/base styles: hide label part if no label is provided */
|
|
88
|
+
vaadin-side-nav:not(:has([slot='label']))::part(label) {
|
|
89
|
+
display: none;
|
|
90
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2022 The Instrument Sans Project Authors (https://github.com/Instrument/instrument-sans)
|
|
3
|
+
|
|
4
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
5
|
+
This license is included in the LICENSE.txt file, and is also available with a FAQ at: https://openfontlicense.org
|
|
6
|
+
*/
|
|
7
|
+
@font-face {
|
|
8
|
+
font-family: 'Instrument Sans';
|
|
9
|
+
src: url(./InstrumentSans.woff2) format('woff2');
|
|
10
|
+
font-display: swap;
|
|
11
|
+
font-style: normal;
|
|
12
|
+
font-weight: 400 700;
|
|
13
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2022 The Instrument Sans Project Authors (https://github.com/Instrument/instrument-sans)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
https://openfontlicense.org
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
package/src/palette.css
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
:where(:root, :host) {
|
|
2
|
+
--aura-red: oklch(0.6 0.22 25);
|
|
3
|
+
--aura-orange: oklch(0.61 0.4 93);
|
|
4
|
+
--aura-yellow: oklch(0.9 0.36 105);
|
|
5
|
+
--aura-green: oklch(0.6 0.28 160);
|
|
6
|
+
--aura-blue: oklch(0.6 0.3 240);
|
|
7
|
+
--aura-purple: oklch(0.6 0.3 280);
|
|
8
|
+
|
|
9
|
+
--aura-red-text: color-mix(in srgb, var(--aura-red) calc(70% - 15% * var(--aura-contrast)), var(--vaadin-text-color));
|
|
10
|
+
--aura-orange-text: color-mix(
|
|
11
|
+
in srgb,
|
|
12
|
+
var(--aura-orange) calc(70% - 15% * var(--aura-contrast)),
|
|
13
|
+
var(--vaadin-text-color)
|
|
14
|
+
);
|
|
15
|
+
--aura-yellow-text: color-mix(
|
|
16
|
+
in srgb,
|
|
17
|
+
var(--aura-yellow) calc(65% - 15% * var(--aura-contrast)),
|
|
18
|
+
var(--vaadin-text-color)
|
|
19
|
+
);
|
|
20
|
+
--aura-green-text: color-mix(
|
|
21
|
+
in srgb,
|
|
22
|
+
var(--aura-green) calc(70% - 15% * var(--aura-contrast)),
|
|
23
|
+
var(--vaadin-text-color)
|
|
24
|
+
);
|
|
25
|
+
--aura-blue-text: color-mix(
|
|
26
|
+
in srgb,
|
|
27
|
+
var(--aura-blue) calc(70% - 15% * var(--aura-contrast)),
|
|
28
|
+
var(--vaadin-text-color)
|
|
29
|
+
);
|
|
30
|
+
--aura-purple-text: color-mix(
|
|
31
|
+
in srgb,
|
|
32
|
+
var(--aura-purple) calc(70% - 15% * var(--aura-contrast)),
|
|
33
|
+
var(--vaadin-text-color)
|
|
34
|
+
);
|
|
35
|
+
}
|
package/src/shadow.css
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
:where(:root, :host) {
|
|
2
|
+
--aura-shadow-color: light-dark(
|
|
3
|
+
oklch(from var(--aura-background-light) calc(l - l * 0.8) calc(c / 10) h / 0.2),
|
|
4
|
+
oklch(from var(--aura-background-dark) calc(l - l * 0.8) calc(c / 10) h / 0.2)
|
|
5
|
+
);
|
|
6
|
+
--aura-shadow-m: 0 8px 16px -3px var(--aura-shadow-color);
|
|
7
|
+
}
|
package/src/size.css
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
:where(:root, :host) {
|
|
2
|
+
--aura-base-size: 16;
|
|
3
|
+
--_size-ref: 16;
|
|
4
|
+
--aura-base-radius: 3;
|
|
5
|
+
--vaadin-radius-s: min(0.25lh, round(var(--aura-base-radius) * 1px + 2px, 1px));
|
|
6
|
+
--vaadin-radius-m: round(var(--aura-base-radius) * 2px + 3px, 1px);
|
|
7
|
+
--vaadin-radius-l: round(var(--aura-base-radius) * 1.5px + 10px, 1px);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:where(:root, :host, [theme]) {
|
|
11
|
+
--vaadin-padding-xs: round(
|
|
12
|
+
var(--aura-base-size) * 0.25 * pow(var(--aura-base-size) / var(--_size-ref), 0.5) * 1px,
|
|
13
|
+
1px
|
|
14
|
+
);
|
|
15
|
+
--vaadin-padding-s: round(
|
|
16
|
+
var(--aura-base-size) * 0.5 * pow(var(--aura-base-size) / var(--_size-ref), 0.75) * 1px,
|
|
17
|
+
1px
|
|
18
|
+
);
|
|
19
|
+
--vaadin-padding-m: round(
|
|
20
|
+
var(--aura-base-size) * 0.75 * pow(var(--aura-base-size) / var(--_size-ref), 0.3) * 1px,
|
|
21
|
+
1px
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
--vaadin-padding-l: calc(var(--aura-base-size) * 1px);
|
|
25
|
+
--vaadin-padding-xl: round(
|
|
26
|
+
var(--aura-base-size) * 1.5 * pow(var(--aura-base-size) / var(--_size-ref), 0.1) * 1px,
|
|
27
|
+
1px
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
--vaadin-padding-container: round(var(--vaadin-padding-s) / 1.4, 1px)
|
|
31
|
+
max(var(--vaadin-padding-s), round(var(--vaadin-radius-m) / 2, 1px));
|
|
32
|
+
|
|
33
|
+
--vaadin-gap-xs: var(--vaadin-padding-xs);
|
|
34
|
+
--vaadin-gap-s: var(--vaadin-padding-s);
|
|
35
|
+
--vaadin-gap-m: var(--vaadin-padding-m);
|
|
36
|
+
--vaadin-gap-l: var(--vaadin-padding-l);
|
|
37
|
+
--vaadin-gap-xl: var(--vaadin-padding-xl);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@media (pointer: coarse) {
|
|
41
|
+
:where(:root, :host) {
|
|
42
|
+
--aura-base-size: 19;
|
|
43
|
+
}
|
|
44
|
+
}
|