-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpodcast-menu.html
78 lines (71 loc) · 1.47 KB
/
podcast-menu.html
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<style>
:host {
display: block;
position: relative;
}
.toggle {
transition: transform .2s ease;
transform-origin: center;
display: block;
background: transparent;
border: none;
color: inherit;
font-family: inherit;
font-size: inherit;
padding: 0 8px;
&.open {
transform: rotate(90deg);
font-weight: bold;
}
}
.screen {
position: fixed;
z-index: 99;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.menu {
padding: 0;
margin: 0;
position: absolute;
right: 100%;
top: 50%;
z-index: 99999;
list-style-type: none;
background: var(--foreground);
color: var(--foreground);
box-shadow: 0 8px 16px #000C;
transition: transform .1s linear;
&.upward {
transform: translateY(-100%);
}
& button {
display: block;
background: transparent;
border: none;
text-transform: uppercase;
padding: 8px;
font-size: 16px;
font-family: var(--ui-font);
}
}
</style>
<button
aria-label="podcast actions"
aria-pressed="false"
as="menuToggle"
class="toggle"
>
▽
</button>
<div class="screen" as="modal" hidden></div>
<ul class="menu" as="menu" hidden tabindex="-1">
<li> <button data-action="latest">Play latest</button>
<li> <button data-action="refresh">Refresh</button>
<li> <button data-action="clear">Clear feed</button>
<li> <button data-action="search">Search</button>
<li> <button data-action="rename">Rename</button>
<li> <button data-action="unsubscribe">Unsubscribe</button>
</ul>