-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcolors.scss
293 lines (239 loc) · 4.14 KB
/
colors.scss
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
/**
* main body css filters for sitewide coloring
* default: 25% grayscale, to mute the rather bright pastel colors
*/
body {
filter: grayscale(25%);
/**
* calm mode: desaturate the site and add a touch of sepia and contrast
*/
&.calmMode {
filter: grayscale(100%) sepia(10%) contrast(110%) !important;
}
/**
* dark mode: invert almost all the way and slightly drop contrast
* https://gist.github.com/aaronice/5c083b9a8a3cbee29c7cd6bf3c708233
*/
&.darkMode {
background-color: #222 !important;
filter: contrast(90%) invert(90%) hue-rotate(180deg) !important;
img,
video,
canvas,
svg,
embed[type="application/x-shockwave-flash"],
object[type="application/x-shockwave-flash"],
*[style*="url("] {
filter: invert(110%) hue-rotate(-180deg) !important;
}
}
}
/**
* api responses and general notice text
* essential colors in the design language
* also includes torrentLeech, wiki, etc.
*/
.black,
.normal,
.tl_notice,
.tl_snatched {
color: #222;
}
.blue,
.create,
.goodish,
.line_moved {
color: $skeletonDefault;
}
.good,
.green,
.hnr-no,
.important_text_alt,
.info,
.line_new,
.new,
.read,
.success,
.tl_approved,
.tl_free,
.tl_seeding {
color: green;
}
.badish,
.important_text_semi,
.orange,
.tl_leeching,
.update,
.warning {
color: orange;
}
.bad,
.delete,
.error,
.failure,
.hnr-yes,
.important_text,
.invalid,
.line_deleted,
.red,
.tl_reported {
color: red;
}
.purple,
.royal,
.staff,
.violet {
color: purple;
}
.dead,
.faded {
opacity: 0.75;
}
.infoBorder {
border: 1px solid green !important;
}
.errorBorder {
border: 1px solid red !important;
}
/**
* ratio redness intensity
*/
@mixin ratioRedness($amount) {
color: scale-color(red, $lightness: $amount);
}
.r00 {
color: red;
}
.r01 {
@include ratioRedness(10%);
}
.r02 {
@include ratioRedness(20%);
}
.r03 {
@include ratioRedness(30%);
}
.r04 {
@include ratioRedness(40%);
}
.r05 {
@include ratioRedness(50%);
}
.r06 {
@include ratioRedness(60%);
}
.r07 {
@include ratioRedness(70%);
}
.r08 {
@include ratioRedness(80%);
}
.r09 {
@include ratioRedness(90%);
}
/* the shadow under floating elements */
$shadow: 2px 2px 10px -2px slategray;
/**
* rgb color intensity border
*
* for semi-transparent elements,
* e.g., unread forum post borders
*/
@mixin transparent-border($c, $a) {
border: 2px solid change-color($color: $c, $alpha: $a);
}
/*
* noty button fix
*/
.noty_buttons {
button {
background: none;
border: none;
box-shadow: none;
margin: 0.5rem;
padding: 0;
}
}
/**
* database key warning
*/
#dbcrypt {
position: fixed;
top: 10px;
right: 10px;
&:after {
content: "!";
display: block;
width: 20px;
height: 20px;
text-align: center;
line-height: 20px;
font-size: 20px;
font-weight: 600;
color: #222;
background: red;
border-radius: 100px;
}
}
/**
* message reactions for conversations
*/
.conversationButton {
background: whitesmoke;
padding: 0.5rem 1rem;
border-radius: 1rem;
text-decoration: none;
cursor: pointer;
transition: ease-in-out 0.1s;
&:hover {
background: lightgray;
color: #222;
transition: ease-in-out 0.1s;
}
&.hasReacted {
background: rgba(orange, 0.5);
color: #222;
&:hover {
background: rgba(orange, 0.75);
transition: ease-in-out 0.1s;
}
}
&.isReported {
background: rgba(red, 0.5);
color: #222;
&:hover {
background: rgba(red, 0.75);
transition: ease-in-out 0.1s;
}
}
}
/*************************************
* Basic lightbox styles. Notice the
* default 'display' is 'none'.
*/
.lightbox {
/** Hide the lightbox */
display: none;
/** Apply basic lightbox styling */
position: fixed;
z-index: 666;
width: 100%;
height: 100%;
text-align: center;
top: 0;
left: 0;
background: black;
background: rgba(0, 0, 0, 0.75);
}
.lightbox img {
/** Pad the lightbox image */
max-width: 90%;
max-height: 80%;
margin-top: 2%;
}
.lightbox:target {
/** Show lightbox when it is target */
display: block;
/** Remove default browser outline style */
outline: none;
}