-
Notifications
You must be signed in to change notification settings - Fork 3
/
video.css
153 lines (126 loc) · 2.33 KB
/
video.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
div.thumbnail {
width: 100%;
position: relative;
margin-bottom: 8px;
}
div.video-time {
background-color: black;
color: white;
position: absolute;
bottom: 8px;
right: 5px;
font-size: 12px;
font-weight: 500;
/* Padding shortcut */
/* top right bottom left */
/* Vertical Horizontal */
padding: 4px;
/* Works with margin as well */
border-radius: 2px;
}
img.channel-picture {
border-radius: 50%;
width: 36px;
}
div.channel-picture {
width: 38px;
vertical-align: top;
position: relative;
height: 36px;
}
p.video-title {
font-weight: 500;
font-size: 14px;
line-height: 18px;
margin-bottom: 10px;
}
img.thumbnail {
width: 100%;
}
p.video-author,
p.video-info {
font-size: 12px;
color: rgb(96, 96, 96);
}
p.video-author {
margin-bottom: 4px;
}
div.video-information-grid {
display: grid;
grid-template-columns: 40px 1fr;
}
div.video-previews {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
column-gap: 15px;
row-gap: 30px;
}
/* Border not affected by inheritance, mostly with text properties */
@media (max-width: 500px) {
div.video-previews {
grid-template-columns: 1fr;
}
}
@media (max-width: 750px) {
div.video-previews {
grid-template-columns: 1fr 1fr;
}
}
@media (min-width: 751px) and (max-width: 999px) {
div.video-previews {
grid-template-columns: 1fr 1fr 1fr;
}
}
@media (min-width: 1200px) {
div.video-previews {
grid-template-columns: 1fr 1fr 1fr 1fr;
}
p {
font-size: 14px;
}
p.video-title {
font-size: 16px;
line-height: 24px;
}
}
@media (min-width: 2000px) {
p {
font-size: 18px;
}
p.video-title {
font-size: 20px;
line-height: 28px;
}
}
div.channel-tooltip-container {
box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.45);
border-radius: 4px;
width: 250px;
display: flex;
z-index: 300;
background-color: white;
position: absolute;
padding-left: 9px;
padding-right: 18px;
padding-top: 12px;
padding-bottom: 12px;
opacity: 0;
bottom: -85px;
pointer-events: none;
transition: opacity 0.15s;
}
img.tooltip-channel-picture {
border-radius: 50%;
height: 45px;
margin-right: 6px;
}
div.channel-picture:hover div.channel-tooltip-container {
opacity: 1;
}
p.tooltip-channel-name {
font-weight: bold;
}
p.tooltip-channel-subscribers {
font-size: 13px;
color: rgb(143, 143, 143);
}