app-layoutpackage.theme.material.vaadin-app-layout-styles.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vaadin-webcomponents Show documentation
Show all versions of vaadin-webcomponents Show documentation
Mvnpm composite: Vaadin webcomponents
import '@vaadin/vaadin-material-styles/color.js';
import '@vaadin/vaadin-material-styles/shadow.js';
import '@vaadin/vaadin-material-styles/typography.js';
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
registerStyles(
'vaadin-app-layout',
css`
:host {
background-color: var(--material-background-color);
}
[part='navbar'] {
padding: 0.25em 0.5em;
background: var(--vaadin-app-layout-navbar-background, var(--material-secondary-background-color));
box-shadow: var(--material-shadow-elevation-8dp);
}
[part='drawer'] {
background: var(--material-background-color);
}
[part='drawer'] {
border-inline-end: 1px solid var(--material-secondary-background-color);
}
:host([primary-section='drawer']) [part='drawer'] {
z-index: 2;
}
:host([primary-section='navbar']:not([overlay])) [part='navbar'] {
z-index: 1;
}
[part] ::slotted(h2),
[part] ::slotted(h3),
[part] ::slotted(h4) {
line-height: 2.5rem;
margin-top: 0.25rem !important;
margin-bottom: 0.25rem !important;
}
[part='navbar'][bottom] {
padding: 0 1em;
box-shadow: var(--material-shadow-elevation-4dp);
}
@media (min-width: 700px) {
[part='navbar'] {
padding: 0.5em 0.75em;
box-shadow: var(--material-shadow-elevation-4dp);
}
}
`,
{ moduleId: 'material-app-layout' },
);