forked from sindresorhus/caprine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
browser.css
350 lines (314 loc) · 6.97 KB
/
browser.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
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
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
html {
overflow: hidden;
}
/* Add OS-specific fonts */
body {
font-family:
-apple-system,
BlinkMacSystemFont,
'Segoe UI',
Roboto,
Oxygen-Sans,
Ubuntu,
Cantarell,
'Helvetica Neue',
sans-serif,
'Apple Color Emoji',
'Segoe UI Emoji',
'Segoe UI Symbol' !important;
text-rendering: optimizeLegibility !important;
font-feature-settings: 'liga', 'clig', 'kern';
}
/* Bind the toolbar as the window's draggable region */
._36ic._5l-3,
._5742,
._673w {
-webkit-app-region: drag;
}
/* Fix broken scroll arrows on mesage input on Windows */
._kmc {
overflow-y: hidden !important;
}
/* The message buttons are always in one row */
._4rv4 > div {
display: flex;
}
/* Exclude `New Messages`, `Voice Call`, `Video Call` & `Conversation Info` buttons from the draggable region */
._36ic._5l-3 ._30yy,
._5742 ._30yy,
._673w ._30yy {
-webkit-app-region: no-drag;
-webkit-user-drag: none;
}
/* Window wrapper */
._4sp8 {
min-width: 0 !important;
}
/* The width of the popup should not exceed the width of the window */
._59s7 {
max-width: 100% !important;
}
/* Hide sidebar (optionally) */
html.sidebar-hidden ._1enh {
display: none;
}
/* Hide footer at login view */
._210n {
display: none;
}
/* First time user popup */
._s15 {
display: none;
}
/* "Keep the conversation going" bar */
._s15 {
display: none !important;
}
/* Right column */
._1q5- {
border-left: 1px solid rgba(0, 0, 0, 0.1) !important;
}
/* Hide settings menu */
.uiContextualLayerBelowLeft ._5v-0._53il {
display: none !important;
}
/* Hide settings icon */
._30yy._2fug._p {
display: none !important;
}
/* Hide title */
._1tqi {
display: none;
}
/* Moves text to the left when window width < 473px */
._673w ._17w2 {
display: block !important;
}
/* Narrower titlebar */
._36ic,
._5742,
._673w {
height: 40px !important;
padding: 4px !important;
}
/* Vertically center chat options */
._fl2 {
padding: 0 !important;
top: 4px !important;
right: 6px !important;
}
/* Adjust `To` field for narrower titlebar */
._2y8y {
min-height: 40px !important;
padding: 8px !important;
}
/* `New messages` popup */
._2xhi._5vn4 ._2xhj {
display: none;
}
/* Message box: fix video width */
._3zvs._5z-5 {
width: 100% !important;
}
._2poz._52mr._ui9._2n8h._2n8i._5fk1 {
width: 100% !important;
}
._ccq._4tsk._3o67._52mr._4-od {
width: 100% !important;
}
._1c_u {
width: 100% !important;
}
._53j5 {
width: 100% !important;
}
._ox1._21y0 {
width: 100% !important;
}
/* Message box: hide bottom white line */
.chatAttachmentShelf:empty {
display: none !important;
}
/* Preferences dialog: hide unnecessary options */
._374b:nth-child(5) {
display: none !important;
}
/* macOS: Move the contextual back button so it's not obstructed by the native traffic lights */
.os-darwin ._30yy._2oc9 {
margin-left: 65px !important;
}
@media all and (max-width: 700px) {
/* Make right column flexible in compact mode */
._1q5- {
position: absolute !important;
right: 0 !important;
left: 74px !important;
height: 100% !important;
}
/* Fix for left space in compact mode */
html.sidebar-hidden ._1q5- {
left: 0 !important;
}
/* `New Conversation` icon */
._30yy[href='/new'] {
display: none !important;
}
/* Fix the `New Conversation` button overlapping the traffic light controls on macOS */
html.os-darwin ._36ic._5l-3 {
margin-top: 30px;
}
}
/* Don't show outline on clickable elements except in the delete/mute modal so that we know what we are selecting */
a,
*[role='button'] {
outline: none !important;
}
/* Remove white background in Preferences */
._1u5d {
background-color: transparent !important;
}
/* Fix incorrect border radius in Preferences */
._4eby {
border-radius: 2px !important;
}
/* Contact list: latest message, under contact name */
._1ht1 ._1htf {
color: rgba(0, 0, 0, 0.7);
}
/* Allow scrolling of "Edit Nicknames" dialog */
._4h9n ._4h9o {
max-height: 100% !important;
height: 280px;
}
/* Tomorrow light theme for code blocks */
._wu0 {
--code-block-base: #1d1f21;
--code-block-background: #fff;
--code-block-border: #b9b9b9;
--code-block-primary: #de935f;
--code-block-meta: #969896;
--code-block-tag: #a3685a;
--code-block-quoted: #b5bd68;
--code-block-variable: #c66;
--code-block-special: #8abeb7;
--code-block-attr-value: #139543;
--code-block-keyword: #b294bb;
--code-block-function: #81a2be;
background-color: var(--code-block-background) !important;
border: 1px solid var(--code-block-border) !important;
color: var(--code-block-base) !important;
}
._wu0 .token.punctuation {
color: var(--code-block-base) !important;
}
._wu0 .token.property {
color: var(--code-block-base) !important;
}
._wu0 .token.operator {
color: var(--code-block-base) !important;
}
._wu0 .token.boolean {
color: var(--code-block-primary) !important;
}
._wu0 .token.number {
color: var(--code-block-primary) !important;
}
._wu0 .token.constant {
color: var(--code-block-primary) !important;
}
._wu0 .token.selector {
color: var(--code-block-primary) !important;
}
._wu0 .token.bold {
color: var(--code-block-primary) !important;
font-weight: bold;
}
._wu0 .token.comment {
color: var(--code-block-meta) !important;
}
._wu0 .token.prolog {
color: var(--code-block-meta) !important;
}
._wu0 .token.doctype {
color: var(--code-block-meta) !important;
}
._wu0 .token.cdata {
color: var(--code-block-meta) !important;
}
._wu0 .token.tag {
color: var(--code-block-tag) !important;
}
._wu0 .token.symbol {
color: var(--code-block-quoted) !important;
}
._wu0 .token.string {
color: var(--code-block-quoted) !important;
}
._wu0 .token.char {
color: var(--code-block-quoted) !important;
}
._wu0 .token.inserted {
color: var(--code-block-quoted) !important;
}
._wu0 .token.attr-name {
color: var(--code-block-variable) !important;
}
._wu0 .token.url {
color: var(--code-block-variable) !important;
}
._wu0 .token.entity {
color: var(--code-block-variable) !important;
}
._wu0 .token.variable {
color: var(--code-block-variable) !important;
}
._wu0 .token.deleted {
color: var(--code-block-variable) !important;
}
._wu0 .token.builtin {
color: var(--code-block-special) !important;
}
._wu0 .token.hexcode {
color: var(--code-block-special) !important;
}
._wu0 .token.regex {
color: var(--code-block-special) !important;
}
._wu0 .token.attr-value {
color: var(--code-block-attr-value) !important;
}
._wu0 .token.keyword {
color: var(--code-block-keyword) !important;
}
._wu0 .token.important {
color: var(--code-block-keyword) !important;
}
._wu0 .token.italic {
color: var(--code-block-keyword) !important;
font-style: italic;
}
._wu0 .token.function {
color: var(--code-block-function) !important;
}
/* Hide hidden accessibility elements so they're not included in copy-pasting of chat logs */
.accessible_elem {
display: none !important;
}
[role='navigation'] a {
cursor: default !important;
}
/* Fix story color */
._1sk6 {
background: inherit !important;
}
._1suk {
color: inherit !important;
}
/* Hide Messenger icon when story is open */
._7yz {
background: none !important;
}
/* Title centered */
._6f6l {
display: block !important;
}