vertical-layoutpackage.theme.lumo.vaadin-vertical-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
The newest version!
import '@vaadin/vaadin-lumo-styles/spacing.js';
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
const verticalLayout = css`
:host([theme~='margin']) {
margin: var(--lumo-space-m);
}
:host([theme~='padding']) {
padding: var(--lumo-space-m);
}
:host([theme~='spacing-xs']) {
gap: var(--lumo-space-xs);
}
:host([theme~='spacing-s']) {
gap: var(--lumo-space-s);
}
:host([theme~='spacing']) {
gap: var(--lumo-space-m);
}
:host([theme~='spacing-l']) {
gap: var(--lumo-space-l);
}
:host([theme~='spacing-xl']) {
gap: var(--lumo-space-xl);
}
`;
registerStyles('vaadin-vertical-layout', verticalLayout, { moduleId: 'lumo-vertical-layout' });