Skip to content

Commit cb69362

Browse files
committed
feat: theme bottom sheets
1 parent 1b63b75 commit cb69362

2 files changed

Lines changed: 70 additions & 0 deletions

File tree

src/components/_index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
@forward 'drawer';
2+
@forward 'sheet';

src/components/_sheet.scss

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
body.is-phone {
2+
$background-color: var(--md-sys-surface-container-low);
3+
4+
.menu {
5+
background-color: $background-color;
6+
border-radius: var(--md-sys-shape-corner-extra-large-top);
7+
margin-top: 72px;
8+
padding: 0;
9+
}
10+
11+
.menu-grabber {
12+
background-color: var(--md-sys-on-surface-variant);
13+
border-radius: var(--md-sys-shape-corner-full);
14+
height: 4px;
15+
width: 32px;
16+
margin: 22px auto;
17+
}
18+
19+
.menu-scroll {
20+
background-color: $background-color;
21+
display: block;
22+
padding: 8px 0px;
23+
}
24+
25+
.menu-separator {
26+
margin: 8px 16px;
27+
height: 1px;
28+
29+
&:nth-of-type(2) {
30+
display: none;
31+
}
32+
}
33+
34+
.menu-item {
35+
border-radius: var(--md-sys-shape-corner-none);
36+
37+
&.is-label {
38+
border-radius: var(--md-sys-shape-corner-large);
39+
background-color: var(--md-sys-surface-container-highest);
40+
margin-inline: 16px;
41+
margin-bottom: 8px;
42+
padding-inline: 16px;
43+
}
44+
45+
&.tappable {
46+
gap: 16px;
47+
height: 56px;
48+
padding-inline: 32px;
49+
}
50+
}
51+
52+
.menu-item-icon {
53+
align-items: center;
54+
justify-content: center;
55+
56+
.svg-icon {
57+
color: var(--md-sys-on-surface-variant);
58+
height: 24px;
59+
width: 24px;
60+
}
61+
}
62+
63+
.menu-item-title {
64+
color: var(--md-sys-on-surface-variant);
65+
font-size: 1rem;
66+
line-height: 1.5rem;
67+
letter-spacing: 0.03125rem;
68+
}
69+
}

0 commit comments

Comments
 (0)