forked from aaronpk/live-chat-overlay
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathstyles.css
179 lines (170 loc) · 3.12 KB
/
styles.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
body{background:black;}
#root{
margin-top:calc(100vh - 600px);
z-index:1;
}
#overlay-zone{
position: fixed;
background-color:black;
top:0;
width:100%;
height: calc(100vh - 600px) !important;
z-index:10;
}
.btn-clear {
position: absolute;
z-index: 99999999;
top: 10px;
right: 20px;
height:40px;
font-size: 30px;
background-color: white;
}
.show-comment {
background-color: #55de55 !important;
}
highlight-chat {
font-family: Avenir Next;
font-weight: 600;
box-sizing: border-box;
display: block;
position: absolute;
top:10px;
left:0;
width: 100%;
height: 400px;
z-index:99999999999;
overflow: hidden;
margin: 0px;
padding: 40px 50px 40px 220px;
background-color: #000; /* black background for Luma key */
color: #fff;
font-size: 30px;
}
.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: 700;
background: #ffa500;
color: #080808;
padding: 10px;
transform: rotate(-0deg);
z-index: 1;
}
.hl-message {
position: absolute;
font-size: 45px;
font-weight: 600;
padding: 20px 40px 20px 70px;
background-color: #222; /* needs to be slightly above black to not get keyed out */
}
.hl-message img {
width: 50px;
vertical-align: middle;
}
.hl-img {
position: absolute;
top: 0;
z-index: 1;
left: -60px;
width: 128px;
height: 128px;
background-color: orange;
border-radius: 50%;
border: 0;
padding: 3px;
}
.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;
}
.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, #BF953F, #ede599, #B38728);
color: #5a4211;
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: 'SUPERCHAT';
color: #fff;
}
.membership::before {
content: '';
}
.donation::after {
content: '';
position: absolute;
top: -50%;
left: 0;
height: 200%;
width: 1px;
background-color: #fff;
box-shadow: 0 0 20px 20px #fff;
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);
}
}
yt-live-chat-text-message-renderer {
font-size: 24px !important;
line-height: 32px;
}
yt-live-chat-viewer-engagement-message-renderer {
display: none !important;
}