forked from steveseguin/twitch-youtube-restream-chat-overlay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
twitch.css
295 lines (282 loc) · 7.22 KB
/
twitch.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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
:root {
/* basic colors */
--keyer-bg-color: #000; /* change for a chroma key if you want, beware profile avatars may key out */
--comment-color: #fff;
--comment-bg-color: #222; /* needs to be slightly above black to not get keyed out */
--comment-border-radius: 0px;
--comment-font-size: 40px;
--author-color: #222;
--author-bg-color: #ffa500;
--author-avatar-border-color: #ffa500;
--author-border-radius: 0px;
--author-avatar-border-size: 3px;
--author-avatar-size: 128px;
--author-font-size: 30px;
/* donation/superchat specific */
--donation-color: #5a4211;
--donation-bg-color: #fff;
--donation-gradient-stop0: #BF953F;
--donation-gradient-stop1: #ede599;
--donation-gradient-stop2: #B38728;
--donation-label-color: #fff;
--donation-label-text: 'SUPERCHAT';
--donation-shadow-color: #fff;
--shown-comment-bg-color: #555555;
--highlighted-comment-bg-color: #f0f07d;
/*
LAYOUT
*/
--comment-width: auto; /* go 100% for a full screen lower third style*/
--comment-padding: 20px 40px 20px 70px;
--comment-area-height: 30vh;
--comment-scale: 1;
--comment-area-size-offset: 0;
--comment-area-bottom: 10px;
/*
STYLE
*/
--font-family: Avenir Next, Helvetica, Geneva, Verdana, Arial, sans-serif;
--highlight-chat-font-weight: 600;
--author-font-weight: 700;
--comment-font-weight: 600;
}
tp-yt-paper-tooltip {
display:none;
}
.chat-line__message--emote-button{
display:inline-block;
}
.chat-line__message{
cursor: pointer;
}
.tooltip{
display:none;
}
body {
background-color: var(--keyer-bg-color);
}
yt-live-chat-app {
margin-bottom: var(--comment-area-height);
height: calc(100vh - var(--comment-area-height)) !important;
}
.btn-clear {
position: absolute;
z-index: 99999;
bottom: calc(var(--comment-area-height) + 60px);
right: 20px;
font-size: 30px;
border: 1px #bbb solid;
border-radius: 4px;
color: #fff;
background: #444;
}
.highlighted-comment {
background-color: var(--highlighted-comment-bg-color) !important;
}
html[dark] .highlighted-comment #message.yt-live-chat-text-message-renderer {
color: black;
}
html[dark] .highlighted-comment:hover #message.yt-live-chat-text-message-renderer {
color: white;
}
html[dark] .highlighted-comment #author-name.yt-live-chat-author-chip {
color: #444;
}
html[dark] .highlighted-comment:hover #author-name.yt-live-chat-author-chip {
color: #DDD;
}
yt-live-chat-text-message-renderer:hover {
background-color: #eee !important;
}
html[dark] yt-live-chat-text-message-renderer:hover {
background-color: #444 !important;
}
yt-live-chat-text-message-renderer.shown-comment {
background-color: var(--shown-comment-bg-color) !important;
opacity: 0.4;
}
.shown-comment:hover {
opacity: 0.5;
}
highlight-chat {
font-family: var(--font-family);
font-weight: var(--highlight-chat-font-weight);
box-sizing: border-box;
display: block;
position: absolute;
bottom: var(--comment-area-bottom);
left: calc(var(--comment-area-size-offset) * -1px);
right: calc(var(--comment-area-size-offset) * -1px);
width: 100%;
height: var(--comment-area-height);
z-index:99999999999;
overflow: hidden;
margin: 0px;
padding: 40px 50px 40px 220px;
background-color: var(--keyer-bg-color);
color: #fff;
font-size: 30px;
transform: scale(var(--comment-scale));
}
highlight-chat.preview {
border: 1px #ccc solid;
}
.hl-c-cont {
position: relative;
padding: 20px;
width: 100%;
margin: 0 auto;
transition: .5s all cubic-bezier(0.250, 0.250, 0.105, 1.2);
}
.hl-c-cont.fadeout {
transform: translateY(600px);
}
.hl-name {
position: absolute;
top: -20px;
left: 50px;
font-weight: var(--author-font-weight);
background: var(--author-bg-color);
color: var(--author-color);
padding: 10px;
transform: rotate(-0deg);
z-index: 1;
border-radius: var(--author-border-radius);
font-size: var(--author-font-size);
}
.hl-message {
position: absolute;
width: var(--comment-width);
font-weight: var(--comment-font-weight);
padding: var(--comment-padding);
color: var(--comment-color);
background-color: var(--comment-bg-color);
border-radius: var(--comment-border-radius);
font-size: var(--comment-font-size);
}
.hl-message img {
width: 50px;
vertical-align: middle;
}
.hl-message a {
color: white;
}
.hl-img {
position: absolute;
top: 0;
z-index: 1;
left: -60px;
width: var(--author-avatar-size);
height: var(--author-avatar-size);
background-color: var(--author-avatar-border-color);
border-radius: 50%;
border: 0;
padding: var(--author-avatar-border-size);
}
.hl-img img {
display: block;
width: 100%;
border-radius: 50%;
z-index: 1;
}
/* overlay a very faint white layer to bump the blacks above the luma key cutoff */
.hl-img:after {
content: '';
display: block;
height: 100%;
width: 100%;
top: 0;
left: 0;
border-radius: 50%;
position:absolute;
pointer-events: none;
z-index: 3;
}
.hl-img::after {
background: rgba(255,255,255,.04);
mix-blend-mode: lighten;
}
.hl-badges {
display: inline-block;
margin-left: 10px;
}
.hl-badges img.yt-live-chat-author-badge-renderer {
width: 24px;
height: 24px;
}
.donation {
position: absolute;
display: block;
text-align: center;
left: 10px;
top: 108px;
z-index: 3;
min-width: 128px;
border-radius: 10px;
padding: 30px 5px 0;
overflow: hidden;
background: linear-gradient(to right, var(--donation-gradient-stop0), var(--donation-gradient-stop1), var(--donation-gradient-stop2));
color: var(--donation-color);
transform: rotate(-5deg) translateX(-50%);
}
.membership {
padding: 10px 10px 5px 10px;
}
.donation::before {
position: absolute;
top: 0;
left: 0;
width: 100%;
font-size: 18px;
text-align: center;
background-color: rgba(0, 0, 0, 0.23);
border-radius: 10px 10px 0 0;
padding: 5px 0 0;
display: block;
content: var(--donation-label-text);
color: var(--donation-label-color);
}
.membership::before {
content: '';
}
.donation::after {
content: '';
position: absolute;
top: -50%;
left: 0;
height: 200%;
width: 1px;
background-color: var(--donation-bg-color);
box-shadow: 0 0 20px 20px var(--donation-shadow-color);
opacity: 0.7;
transform: rotate(9deg) translate3D(250px, 0, 0);
animation: superchat 3s ease-in-out infinite;
}
@keyframes superchat {
from {
transform: rotate(9deg) translate3D(-250px, 0, 0);
}
}
/* hide chat input to give more space to the chat */
/*
#input-panel, yt-live-chat-viewer-engagement-message-renderer {
display: none !important;
}
*/
yt-live-chat-item-list-renderer {
margin-bottom: 20px;
}
yt-live-chat-text-message-renderer {
font-size: 24px !important;
line-height: 32px;
}
yt-live-chat-text-message-renderer,
yt-live-chat-paid-message-renderer,
yt-live-chat-membership-item-renderer {
cursor: pointer;
}
yt-live-chat-text-message-renderer[is-deleted],
yt-live-chat-paid-message-renderer[is-deleted],
yt-live-chat-membership-item-renderer[is-deleted] {
cursor: default;
}