Files: aa605ac3145fdaf8dd669ec3ef85495ee49740a4 / styles / dark / message.mcss
6011 bytesRaw
1 | Message { |
2 | display: flex |
3 | flex-direction: column |
4 | background: #383736 |
5 | position: relative |
6 | font-size: 120% |
7 | line-height: 1.4 |
8 | flex-shrink: 0 |
9 | |
10 | (highlight) { |
11 | background-color: rgb(255, 255, 86); |
12 | color: #674e00; |
13 | border-radius: 3px |
14 | padding: 0 2px |
15 | } |
16 | |
17 | :focus { |
18 | z-index: 1 |
19 | } |
20 | |
21 | -following { |
22 | header { |
23 | div.main { |
24 | div.main { |
25 | div.name { |
26 | $following |
27 | } |
28 | } |
29 | } |
30 | } |
31 | } |
32 | |
33 | -data { |
34 | header { |
35 | div.main { |
36 | font-size: 80% |
37 | a.avatar { |
38 | img { |
39 | width: 25px |
40 | } |
41 | } |
42 | } |
43 | } |
44 | (pre) { |
45 | overflow: auto |
46 | max-height: 200px |
47 | } |
48 | } |
49 | |
50 | -mini { |
51 | header { |
52 | font-size: 100% |
53 | |
54 | div.main { |
55 | a.avatar { |
56 | img { |
57 | width: 40px |
58 | height: 40px |
59 | } |
60 | } |
61 | } |
62 | } |
63 | } |
64 | |
65 | -missing { |
66 | header { |
67 | div.main { |
68 | div.main { |
69 | margin-left: 0 |
70 | } |
71 | } |
72 | } |
73 | section { |
74 | font-size: 90% |
75 | font-style: italic |
76 | color: #777 |
77 | } |
78 | } |
79 | |
80 | -compact { |
81 | section { |
82 | max-height: 300px |
83 | } |
84 | } |
85 | |
86 | -reply { |
87 | header { |
88 | font-size: 100% |
89 | div.meta { |
90 | a.channel { |
91 | display: none; |
92 | } |
93 | span.private { |
94 | (img) { |
95 | width: 40px |
96 | height: 40px |
97 | } |
98 | } |
99 | } |
100 | div.main { |
101 | a.avatar { |
102 | img { |
103 | width: 40px |
104 | height: 40px |
105 | } |
106 | } |
107 | } |
108 | } |
109 | } |
110 | |
111 | -new, -unread { |
112 | box-shadow: 0 0 1px #efef00; |
113 | z-index: 1; |
114 | } |
115 | |
116 | header { |
117 | font-size: 120% |
118 | margin: 20px 20px 0 |
119 | display: flex |
120 | |
121 | div.mini { |
122 | flex: 1 |
123 | } |
124 | |
125 | div.main { |
126 | display: flex |
127 | flex: 1 |
128 | |
129 | a.avatar { |
130 | img { |
131 | width: 50px |
132 | height: 50px |
133 | } |
134 | } |
135 | |
136 | div.main { |
137 | div.name { |
138 | a { |
139 | color: #c3c3c3 |
140 | font-weight: bold |
141 | |
142 | :hover { |
143 | color: #ddd |
144 | } |
145 | } |
146 | } |
147 | div.meta { |
148 | font-size: 75% |
149 | color: #8a8a8a; |
150 | (a) { |
151 | color: #b3b8e0 |
152 | :hover { |
153 | color: #dfdfe2 |
154 | } |
155 | } |
156 | } |
157 | margin-left: 10px |
158 | } |
159 | } |
160 | |
161 | div.meta { |
162 | display: flex; |
163 | flex-direction: column-reverse; |
164 | align-items: flex-end; |
165 | justify-content: flex-end; |
166 | |
167 | span.flag { |
168 | width: 12px |
169 | height: 12px |
170 | |
171 | background-repeat: no-repeat |
172 | background-position: center |
173 | display: inline-block |
174 | vertical-align: middle; |
175 | |
176 | -unread { |
177 | :after { |
178 | content: ' unread' |
179 | color: #757474 |
180 | } |
181 | } |
182 | |
183 | -new { |
184 | :after { |
185 | content: ' new' |
186 | color: #757474 |
187 | } |
188 | } |
189 | |
190 | -new, -unread { |
191 | width: auto |
192 | height: auto |
193 | color: #757474 |
194 | font-size: 75% |
195 | |
196 | :before { |
197 | color: #efef00 |
198 | content: '✸' |
199 | } |
200 | } |
201 | } |
202 | |
203 | em { |
204 | display: inline-block |
205 | padding: 4px |
206 | } |
207 | |
208 | a.channel { |
209 | font-size: 100%; |
210 | color: #b3b3b3 |
211 | |
212 | :hover { |
213 | color: #c1cdf0 |
214 | } |
215 | } |
216 | |
217 | a.likes { |
218 | font-size: 85%; |
219 | |
220 | ::before { |
221 | content: '❤ ' |
222 | color: #ff2f92 |
223 | } |
224 | :hover { |
225 | color: #ff2f92 |
226 | } |
227 | } |
228 | |
229 | (a.Timestamp) { |
230 | font-size: 75% |
231 | font-weight: normal |
232 | } |
233 | |
234 | span.private { |
235 | display: inline-block; |
236 | margin: -3px -3px 3px 4px; |
237 | position: relative; |
238 | |
239 | a { |
240 | display: inline-block |
241 | |
242 | :first-child { |
243 | img { |
244 | border-top-left-radius: 3px |
245 | border-bottom-left-radius: 3px |
246 | } |
247 | } |
248 | |
249 | :last-child { |
250 | img { |
251 | border-top-right-radius: 3px |
252 | border-bottom-right-radius: 3px |
253 | } |
254 | } |
255 | |
256 | img { |
257 | margin: 0 |
258 | vertical-align: bottom |
259 | border: none |
260 | } |
261 | } |
262 | |
263 | :after { |
264 | content: 'private'; |
265 | position: absolute; |
266 | background: rgba(0,0,0,0.75); |
267 | bottom: 0; |
268 | left: -1px; |
269 | font-size: 10px; |
270 | padding: 1px 4px; |
271 | border-top-right-radius: 3px; |
272 | color: #ccc; |
273 | pointer-events: none; |
274 | white-space: nowrap |
275 | } |
276 | } |
277 | } |
278 | } |
279 | |
280 | section { |
281 | margin: 0 |
282 | padding: 0 20px |
283 | max-height: 1500px |
284 | overflow: hidden |
285 | |
286 | -expanded { |
287 | max-height: none |
288 | } |
289 | |
290 | (img) { |
291 | max-width: 100% |
292 | } |
293 | } |
294 | |
295 | a.backlink { |
296 | display: block; |
297 | padding: 10px 20px |
298 | background: #2d2c2c |
299 | color: #757474; |
300 | margin-top: -1px; |
301 | font-size: 9pt; |
302 | |
303 | :hover { |
304 | text-decoration: none |
305 | color: #aaa |
306 | } |
307 | } |
308 | |
309 | footer { |
310 | margin: 5px 0 20px; |
311 | padding: 0 20px |
312 | |
313 | div.expander { |
314 | text-align: center; |
315 | background-color: #383736; |
316 | |
317 | -truncated { |
318 | padding-top: 50px; |
319 | margin-top: -50px; |
320 | -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,1) 50%, rgba(0,0,0,0)); |
321 | a { |
322 | :before { content: '▼ '; font-size: 80% } |
323 | } |
324 | } |
325 | } |
326 | |
327 | div.actions { |
328 | a.like { |
329 | :before { |
330 | content: "❤ " |
331 | } |
332 | :hover { |
333 | background: #ff2f92 |
334 | } |
335 | } |
336 | a.unlike { |
337 | :before { |
338 | content: "" |
339 | } |
340 | :hover { |
341 | background: #434141 |
342 | } |
343 | } |
344 | a { |
345 | font-size: 13px |
346 | background: #2d2c2c |
347 | padding: 6px 10px |
348 | border-radius: 3px |
349 | color: #ccc |
350 | display: inline-block |
351 | text-align: center |
352 | transition: background-color 0.25s ease, color 0.25s ease |
353 | |
354 | :before { |
355 | content: "↩ " |
356 | } |
357 | :hover { |
358 | background: #45b754 |
359 | color: white |
360 | } |
361 | } |
362 | a + a { |
363 | margin-left: 10px; |
364 | } |
365 | } |
366 | } |
367 | } |
368 |
Built with git-ssb-web