-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAudioPlayer.styled.tsx
More file actions
46 lines (41 loc) · 1014 Bytes
/
AudioPlayer.styled.tsx
File metadata and controls
46 lines (41 loc) · 1014 Bytes
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 styled from 'styled-components';
export const StyledAudioPlayer = styled.div<{ $active: boolean }>`
width: 100%;
position: fixed;
bottom: 0;
background-color: ${(p) => p.theme.background};
border-top: 2px solid ${(p) => p.theme.offWhite};
transition: transform 0.3s ease;
transform: translateY(${(p) => (p.$active ? '0%' : '100%')});
audio {
width: 100%;
}
`;
export const PlayerInner = styled.div`
max-width: 1000px;
margin: 0 auto;
padding: 1.6rem;
@media screen and (max-width: 768px) {
padding: 0.8rem;
}
`;
export const Close = styled.button`
color: white;
background-color: ${(p) => p.theme.background};
text-decoration: underline;
border: none;
cursor: pointer;
`;
// TODO make it marquee
export const EpisodeTitle = styled.h4`
color: white;
margin: 0;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
`;
export const TitleWrapper = styled.div`
display: flex;
justify-content: space-between;
margin-bottom: 0.8rem;
`;