-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathNavDrawer.js
46 lines (40 loc) · 1.08 KB
/
NavDrawer.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import SideSheet from './SideSheet.js';
export default SideSheet
.extend()
.observe({
shapeEnd: {
type: 'boolean',
empty: true,
},
autoOpen: {
type: 'float',
empty: 1248,
},
fixedBreakpoint: {
type: 'float',
empty: 1248,
},
})
.css`
/* https://m3.material.io/components/navigation-drawer/specs */
:host {
--mdw-shape__size: var(--mdw-shape__large, 16px);
--mdw-shape__size__top-start-size: 0px;
--mdw-shape__size__bottom-start-size: 0px;
--mdw-nav-item__badge__position: static;
--mdw-nav-item__badge__transform: none;
--mdw-nav-item__badge__grid-area: badge;
--mdw-nav-item__label__padding-block: 18px;
--mdw-nav-item__label__padding-inline: 52px 0;
--mdw-nav-item__anchor__display: block;
--mdw-nav-item__indicator__grid-area: auto;
display:inline-block;
inline-size: 360px;
max-inline-size: calc(100vw - 56px);
padding-inline: 12px;
}
::slotted(mdw-divider) {
padding-inline: 16px;
}
`
.autoRegister('mdw-nav-drawer');