-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpride-flag-button.css
58 lines (50 loc) · 2.25 KB
/
pride-flag-button.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
/*
* @name Pride Flag Button for Mastodon
* @version 1.1
* @description A small piece of code that changes the publish button to show pride in the LGBTQIAPN+ community
* @author Dudu <[email protected]>, MagicLike <[email protected]> (https://magiclike.net)
* @homepageURL https://github.com/vndmtrx/mastodon-pride-button
* @license MIT
* adapted for Mastodon 4.3 by luka prince lucija <[email protected]> (https://prin.lu) @[email protected]
**/
.ui .ui__header .ui__header__links .button-secondary[href="/publish"],
.compose-form__actions .compose-form__submit .button {
background-color: #0000;
background-image:
radial-gradient(circle at -1% 50%, #0000 5.5%, #6d2380 6% 8%, #0000 8.5%), /* Purple */
conic-gradient(at 20% 50%, #0000 225deg, #fdd817 0 315deg, #0000 0), /* Gold */
conic-gradient(at 27% 50%, #0000 225deg, #ffffff 0 315deg, #0000 0), /* White */
conic-gradient(at 34% 50%, #0000 225deg, #f4aec8 0 315deg, #0000 0), /* Light Pink */
conic-gradient(at 41% 50%, #0000 225deg, #7bcce5 0 315deg, #0000 0), /* Light Sky Blue */
conic-gradient(at 48% 50%, #0000 225deg, #945516 0 315deg, #0000 0), /* Sandy Brown */
conic-gradient(at 55% 50%, #0000 225deg, #000000 0 315deg, #0000 0), /* Black */
linear-gradient(
#e22016 0 calc((100% / 6)), /* Red */
#f28917 0 calc((100% / 6) * 2), /* Orange */
#efe524 0 calc((100% / 6) * 3), /* Yellow */
#78b82a 0 calc((100% / 6) * 4), /* Green */
#2c58a4 0 calc((100% / 6) * 5), /* Blue */
#6d2380 0 calc((100% / 6) * 6) /* Indigo */
);
text-shadow:
#000a 1px 0px 1px,
#000a -1px 0px 1px,
#000a 0px 1px 1px,
#000a 0px -1px 1px,
#000a 1px 1px 1px,
#000a -1px -1px 1px,
#000a 1px -1px 1px,
#000a -1px 1px 1px;
transition: filter 100ms;
}
.ui .ui__header .ui__header__links .button-secondary[href="/publish"] {
color:white;
}
.ui .ui__header .ui__header__links .button-secondary[href="/publish"]:hover,
.compose-form__actions .compose-form__submit .button:hover {
filter: brightness(1.1);
}
.ui .ui__header .ui__header__links .button-secondary[href="/publish"]:disabled,
.compose-form__actions .compose-form__submit .button:disabled {
filter: grayscale(0.9);
}