-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy pathwatch-video-playlist.css
111 lines (91 loc) · 2.41 KB
/
watch-video-playlist.css
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
101
102
103
104
105
106
107
108
109
110
111
.playlistTitle {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.playlistTitleLink, .channelName {
text-decoration: none;
color: inherit;
}
.channelName {
font-size: 15px;
position: relative;
inset-block-end: 15px;
}
.playlistIndex {
position: relative;
inset-block-end: 15px;
color: var(--tertiary-text-color);
}
.playlistProgressBar {
margin-inline-start: 10px;
/* > In order to let ::-webkit-progress-value take effect, appearance needs to be set to none on the <progress> element. */
/* https://developer.mozilla.org/en-US/docs/Web/CSS/::-webkit-progress-value */
appearance: none;
}
.playlistProgressBar::-webkit-progress-value {
/* Color for filled part */
/* https://developer.mozilla.org/en-US/docs/Web/CSS/::-webkit-progress-value */
/* background-color is required to be declared here to prevent color being green */
background-color: var(--accent-color);
}
.playlistProgressBar::-webkit-progress-bar {
/* Color for unfilled part */
/* https://developer.mozilla.org/en-US/docs/Web/CSS/::-webkit-progress-bar */
background-color: var(--secondary-text-color);
}
.playlistIcon {
block-size: 20px;
inline-size: 20px;
font-size: 20px;
padding: 10px;
margin-block-start: -25px;
cursor: pointer;
border-radius: 50%;
color: var(--tertiary-text-color);
transition: background 0.2s ease-out;
stroke-width: 20;
stroke: var(--bg-color);
}
.playlistIcon:hover {
background-color: var(--side-nav-hover-color);
color: var(--side-nav-hover-text-color);
stroke-width: 20;
stroke: var(--side-nav-hover-color);
transition: background 0.2s ease-in;
}
.playlistIconActive {
color: var(--accent-color);
stroke-width: 10;
stroke: var(--accent-color);
}
.playlistIconActive:hover {
background-color: var(--side-nav-hover-color);
color: var(--accent-color-hover);
stroke-width: 10;
stroke: var(--accent-color-hover);
transition: background 0.2s ease-in;
}
.playlistItems {
overflow-y: auto;
block-size: 360px;
}
.playlistItem {
display: grid;
grid-template-columns: 30px 1fr;
align-items: center;
transition: background 0.2s ease-out;
}
.playlistItem:not(:last-child) {
margin-block-end: 8px;
}
.playlistItem:hover {
background-color: var(--side-nav-hover-color);
color: var(--side-nav-hover-text-color);
transition: background 0.2s ease-in;
}
.videoInfo {
margin-inline-start: 30px;
position: relative;
inset-block-end: 7px;
}