-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
250 lines (212 loc) · 7.57 KB
/
main.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
/* Hides sidebar contents that isn't followed channels (hides recommended) */
div.side-bar-contents div[aria-label^="Recommended"],
div.side-bar-contents div[aria-label*="Viewers Also Watch"]
{
display: none!important;
}
/** Adds transparent background color, removes shadows and padding on sidebar elements */
body.dark-theme div.side-bar-contents > nav div > div[aria-label] > div[class*="Layout-"]
{
background-color: transparent!important;
box-shadow: none!important;
padding-bottom: 0px!important;
}
/* Hides `overview` from following page */
body.dark-theme div > ul[role="tablist"] > li:first-child
{
display: none!important;
}
/* Adds a border to the following page tablist */
body.dark-theme div div.common-centered-column div[class*="TabsLayout"]
{
border-bottom: 2px solid #141414!important;
}
/* Fixes `live` padding on the following page */
body.dark-theme div > ul[role="tablist"] > li:nth-child(2) > a
{
padding-left: 0px!important;
}
/** Hides offline channels from "live" sidebar */
body.dark-theme div[class*="avatar--offline"]
{
display: none!important;
}
/* Darker sidebar */
body.dark-theme div#sideNav > div:nth-child(1) > div:nth-child(1)
{
background-color: #141414!important;
border-right: 1px solid #1a1a1a!important;
}
/* Sidebar avatars shadowing */
body.dark-theme div.side-bar-contents div[aria-label*="Channels"]:first-child figure[aria-label][class*="Avatar"] > img
{
box-shadow: 2px 2px 3px rgba(10, 10, 10, 0.85);
}
/* Change tag colors */
body.dark-theme a[class*="Tag"][aria-label][aria-describedby]
{
background-color: #141414!important;
color: #858585!important;
}
body.dark-theme a[class*="Tag"][aria-label][aria-describedby]:hover
{
background-color: #191919!important;
color: #999999!important;
}
body.dark-theme a[class*="Tag"][aria-label][aria-describedby] div[class*="TagText"]
{
margin-top: -1px!important;
}
/* Hides prime loot notifier and bits button */
body.dark-theme nav[data-a-target="top-nav-container"] > div[class*="Layout"] > div[class*="Layout"]:last-child div[class*="top-nav__prime"]
{
display: none!important;
}
body.dark-theme nav[data-a-target="top-nav-container"] > div[class*="Layout"] > div[class*="Layout"]:last-child > div:nth-last-child(2)
{
display: none!important;
}
/** Darker search box */
body.dark-theme div[data-a-target="nav-search-box"] input[placeholder]
{
background-color: #101010;
border-top: 1px solid #242424;
border-left: 1px solid #242424;
border-bottom: 1px solid #242424;
border-right: 0px solid transparent;
}
body.dark-theme div[aria-label*="Followed Channels"] div > figure
{
fill: red!important;
color: #303030!important;
}
/* Tweaks the way channel cards look at certain pages */
body.dark-theme div.live-channel-card div[class*="Layout"] > div[class*="TextWrapper"]
{
text-align: left!important;
}
body.dark-theme div.live-channel-card div[class*="Layout"] > div[class*="TextWrapper"] a > p[data-a-target=preview-card-channel-link],
body.dark-theme div.live-channel-card div[class*="Layout"] > div[class*="TextWrapper"] a > h3
{
text-align: left!important;
}
body.dark-theme div.live-channel-card div[class*="Layout"] > div[class*="TextWrapper"] a > p[data-a-target=preview-card-channel-link]
{
margin-top: 4px;
}
body.dark-theme div.live-channel-card div[class*="Layout"] > div[class*="TextWrapper"] > div:first-child
{
margin-bottom: 10px!important;
}
body.dark-theme div.live-channel-card div[class*="Layout"] > div[class*="TextWrapper"] > div > p > a[data-test-selector]
{
font-weight: bold;
}
body.dark-theme div.live-channel-card div[class*="Layout"] > div[class*="TextWrapper"] > div > p
{
border-top: 1px solid #161616!important;
padding-top: 4px!important;
margin-top: 8px!important;
}
body.dark-theme div.live-channel-card div[class*="Layout"] > div[class*="TextWrapper"] > div > p > a::before
{
content: 'Category: ';
font-weight: normal;;
}
body.dark-theme div.live-channel-card div[class*="Layout"] > div[class*="TextWrapper"] > div > p > a
{
margin-bottom: 6px;
}
/** Add border to channel card previews */
div.live-channel-card article div[class*="Wrapper-"] > div > a div[class*="Aspect"] img[alt]
{
min-height: calc(100% - 4px)!important;
height: calc(100% - 4px)!important;
border: 2px solid #141414!important;
}
/* Edit elements active when watching live streams */
div.chat-input div.rich-input-container > div:nth-child(2)
{
background-color: #141414!important;
border: 1px solid #242424!important;
}
/** Makes the subscribe button darker so that it doesn't stand as much out */
body.dark-theme button[class*="CoreButton"][aria-label^="Gift"][data-a-target="subscribed-button"],
body.dark-theme button[aria-label="Subscribe"], body.dark-theme button[data-a-target="subscribe-button"]
{
background-color: #262626!important;
}
body.dark-theme button[class*="CoreButton"][aria-label^="Gift"][data-a-target="subscribed-button"]:hover,
body.dark-theme button[aria-label="Subscribe"]:hover, body.dark-theme button[data-a-target="subscribe-button"]:hover
{
background-color: #303030!important;
}
p[data-a-target="animated-channel-viewers-count"], div[role="presentation"] > figure > svg
{
font-feature-settings: "tnum";
font-weight: normal!important;
color: #ff6767!important;
fill: transparent!important;
}
/* Darkens viewer count on stream cards */
div[class*="ScMediaCardStatWrapper"]
{
background-color: #000000ba!important;
}
/** Hides share button from under a live stream */
button[data-a-target="share-button"]
{
display: none!important;
}
/** Darkens more options button */
button[data-a-target="report-button-more-button"] div > svg
{
fill: #282828!important;
}
/** Attempts to hide chat leaderboard */
section > div.chat-room__content > div:first-child:not([class*="chat-list"]):not([class*="chat-input"])
{
display: none!important;
}
/** Remove the hard shadow from the top navigation bar */
nav[data-a-target="top-nav-container"] > div.top-nav__menu
{
border-bottom: 1px solid #131313!important;
box-shadow: 0px 0px 2px #111!important;
}
/** Clip download button styling */
a.downloadClipButton
{
display: block;
background-color: #264995;
line-height: 28px;
border-radius: 4px;
font-size: 18px;
line-height: 30px;
height: 30px;
width: 40px;
font-weight: bold;
margin-right: 12px;
cursor: pointer;
text-align: center;
color: #fff!important;
text-decoration: none!important;
}
a.downloadClipButton:not(.isDownloading)::before
{
content: '🡓';
}
a.downloadClipButton.isDownloading
{
max-height: 30px!important;
line-height: 42px!important;
width: 40px!important;
}
a.downloadClipButton.isDownloading::before
{
content: url("data:image/svg+xml,%3Csvg width='24' height='24' version='1.1' id='L9' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 100 100' enable-background='new 0 0 0 0' xml:space='preserve'%3E%3Cpath fill='rgba(255, 255, 255, 1.0)' d='M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50'%3E%3CanimateTransform attributeName='transform' attributeType='XML' type='rotate' dur='1s' from='0 50 50' to='360 50 50' repeatCount='indefinite' /%3E%3C/path%3E%3C/svg%3E")!important;
}
a.downloadClipButton:hover
{
background-color: #2e58b1;
}