-
Notifications
You must be signed in to change notification settings - Fork 0
370 lines (326 loc) · 11 KB
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
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
/* Mastodon CSS Tweaks by @[email protected]
Collection of CSS tweaks initally made for my personal instance nileane.fr
version: 1.6.4
Learn more: https://nileane.fr/@nileane/110615776486729850
*/
/* Colors
------ */
:root {
--color-accent: #F0926A;
--color-accent-faded: #ecb39b;
--color-accent-bg: rgb(240, 146, 106, .1);
--color-accent-focus: rgba(240, 146, 105, 0.7);
--color-accent-fg: rgba(0, 0, 0, .7); /* Text color on buttons. - Use a dark value for light accent colors, use a light value for dark accent colors. */
--color-neutral: #9baec8;
--color-verified: #79bd9a;
}
/* Hiding a bunch of stuff.
------------------------ */
.about__header, /* Hide header section on about page */
.about__meta, /* Hide meta section on about page */
div#mastodon > div > div > div:nth-child(2) > div:nth-child(3) > div > div > div:nth-child(3) > hr,
.navigation-panel__legal > hr,
.navigation-panel > .column-link:only-of-type, /* Hide Explore tab for logged-out users */
.navigation-panel__sign-in-banner + .navigation-panel__legal + .flex-spacer + .getting-started__trends, /* Hide Trending section for logged-out users */
.about__footer, /* Hide meta footer */
.server-banner__introduction, /* Hide generic mastodon server introduction in sidebar */
.search-banner ~ .search, /* Hide search field for logged out users */
.ui__header__links .button.button-tertiary,
a.column-link[href="/public"], /* Hide Federated timeline button in nav */
.getting-started__trends h4, /* Hide Trending header in sidebar */
.account__header__bio .account__header__fields > dl:first-child, /* Hide "Joined" field on profiles */
.sign-in-banner button.button {
display: none;
}
/* Hide vertical navbar for logged out users
----------------------------------------- */
@media screen and (max-width:889px) {
.columns-area__panels__main:not(:has(+ .columns-area__panels__pane .columns-area__panels__pane__inner .navigation-panel .column-link[href="/notifications"])) {
width: 100%;
margin-right: -55px;
}
.columns-area__panels__pane__inner:not(:has(.navigation-panel .column-link[href="/notifications"])) {
display: none;
}
}
body { /* Use SF Rounded on Apple devices, fallback to usual Mastodon font on other devices */
font-family: ui-rounded, "mastodon-font-sans-serif", sans-serif;
}
#logo-symbol-wordmark > path:nth-child(1) { /* grayscale Mastodon logo */
fill: var(--color-neutral);
opacity: .4;
}
.loading-bar { /* Loading Bar */
background-color: var(--color-accent);
}
.react-toggle--checked .react-toggle-track { /* thumb switches */
background-color: var(--color-neutral);
}
.react-toggle--checked .react-toggle-thumb {
border-color: var(--color-neutral);
}
.poll__chart { /* poll charts */
background: var(--color-accent-faded);
}
.poll__chart.leading {
background: var(--color-accent);
}
/* Column header tweaks : backdrop blur
------------------------------------ */
.tabs-bar__wrapper {
background-color: transparent;
border-radius: 4px 4px 0 0;
}
@media screen and (min-width:1175px) {
.tabs-bar__wrapper {
box-shadow:
inset 0 10px #191B21,
0 -10px #191B21;
}
}
.column-header,
.column-back-button {
background-color: rgba(49, 53, 68, 0.75);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
}
.column-header__button,
.column-header__back-button {
background-color: transparent;
}
.column-header.active .column-header__icon {
color: #FFF;
}
/* Profile tweaks
-------------- */
.account__header__bio .account__header__fields dl:nth-child(2) { /* Add a corner radius to the second profile field because we're hiding the Joined field */
border-top-left-radius: 4px;
border-top-right-radius: 4px;
margin-top: 0;
}
.account__header__bio .account__header__fields .verified + .verified { /* Fix double border between 2 successive verified fields */
margin-top: 0;
border-top-width: 0;
}
.account__header__bio .account__header__fields .verified a, .account__header__bio .account__header__fields .verified dd { /* Verified field tweak: vivid green text */
color: var(--color-verified);
}
.account__header__bio .account__header__fields .verified dt { /* Verified field tweak: restore default field title color */
color: #606984;
}
.account__header__bio .account__header__fields .verified { /* Verified field tweak: restore default background and border */
border-top: 0;
border-right: 0;
border-left: 0;
border-bottom: 1px solid #313543;
background: none;
}
.account__header__extra .account__header__fields .verified dd span:first-child { /* Verified field tweak: adding a green background circle to the checkmark icon */
display: inline-block;
background-color: var(--color-verified);
border-radius: 50px;
width: 1.2em;
height: 1.2em;
line-height: 1.2;
text-align: center;
margin-right: 2px;
}
.account__header__extra .account__header__fields .verified dd span:first-child i { /* white checkmark */
color: #1f232b;
font-size: 85%;
transform: scale(.9);
}
/* New toots glow
-------------- */
.column-header__wrapper.active:before {
background: radial-gradient(ellipse, var(--color-accent), rgba(99, 100, 255, 0) 60%);
opacity: 40%;
}
.column-header__wrapper.active {
box-shadow: 0 1px 0 #393f4f;
}
/* Trending hashtags
----------------- */
.trends__item__sparkline path:last-child {
stroke: var(--color-accent) !important;
}
.trends__item__sparkline path:first-child {
fill: var(--color-accent) !important;
opacity: 20%;
}
/* Buttons and links
----------------- */
.app-body .button,
.button.logo-button,
.rules-list li:before,
.icon-with-badge__badge {
background-color: var(--color-accent);
color: var(--color-accent-fg);
}
.button.button-tertiary,
.account__header__fields a,
.account__header__bio .account__header__fields a,
.reply-indicator__content a.unhandled-link,
.status__content a.unhandled-link,
.column-back-button,
.about__section__title,
.prose a,
.column-link--transparent.active,
.column-header > .column-header__back-button,
.column-header__back-button,
.interaction-modal__icon,
.status__content a.mention,
.status__content__read-more-button {
color: var(--color-accent);
border-color: var(--color-accent);
}
.status__action-bar__dropdown .icon-button.active,
.account__relationship .icon-button.active,
.account__header__tabs__buttons .icon-button.active {
color: var(--color-accent);
}
.column-link--transparent.active {
font-weight: bold;
}
.copypaste input {
border-color: var(--color-accent);
}
.app-body .button:not(.button-secondary):active,
.app-body .button:not(.button-secondary):focus,
.app-body .button:not(.button-secondary):hover,
.button.button-tertiary:active,
.button.button-tertiary:focus,
.button.button-tertiary:hover,
.button.logo-button:active,
.button.logo-button:focus,
.button.logo-button:hover {
background-color: var(--color-accent-focus);
}
.dropdown-menu__item a:active,
.dropdown-menu__item a:focus,
.dropdown-menu__item a:hover,
.dropdown-menu__item button:active,
.dropdown-menu__item button:focus,
.dropdown-menu__item button:hover {
background: var(--color-accent);
color: var(--color-accent-fg);
outline: 0;
}
.privacy-dropdown.active .privacy-dropdown__value.active,
.privacy-dropdown__option.active,
.privacy-dropdown__option:hover {
background-color: var(--color-accent);
color: var(--color-accent-fg);
}
.privacy-dropdown__option.active:hover {
background-color: var(--color-accent-focus);
}
.privacy-dropdown__option.active .privacy-dropdown__option__content,
.privacy-dropdown__option.active .privacy-dropdown__option__content strong,
.privacy-dropdown__option:hover .privacy-dropdown__option__content,
.privacy-dropdown__option:hover .privacy-dropdown__option__content strong,
.privacy-dropdown.active .privacy-dropdown__value.active .icon-button,
.privacy-dropdown .icon-button.inverted.active {
color: var(--color-accent-fg);
}
.button.button-tertiary.button--confirmation,
.button.button-tertiary.button--destructive {
background-color: transparent;
}
.button.button-tertiary.button--confirmation:active,
.button.button-tertiary.button--confirmation:focus,
.button.button-tertiary.button--confirmation:hover {
background-color: #79bd9a;
}
.button.button-tertiary.button--destructive:active,
.button.button-tertiary.button--destructive:focus,
.button.button-tertiary.button--destructive:hover {
background-color: #df405a;
}
.status__content a.hashtag { /* using a faded color variant for hashtags links */
color: var(--color-accent-faded);
}
.sign-in-banner .button {
padding: 7px 18px;
}
.app-body .sign-in-banner .button,
.app-body .ui__header__links .button,
.app-body .button.button-secondary {
color: var(--color-neutral);
background: transparent;
border: 0 none;
box-shadow: inset 0 0 0 1px rgba(155, 174, 200, .4);
}
.app-body .sign-in-banner .button:hover,
.app-body .ui__header__links .button:hover,
.app-body .button.button-secondary:hover {
color: #222;
background: var(--color-neutral);
border: 0 none;
box-shadow: inset 0 0 0 1px var(--color-neutral);
}
/* Notifications
------------- */
.notification.unread::before, .status__wrapper.unread::before {
border-left: 4px solid var(--color-accent);
}
/* Give DMs in the timeline a specific look
---------------------------------------- */
.status-direct .status__content,
.detailed-status-direct .status__content {
padding: 0.6em 1em .7em;
background: var(--color-accent-bg);
border-radius: 0 15px 15px 15px;
display: inline-block;
}
.status.status-direct .status__relative-time,
.detailed-status-direct .fa.fa-at {
color: var(--color-accent);
}
.status-direct.muted .status__content {
background: rgba(155, 174, 200, 0.1);
}
/* Custom About/Home page for nileane.fr
------------------------------------- */
#mastodon > div > div > div.columns-area__panels > div.columns-area__panels__main > div.columns-area.columns-area--mobile > div > div > div.about__section.active:nth-of-type(3) > div.about__section__title {
display: none;
}
.about__section__title {
color: #dfdfdf !important;
}
.about__section__body {
border: 0 !important;
padding-bottom: 3em;
}
#mastodon > div > div > div.columns-area__panels > div.columns-area__panels__main > div.columns-area.columns-area--mobile > div > div > div.about__section.active:not(:nth-of-type(3)) > div.about__section__body {
border: 0 !important;
background-color: #313543;
border-radius: 0 0 4px 4px;
}
.about__section__body .prose img {
width: 40px;
border-radius: 5px;
float: left;
margin: 2px 12px 0 7px;
}
.about__section__body .prose hr {
margin-top: 2em;
margin-bottom: 2em;
border-width: 3px;
}
.about__section__body .prose a {
color: var(--color-neutral);
text-decoration: none;
}
.about__section__body .prose a:hover {
color: var(--color-neutral);
text-decoration: none;
}
.about__section__body .prose small {
margin-left: -2em;
display: block;
color: #606984;
font-weight: bold;
font-size: 80%;
float: left;
}