-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtwitter.user.styl
239 lines (175 loc) · 5.57 KB
/
twitter.user.styl
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
/* ==UserStyle==
@name Twitter Moonlight
@namespace github.com/brettm12345/twitter-moonlight
@homepageURL https://github.com/brettm12345/twitter-moonlight
@supportURL https://github.com/brettm12345/twitter-moonlight/issues
@updateURL https://raw.githubusercontent.com/brettm12345/twitter-moonlight/master/twitter.user.styl
@version 1.0.5
@license unlicense
@author brettm12345
@var color blue "Blue" #82aaff
@var color blue-trans "Transparent Blue" #82aaff1a
@var color purple "Purple" #c597f9
@var color red "Red" #ff5370
@var color red-trans "Transparent Red" #ff53701a
@var color green "Green" #4fd6be
@var color green-trans "Transparent Green" #4fd6be1a
@var color backdrop "Backdrop" rgba(0, 0, 0, 0.6)
@var color scrollbar-thumb " Scrollbar Thumb" #292c41
@var color border "Border" #131421
@var color background "Background" #191b28
@var color alternative "Alternative" #1e2030
@var color highlight "Highlight" #222436
@var color icon "Icon" #2f334d
@var color text "Text" #828bb8
@var color text-light "Text Light" #ffffff
@preprocessor stylus
==/UserStyle== */
@-moz-document domain("twitter.com")
:root
--blue blue
--blue-trans blue-trans
--red red
--red-trans red-trans
--green green
--green-trans green-trans
--purple purple
--backdrop backdrop
--scrollbar-thumb scrollbar-thumb
--border border
--bg background
--alt alternative
--highlight highlight
--icon icon
--fg text
--fg-light text-light
bg(c)
background-color c
fg(c)
color c
bc(c)
border-color c
shadow()
box-shadow 0 4px 6px -1px rgba(0, 0, 0, 0.58), 0 2px 4px -1px rgba(0, 0, 0, 0.29)
$scrollbar-thumb = var(--scrollbar-thumb)
$blue = var(--blue)
$blue-trans = var(--blue-trans)
$red = var(--red)
$red-trans = var(--red-trans)
$green = var(--green)
$green-trans = var(--green-trans)
$purple = var(--purple)
$backdrop = var(--backdrop)
$border = var(--border)
$bg = var(--bg)
$alt = var(--alt)
$highlight = var(--highlight)
$icon = var(--icon)
$fg = var(--fg)
$fg-light = var(--fg-light)
$text-light = var(--text-light)
::-webkit-scrollbar
background-color $alt !important
::-webkit-scrollbar-thumb
background-color $scrollbar-thumb !important
body,
.r-1srlen8 // Loading,
.r-1awozwy.r-aqfbo4.r-yfoy6g.r-18u37iz.r-1mwlp6a.r-1a8r3js.r-15ysp7h.r-1xcajam.r-ipm5af.r-1hycxz.r-136ojw6 // Searchbar surrounding area
background-color $bg !important
input::placeholder
color $fg !important
// Default border
.r-1ila09b,
.r-18bvks7 { bc: $border }
// Default foreground color
.r-111h2gw { fg: $fg }
// Tweets/Sidebar section
.r-yfoy6g, .r-1uaug3w
bg $alt
bc $border
// Timeline
div[aria-label*="Timeline"]
// Menu
div[role="menu"]
bg $bg
shadow()
// Menu item hover
*[role="menuitem"]:hover { bg: $alt }
// Embeded media
.r-1uaug3w.r-1pi2tsx.r-1udh08x.r-13qz1uu,
.r-18bvks7 { bg: $bg }
// Embeded media hover
div.r-1cuuowz { bg: $highlight }
// Backdrop
.r-11u3ssh { bg: $backdrop }
// Checkbox
.r-1awozwy.r-yfoy6g.r-1778zho.r-z2wwpe.r-1phboty.r-d045u9.r-76blku.r-1777fci.r-64lmo0
bc $icon
// Word count indicator
div[role="progressbar"] circle[stroke="#38444D"]
stroke $icon
// Icon section
.r-1kfrmmb { bc: $border }
// Tweet author
.r-1t982j2
margin-bottom 10px
// Tweet click
.r-1nvv5a4 { bg: $highlight }
// Tweet separator
.r-1adg3ll .r-aaos50 { bg: $alt }
// Separator after new tweet
.r-vz2u4x
background-color $alt !important
// List separator
.r-kuekak { bg: $border }
// Selected Searchbar
.r-1awozwy.r-aqfbo4.r-yfoy6g.r-18u37iz.r-1mwlp6a.r-1a8r3js.r-15ysp7h.r-1xcajam.r-ipm5af.r-1hycxz.r-136ojw6
bg $highlight
// Searchbar
.r-aaos50
bg $highlight
bc $border
// Popup eg. Search results / Menu
.r-xnswec
bg $highlight
border 1px solid $border
shadow()
// Separator between word counter and + button
.r-hpzmsf { bg: $icon }
// Purple Icons
path[fill="#794BC4"]
fill $purple
// Heart
.r-daml9f { fg: $red }
.r-wcu338 { bg: $red-trans }
// Retweet
.r-nw8l94 { fg: $green }
.r-1up5ays { bg: $green-trans }
// Comment/Download
.r-13gxpu9 { fg: $blue }
.r-zv2cs0 { bg: $blue-trans }
// Message
.r-hjejmn
bg $bg
// Embed
.r-wrkyx5 { bc: $border }
// Analytics
body[data-scribe-origin="Mobile"]
background-color $alt !important
.QuoteTweet { bc: $border }
.QuoteTweet [data-item-type=tweet] { bg: $border }
.ProfileTweet-screenname { fg: $fg }
.ProfileTweet-fullname { fg: $fg-light }
.ep-TweetPerformance.ep-Section
.ep-ViewAllEngagementsButton { bg: $alt }
.ep-MetricDescription { fg: $fg }
.ep-Metric .ep-MetricTopContainer { fg: $fg-light }
.ep-Signup .ep-SignupTextContainer
.ep-SignupText { fg: $fg-light }
.ep-SignupSubText { fg: $fg }
.ep-TweetPerformance.ep-Section .ep-DetailedEngagementsSection,
.ep-Campaign
border-top-color $border
// TODO: Clean this up
.QuoteTweet .tweet-content, .QuoteTweet-text a, .QuoteTweet-text a:hover, .QuoteTweet-text a:focus, .QuoteTweet-text a:active, .QuoteTweet-text .pretty-link b, .QuoteTweet-text .pretty-link s, .QuoteTweet-text .pretty-link:hover b, .QuoteTweet-text .pretty-link:hover s, .QuoteTweet-text .pretty-link:focus b, .QuoteTweet-text .pretty-link:focus s, .QuoteTweet-text .pretty-link:active b, .QuoteTweet-text .pretty-link:active s
fg $fg-light