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