-
Notifications
You must be signed in to change notification settings - Fork 0
/
post.css
151 lines (125 loc) · 2.89 KB
/
post.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
.mastodon-embed {
background-color: #33313e;
border-radius: 0.25rem;
color: white;
font-family: sans-serif;
padding: 0.5rem;
}
.mastodon-embed > * + * {
margin-top: 1rem;
}
.mastodon-embed__header {
align-items: center;
display: flex;
gap: 0.5rem;
}
.mastodon-embed__header img {
border-radius: 0.25rem;
height: 2.875rem;
width: 2.875rem;
}
.mastodon-embed__profile-information > * {
line-height: 1.2;
}
.mastodon-embed :any-link {
text-decoration: none;
color: currentColor;
}
.mastodon-embed :any-link:focus-visible,
.mastodon-embed :any-link:hover {
text-decoration: underline;
}
.mastodon-embed__display-name {
font-weight: bold;
}
.mastodon-embed__account-name {
color: rgb(174, 160, 201);
font-size: smaller;
}
.mastodon-embed__content :any-link {
color: #6bc1ff;
}
.mastodon-embed__content .ellipsis::after {
content: '…';
}
.mastodon-embed__content .invisible {
display: none;
}
.mastodon-embed__footer {
color: rgb(174, 160, 201);
display: inline-flex;
font-size: smaller;
gap: 0.5rem;
}
.mastodon-embed__has-icon {
align-items: center;
display: inline-flex;
gap: 0.25rem;
min-width: 0.66rem;
}
.mastodon-embed__has-icon.-is-icon-public {
--icon-name: url('/img/mastodon-embed-plugin/mep-globe.svg');
}
.mastodon-embed__has-icon.-is-icon-unlisted {
--icon-name: url('/img/mastodon-embed-plugin/mep-unlock.svg');
}
.mastodon-embed__has-icon.-is-icon-replies {
--icon-name: url('/img/mastodon-embed-plugin/mep-reply.svg');
}
.mastodon-embed__has-icon.-is-icon-reblogs {
--icon-name: url('/img/mastodon-embed-plugin/mep-repeat.svg');
}
.mastodon-embed__has-icon.-is-icon-favs {
--icon-name: url('/img/mastodon-embed-plugin/mep-star.svg');
}
.mastodon-embed__has-icon::before {
background-image: var(--icon-name);
background-position: center;
background-repeat: no-repeat;
content: '';
display: inline-block;
height: 0.66rem;
width: 0.66rem;
}
.mastodon-embed__card {
align-items: center;
display: flex;
gap: 0.5rem;
position: relative;
}
.mastodon-embed__card-image {
aspect-ratio: 1;
background-color: #5a5f6f;
background-image: url('/img/mastodon-embed-plugin/mep-file-lines.svg');
background-position: center;
background-repeat: no-repeat;
background-size: 25%;
border-bottom-left-radius: 0.25rem;
border-top-left-radius: 0.25rem;
overflow: hidden;
flex: 1 0 6.25rem;
}
.mastodon-embed__card-image img {
aspect-ratio: inherit;
display: block;
object-fit: cover;
}
.mastodon-embed__card.-no-image .mastodon-embed__card-image {
aspect-ratio: 1;
}
.mastodon-embed__card-title {
font-weight: bold;
}
.mastodon-embed__card-link::after {
content: '';
inset: 0;
position: absolute;
}
.mastodon-embed__card-description {
display: var(--pme-description-display, none);
font-size: smaller;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: var(--pme-description-width);
}