-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to latest styles from the demo project
- Loading branch information
1 parent
9257920
commit 0a88bcc
Showing
64 changed files
with
1,304 additions
and
457 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
theme/src/main/resources/META-INF/resources/themes/starpass/accordion.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
:is(vaadin-details, vaadin-accordion-panel) { | ||
display: grid; | ||
grid-template-rows: min-content 0fr; | ||
transition: grid-template-rows 300ms; | ||
} | ||
|
||
:is(vaadin-details, vaadin-accordion-panel)[opened] { | ||
grid-template-rows: min-content 1fr; | ||
} | ||
|
||
:is(vaadin-details, vaadin-accordion-panel)::part(content) { | ||
display: block; | ||
overflow: hidden; | ||
min-height: 0; | ||
padding: 0; /* TODO the actual content within should define the white space it needs */ | ||
transition: visibility 300ms, opacity 300ms; | ||
} | ||
|
||
:is(vaadin-details, vaadin-accordion-panel):not([opened])::part(content) { | ||
visibility: hidden; | ||
pointer-events: none; | ||
opacity: 0; | ||
} |
11 changes: 11 additions & 0 deletions
11
theme/src/main/resources/META-INF/resources/themes/starpass/apex-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
73 changes: 73 additions & 0 deletions
73
theme/src/main/resources/META-INF/resources/themes/starpass/badge.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
|
||
[theme~=badge] { | ||
padding: var(--lumo-space-xs) calc(var(--lumo-space-xs) * 1.5); | ||
font-size: var(--lumo-font-size-xs); | ||
font-weight: 620; | ||
color: var(--lumo-secondary-text-color); | ||
} | ||
|
||
[theme~=badge][theme~=small] { | ||
font-size: var(--lumo-font-size-xxs); | ||
font-weight: 660; | ||
} | ||
|
||
[theme~=badge][theme~=accent] { | ||
background-color: var(--accent-10pct); | ||
color: var(--accent-text); | ||
} | ||
|
||
[theme~=badge][theme~=accent][theme~=primary] { | ||
background-color: var(--accent); | ||
color: var(--accent-contrast); | ||
} | ||
|
||
[theme~=badge][theme~=dimmed] { | ||
background: transparent; | ||
color: var(--lumo-contrast-60pct); | ||
} | ||
|
||
/* Empty badges (dots) are too big by default */ | ||
[theme~=badge]:not([icon]):empty, | ||
[theme~=badge][theme~=dot] { | ||
font-size: 0; | ||
padding: 0.25rem; | ||
width: 0; | ||
height: 0; | ||
border-radius: 100%; | ||
} | ||
|
||
[theme~=badge][theme~=small]:not([icon]):empty, | ||
[theme~=badge][theme~=small][theme~=dot] { | ||
padding: 0.1875rem; | ||
} | ||
|
||
[theme~=badge][theme~=dot]::before { | ||
font-size: var(--lumo-font-size-xs); | ||
} | ||
|
||
[theme~=badge][theme~=small][theme~=dot]::before { | ||
font-size: var(--lumo-font-size-xxs); | ||
} | ||
|
||
[theme~=badge] vaadin-icon { | ||
width: var(--lumo-icon-size-s); | ||
height: var(--lumo-icon-size-s); | ||
} | ||
|
||
[theme~=badge] vaadin-icon, | ||
[theme~=badge]::before { | ||
margin: calc(var(--lumo-space-xs) * -1) 0; | ||
} | ||
|
||
[theme~=badge][theme~=small] vaadin-icon { | ||
width: calc(var(--lumo-icon-size-s) * 0.8); | ||
height: calc(var(--lumo-icon-size-s) * 0.8); | ||
} | ||
|
||
[theme~=badge] vaadin-icon:first-child { | ||
margin-inline-start: calc(var(--lumo-space-xs) * -1.5); | ||
} | ||
|
||
[theme~=badge] vaadin-icon:last-child { | ||
margin-inline-end: calc(var(--lumo-space-xs) * -1.5); | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
123 changes: 123 additions & 0 deletions
123
theme/src/main/resources/META-INF/resources/themes/starpass/button.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
:is(vaadin-button, vaadin-menu-bar-button) { | ||
--vaadin-button-background: transparent; | ||
--vaadin-button-border: var(--vaadin-button-border-width) solid var(--lumo-contrast-20pct); | ||
--vaadin-button-padding: 0 calc(var(--_button-size) / 4 + var(--lumo-border-radius-m) / 2); | ||
--vaadin-button-tertiary-padding: var(--vaadin-button-padding); | ||
margin: 0; | ||
font-weight: 630; | ||
box-shadow: 0 1px 1px 0 var(--lumo-shade-2pct); | ||
} | ||
|
||
/* TODO missing from Lumo */ | ||
:is(vaadin-button, vaadin-menu-bar-button)::before { | ||
inset: calc(var(--vaadin-button-border-width) * -1); | ||
} | ||
|
||
:is(vaadin-button, vaadin-menu-bar-button)::after { | ||
display: none; | ||
} | ||
|
||
@media (any-hover: hover) { | ||
:is(vaadin-button, vaadin-menu-bar-button):hover::before { | ||
background-color: currentColor; | ||
opacity: 0.04; | ||
} | ||
} | ||
|
||
:is(vaadin-button, vaadin-menu-bar-button):is(:active, [active])::before { | ||
opacity: 0.08; | ||
} | ||
|
||
:is(vaadin-button, vaadin-menu-bar-button):is(:active, [active])[theme~=primary]::before { | ||
background-color: black; | ||
} | ||
|
||
/* TODO seems like an issue in Lumo */ | ||
:is(vaadin-button, vaadin-menu-bar-button)[theme*=tertiary] { | ||
--vaadin-button-border-width: 0px; | ||
box-shadow: none; | ||
} | ||
|
||
:is(vaadin-button, vaadin-menu-bar-button)[theme~=primary] { | ||
font-weight: 680; | ||
min-width: initial; | ||
background-image: linear-gradient(170deg, hsl(0 0% 100% / 0.05), hsl(0 0% 0% / 0.05)); | ||
background-blend-mode: overlay; | ||
} | ||
|
||
/* TODO issue in Lumo, not using the focus-ring-color custom property for primary buttons */ | ||
:is(vaadin-button, vaadin-menu-bar-button)[focus-ring] { | ||
box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 calc(var(--vaadin-focus-ring-width, 2px) + 1px) var(--vaadin-focus-ring-color); | ||
} | ||
|
||
:is(vaadin-button, vaadin-menu-bar-button)[theme~=accent]:not([theme~=primary]) { | ||
color: var(--accent-text); | ||
} | ||
|
||
:is(vaadin-button, vaadin-menu-bar-button)[theme~=accent][theme~=primary] { | ||
background-color: var(--accent); | ||
color: var(--accent-contrast); | ||
} | ||
|
||
:is(vaadin-button, vaadin-menu-bar-button) vaadin-icon[slot$=fix], | ||
:is(vaadin-button, vaadin-menu-bar-button)[theme~=icon] vaadin-icon { | ||
/* TODO bug in Lumo, icon is not vertically centered */ | ||
vertical-align: top; | ||
} | ||
|
||
:is(vaadin-button, vaadin-menu-bar-button):not([theme~=icon]) vaadin-icon[slot=prefix] { | ||
margin-inline-end: var(--lumo-space-xs); | ||
} | ||
|
||
:is(vaadin-button, vaadin-menu-bar-button):not([theme~=icon]) vaadin-icon[slot=suffix] { | ||
margin-inline-start: var(--lumo-space-xs); | ||
} | ||
|
||
:is(vaadin-button, vaadin-menu-bar-button)[theme~=tertiary-inline] { | ||
padding: 0; | ||
cursor: pointer; | ||
} | ||
|
||
@media (any-hover: hover) { | ||
:is(vaadin-button, vaadin-menu-bar-button)[theme~=tertiary-inline]:hover { | ||
opacity: 0.85; | ||
} | ||
} | ||
|
||
/* TODO missing from Lumo, icons end up outside the button boundaries */ | ||
:is(vaadin-button, vaadin-menu-bar-button)[theme~=tertiary-inline]::part(prefix) { | ||
margin-inline-start: 0; | ||
} | ||
:is(vaadin-button, vaadin-menu-bar-button)[theme~=tertiary-inline]::part(suffix) { | ||
margin-inline-end: 0; | ||
} | ||
|
||
:where(vaadin-button, vaadin-menu-bar-button):not([theme~=primary], [theme~=success], [theme~=error]) vaadin-icon, | ||
:where(vaadin-menu-bar-overlay vaadin-menu-bar-item):not([theme~=primary], [theme~=success], [theme~=error]) vaadin-icon { | ||
opacity: 0.7; | ||
} | ||
|
||
/* Ensure icon buttons are square */ | ||
:is(vaadin-button, vaadin-menu-bar-button)[theme~=icon] { | ||
width: var(--lumo-button-size); | ||
min-width: 0; | ||
height: var(--lumo-button-size); | ||
padding: 0; | ||
} | ||
|
||
:is(vaadin-button, vaadin-menu-bar-button)[theme~=pill] { | ||
border-radius: var(--lumo-button-size); | ||
padding-inline-start: 0.75em; | ||
padding-inline-end: 0.75em; | ||
} | ||
|
||
/* TODO check why these exist in Lumo */ | ||
vaadin-menu-bar-button > vaadin-menu-bar-item { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
vaadin-button [theme~=badge][slot$=fix] { | ||
/* Fixes vertical alignment */ | ||
vertical-align: top; | ||
} |
4 changes: 4 additions & 0 deletions
4
theme/src/main/resources/META-INF/resources/themes/starpass/checkbox.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
vaadin-checkbox { | ||
--vaadin-checkbox-background: transparent; | ||
--vaadin-input-field-border-color: var(--lumo-contrast-30pct); | ||
} |
50 changes: 0 additions & 50 deletions
50
theme/src/main/resources/META-INF/resources/themes/starpass/component-styles/badge.css
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...c/main/resources/META-INF/resources/themes/starpass/component-styles/vaadin-accordion.css
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
.../main/resources/META-INF/resources/themes/starpass/component-styles/vaadin-app-layout.css
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
.../src/main/resources/META-INF/resources/themes/starpass/component-styles/vaadin-avatar.css
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
.../src/main/resources/META-INF/resources/themes/starpass/component-styles/vaadin-button.css
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...rc/main/resources/META-INF/resources/themes/starpass/component-styles/vaadin-checkbox.css
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...c/main/resources/META-INF/resources/themes/starpass/component-styles/vaadin-combo-box.css
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...n/resources/META-INF/resources/themes/starpass/component-styles/vaadin-confirm-dialog.css
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...ain/resources/META-INF/resources/themes/starpass/component-styles/vaadin-context-menu.css
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
theme/src/main/resources/META-INF/resources/themes/starpass/component-styles/vaadin-crud.css
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...ain/resources/META-INF/resources/themes/starpass/component-styles/vaadin-custom-field.css
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.