-
Notifications
You must be signed in to change notification settings - Fork 1
/
podcast-episode.html
100 lines (88 loc) · 1.86 KB
/
podcast-episode.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<style>
:host {
display: block;
overflow: hidden;
margin-bottom: 8px;
background: var(--shaded-dark);
box-shadow: 0 8px 16px rgba(0, 0, 0, .2);
}
hr {
border: 1px solid var(--foreground);
align-self: stretch;
margin: 8px;
}
.metadata {
display: flex;
font-family: var(--title-font);
padding: 4px;
align-items: center;
}
[as="playButton"] {
border: none;
color: var(--foreground);
background: var(--background);
text-transform: uppercase;
padding: 16px 8px;
font-weight: bold;
border-radius: 4px;
}
:host(.playing) [as="playButton"] {
background: var(--accent);
}
[as="playButton"]:focus,
[as="playButton"]:focus-within {
outline: 1px solid var(--accent);
}
.title {
font-size: 1.2rem;
flex: 1;
text-overflow: ellipsis;
overflow: hidden;
cursor: pointer;
}
.description {
display: none;
font-family: var(--content-font);
padding: 4px 24px 4px;
font-size: 1rem;
&:focus {
outline: none;
}
}
:host(.expanded) .description {
display: block;
}
.actions {
padding: 4px 24px 24px;
display: flex;
justify-content: space-between;
text-align: right;
font-size: 12px;
& a {
color: inherit;
&:not([href]), &[href=""] {
display: none;
}
}
}
:host(:not(.expanded)) .actions {
display: none;
}
</style>
<div class="metadata">
<div class="title" as="title">
<!-- <slot name="title"></slot> -->
</div>
<hr aria-hidden="true">
<button as="playButton">
Play
</button>
</div>
<div class="description" as="description" tabindex="-1">
<!-- <slot name="description"></slot> -->
</div>
<div class="actions">
<div class="date" as="date"></div>
<a target="_new" as="link">View page</a>
<a target="_new" as="download">Download MP3</a>
</div>