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