-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add gap support to dashboard (#7660)
- Loading branch information
1 parent
e0a2f54
commit 3c451c6
Showing
10 changed files
with
78 additions
and
4 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
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
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
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
11 changes: 11 additions & 0 deletions
11
packages/dashboard/theme/lumo/vaadin-dashboard-layout-styles.js
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,11 @@ | ||
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; | ||
|
||
export const dashboardLayoutStyles = css` | ||
:host { | ||
--vaadin-dashboard-gap: var(--lumo-space-m); | ||
} | ||
`; | ||
|
||
registerStyles('vaadin-dashboard-layout', [dashboardLayoutStyles], { | ||
moduleId: 'lumo-dashboard-layout', | ||
}); |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
import './vaadin-dashboard-layout-styles.js'; | ||
import '../../src/vaadin-dashboard-layout.js'; |
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,6 @@ | ||
import { registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; | ||
import { dashboardLayoutStyles } from './vaadin-dashboard-layout-styles.js'; | ||
|
||
registerStyles('vaadin-dashboard', [dashboardLayoutStyles], { | ||
moduleId: 'lumo-dashboard', | ||
}); |
11 changes: 11 additions & 0 deletions
11
packages/dashboard/theme/material/vaadin-dashboard-layout-styles.js
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,11 @@ | ||
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; | ||
|
||
export const dashboardLayoutStyles = css` | ||
:host { | ||
--vaadin-dashboard-gap: 1rem; | ||
} | ||
`; | ||
|
||
registerStyles('vaadin-dashboard-layout', [dashboardLayoutStyles], { | ||
moduleId: 'material-dashboard-layout', | ||
}); |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
import './vaadin-dashboard-layout-styles.js'; | ||
import '../../src/vaadin-dashboard-layout.js'; |
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,6 @@ | ||
import { registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; | ||
import { dashboardLayoutStyles } from './vaadin-dashboard-layout-styles.js'; | ||
|
||
registerStyles('vaadin-dashboard', [dashboardLayoutStyles], { | ||
moduleId: 'material-dashboard', | ||
}); |