aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/YTPlayer/index.styled.ts
blob: c437b9c5ffefeca8c019beb8a7afc75eb0a32c7d (plain) (blame)
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
import styled from "styled-components";

export const ProgressBackground = styled.div`
  position: relative;
  width: 100%;
  height: 12px;
  background-color: var(--cl-gray-2);
  border: 1px solid ${({ theme }) => theme.border};
  margin: 24px 0 4px 0;
`;

export const Progress = styled.div<{ value: number }>`
  width: ${({ value }) => value * 6.25}%;
  height: 100%;
  background-color: ${({ theme }) => theme.green};
  transition: width 0.5s;
`;

export const Separator = styled.div`
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background-color: ${({ theme }) => theme.border};
`;

export const TimeStamps = styled.div`
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 12px;
`;

export const TimeStamp = styled.p`
  margin: 0;
  font-family: "Roboto Mono", monospace;
  font-size: 0.7rem;
  color: var(--cl-gray-5);
`;

export const VolumeControl = styled.div`
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 240px;
  margin: 12px auto 0;
`;

export const VolumeLabel = styled.label`
  font-family: "Roboto Mono", monospace;
  font-size: 0.75rem;
  color: var(--cl-gray-5);
`;

export const VolumeSlider = styled.input`
  width: 100%;
  accent-color: ${({ theme }) => theme.green};
  cursor: pointer;
`;
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage