mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-03-13 01:30:11 +01:00
30 lines
902 B
TypeScript
30 lines
902 B
TypeScript
import {NavigationDrawer as MDNavigationDrawer} from '@material/web/navigationdrawer/lib/navigation-drawer.js';
|
|
import {styles} from '@material/web/navigationdrawer/lib/navigation-drawer-styles.css.js';
|
|
import {styles as sharedStyles} from '@material/web/navigationdrawer/lib/shared-styles.css.js';
|
|
import {css} from 'lit';
|
|
import {customElement} from 'lit/decorators.js';
|
|
|
|
declare global {
|
|
interface HTMLElementTagNameMap {
|
|
'md-navigation-drawer': MdNavigationDrawer;
|
|
}
|
|
}
|
|
|
|
@customElement('md-navigation-drawer')
|
|
export default class MdNavigationDrawer extends MDNavigationDrawer {
|
|
static override readonly styles = [sharedStyles, styles, css`
|
|
:host {
|
|
display: inline-flex;
|
|
}
|
|
|
|
.md3-navigation-drawer--opened {
|
|
width: var(--_container-width);
|
|
height: var(--_container-height);
|
|
}
|
|
|
|
.md3-navigation-drawer__slot-content {
|
|
width: inherit;
|
|
}
|
|
`];
|
|
}
|