All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.theme.material.vaadin-app-layout-styles.js Maven / Gradle / Ivy

The newest version!
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);
      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' },
);




© 2015 - 2024 Weber Informatics LLC | Privacy Policy