app-layoutpackage.theme.lumo.vaadin-drawer-toggle-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/font-icons.js';
import { button } from '@vaadin/button/theme/lumo/vaadin-button-styles.js';
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
const drawerToggle = css`
:host {
width: var(--lumo-size-l);
height: var(--lumo-size-l);
min-width: auto;
margin: 0 var(--lumo-space-s);
padding: 0;
background: transparent;
}
[part='icon'],
[part='icon']::after,
[part='icon']::before {
position: inherit;
height: auto;
width: auto;
background: transparent;
top: auto;
}
[part='icon']::before {
font-family: lumo-icons;
font-size: var(--lumo-icon-size-m);
content: var(--lumo-icons-menu);
}
:host([slot~='navbar']) {
color: var(--lumo-secondary-text-color);
}
`;
registerStyles('vaadin-drawer-toggle', [button, drawerToggle], { moduleId: 'lumo-drawer-toggle' });