-
Notifications
You must be signed in to change notification settings - Fork 4
/
proplate.css
104 lines (89 loc) · 2.21 KB
/
proplate.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
.protoots-proplate {
padding-left: 0.25rem;
padding-right: 0.25rem;
border-radius: 0.25rem;
margin-left: 0.5rem;
display: inline-flex;
animation: proplate-fadein 0.15s linear;
font-weight: 500;
/*
For users of the advanced view, the proplate shouldn't take all available space.
Most of the times this was working fine, by setting it explicitly it definitely works
across all places of Mastodon.
*/
overflow: hidden;
text-overflow: ellipsis;
}
/* dark theme */
.theme-default .protoots-proplate {
/* header background */
background-color: #313543;
/* pulled from nowhere, basically just as low contrast as we can go while keeping AA rating */
color: #aaa;
}
/* dark theme on detailed status */
.theme-default .detailed-status .protoots-proplate {
/* scrollable background */
background-color: #282c37;
/* pulled from nowhere, basically just as low contrast as we can go while keeping AA rating */
color: #aaa;
}
/* light theme */
.theme-mastodon-light .protoots-proplate {
/* body background */
background-color: #eff3f5;
/* search bar foreground */
color: #282c37;
}
/* high contrast */
.theme-contrast .protoots-proplate {
background-color: black;
color: #fff;
}
.theme-macaron .protoots-proplate {
background-color: #c8c4dd;
}
.theme-fairy-floss .protoots-proplate {
background-color: #474059;
}
.flavour-glitch.skin-default .protoots-proplate {
background-color: #313543;
}
/* rainbow pronouns for jasmin and i cause why not */
.proplate-pog:hover {
color: inherit;
/*
The 12-bit rainbow palette by https://fosstodon.org/@kate, adjusted to rgba value with funny opacity.
https://iamkate.com/data/12-bit-rainbow
*/
background: linear-gradient(
45deg,
rgba(136, 17, 119, 0.69) 0%,
rgba(170, 51, 85, 0.69) 10%,
rgba(204, 102, 102, 0.69) 20%,
rgba(238, 153, 68, 0.69) 30%,
rgba(238, 221, 0, 0.69) 40%,
rgba(153, 221, 85, 0.69) 50%,
rgba(68, 221, 136, 0.69) 60%,
rgba(34, 204, 187, 0.69) 70%,
rgba(0, 187, 204, 0.69) 80%,
rgba(0, 153, 204, 0.69) 90%,
rgba(51, 102, 187, 0.69) 100%
);
}
@keyframes proplate-fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@media (prefers-reduced-motion) {
.protoots-proplate {
animation: none;
}
}
bdi.has-proplate {
display: flex;
}