-
Notifications
You must be signed in to change notification settings - Fork 0
/
youtube-live-qa.css
170 lines (127 loc) · 3.55 KB
/
youtube-live-qa.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
/*
* CSS theme for YouTube Live Q&A
*
* Copyright (c) Susko3 <[email protected]>. Licensed under the MIT Licence.
* See the LICENCE file in the repository root for full licence text.
*/
/*
* Add shadow to text to make it stand out against the background
*/
* {
text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000, 0px 1px 0 #000, 0px -1px 0 #000, -1px 0px 0 #000, 1px 0px 0 #000, 2px 2px 0 #000, -2px 2px 0 #000, 2px -2px 0 #000, -2px -2px 0 #000, 0px 2px 0 #000, 0px -2px 0 #000, -2px 0px 0 #000, 2px 0px 0 #000, 1px 2px 0 #000, -1px 2px 0 #000, 1px -2px 0 #000, -1px -2px 0 #000, 2px 1px 0 #000, -2px 1px 0 #000, 2px -1px 0 #000, -2px -1px 0 #000;
}
/* Add some spacing for the shadow */
yt-formatted-string {
padding-left: 3px;
padding-right: 3px;
}
/*
* Customise the text of the username on the creator prompt and viewer question
*/
#question-label,
#author-name,
#separator-collapsed,
#feature-label {
font-family: "Roboto", "Noto", sans-serif !important;
color: rgba(255, 255, 255, 0.7);
font-size: 24px !important; /* original: 12px */
line-height: 40px !important; /* original: 20px */
}
/*
* Customise the text of the creator prompt and viewer question
*/
#question-text,
#call-for-questions-text {
font-family: "Roboto", "Noto", sans-serif !important;
color: #FFFFFF;
font-size: 28px !important; /* original: 14px */
line-height: 40px !important; /* original: 20px */
}
/*
* Customise the question mark icon, shown when displaying viewer question
*/
#question-icon {
transform: scale(1.3);
color: #FFFFFF;
stroke: black;
stroke-width: 0.4px;
}
/*
* Customise the border
*/
yt-live-chat-banner-renderer {
border-radius: 8px; /* original: 4px */
border-width: 2px; /* original: 1px */
}
/*
* Customise background color
*/
yt-live-interactivity-component-background {
background: #203F6F;
}
/* hide the default blue SVG background */
svg.yt-live-interactivity-component-background {
display: none;
}
/*
* Always display expanded "call for questions" banner (and hide the collapsed state)
*/
#ask-question,
#main-content {
display: flex !important;
}
#author-name,
#separator-collapsed {
display: inline !important;
}
#separator-extended, /* this name seems to be reversed, extended<->collapsed */
#collapsed-call-for-questions-text {
display: none !important;
}
/*
* Always display expanded "viewer questions" banner (and hide the collapsed state)
*/
#question-label {
display: block !important;
}
#collapsed-question-text {
display: none !important;
}
/*
* Disable animation between expanded and collapsed state
*/
yt-live-chat-call-for-questions-renderer[in-collapsed-banner],
yt-live-chat-creator-answers-questions-banner-renderer[in-collapsed-banner] {
margin: 0 -8px -8px 0;
}
#contents.yt-live-chat-banner-renderer {
padding-bottom: 4px !important;
}
/*
* Hide unwanted chat elements
*/
/* hide every banned that is not the Q&A banner, eg. pinned message */
yt-live-chat-banner-renderer:not([is-call-for-questions]):not([is-creator-answers-questions-banner]),
yt-live-chat-header-renderer,
iron-pages,
#item-offset,
#menu,
#separator {
display: none;
}
/*
* Hide scrollbar
*/
yt-live-chat-item-list-renderer[allow-scroll] #item-scroller.yt-live-chat-item-list-renderer {
overflow: hidden;
}
#item-scroller.yt-live-chat-item-list-renderer {
--scrollbar-width: 0px;
}
/*
* Make the chat background transparent and remove the drop shadow
*/
yt-live-chat-renderer,
yt-live-chat-banner-manager.yt-live-chat-item-list-renderer {
background: transparent;
}