git ssb

10+

Matt McKegg / patchwork



Tree: 12f11512b3137b00d22a72c33e6f0272375b449b

Files: 12f11512b3137b00d22a72c33e6f0272375b449b / styles / light / message.mcss

5848 bytesRaw
1Message {
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: rgb(216, 179, 0);
12 color: #ffffff;
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 margin-bottom: 15px
54 div.main {
55 a.avatar {
56 img {
57 width: 40px
58 height: 40px
59 }
60 }
61 }
62 }
63 }
64
65 -compact {
66 section {
67 max-height: 300px
68 }
69 }
70
71 -reply {
72 header {
73 font-size: 100%
74 div.meta {
75 a.channel {
76 display: none;
77 }
78 span.private {
79 (img) {
80 width: 40px
81 height: 40px
82 }
83 }
84 }
85 div.main {
86 a.avatar {
87 img {
88 width: 40px
89 height: 40px
90 }
91 }
92 }
93 }
94 }
95
96 -missing {
97 header {
98 div.main {
99 div.main {
100 margin-left: 0
101 }
102 }
103 }
104 section {
105 font-size: 90%
106 font-style: italic
107 color: #777
108 }
109 }
110
111 -new, -unread {
112 box-shadow: 0 0 1px #ffc600;
113 z-index: 1;
114 }
115
116 header {
117 font-size: 120%
118 margin: 15px 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: #444
140 font-weight: bold
141 }
142 }
143 div.meta {
144 font-size: 90%
145 }
146 margin-left: 10px
147 }
148 }
149
150 div.meta {
151 display: flex;
152 flex-direction: column-reverse;
153 align-items: flex-end;
154 justify-content: flex-end;
155
156 span.flag {
157 width: 12px
158 height: 12px
159
160 background-repeat: no-repeat
161 background-position: center
162 display: inline-block
163 vertical-align: middle;
164 margin-top: -3px;
165
166 -unread {
167 :after {
168 content: ' unread'
169 font-size: 75%
170 color: #b7b7b7
171 }
172 }
173
174 -new {
175 :after {
176 content: ' new'
177 font-size: 75%
178 color: #b7b7b7
179 }
180 }
181
182 -new, -unread {
183 width: auto
184 height: auto
185 color: #ffcf04
186
187 :before {
188 content: '✸'
189 }
190
191 :first-letter {
192 font-size: 100%
193 }
194 }
195 }
196
197 em {
198 display: inline-block
199 padding: 4px
200 }
201
202 a.channel {
203 font-weight: bold;
204 }
205
206 a.likes {
207 font-size: 85%;
208 color: #757474
209
210 ::before {
211 content: '❤ '
212 color: #ff2f92
213 }
214 :hover {
215 color: #ff2f92
216 }
217 }
218
219 span.private {
220 display: inline-block;
221 margin: -3px -3px 3px 4px;
222 border: 4px solid #525050;
223 position: relative;
224
225 a {
226 display: inline-block
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: #525050;
239 bottom: 0;
240 left: -1px;
241 font-size: 10px;
242 padding: 2px 4px 0 2px;
243 border-top-right-radius: 5px;
244 color: white;
245 font-weight: bold;
246 pointer-events: none;
247 white-space: nowrap
248 }
249 }
250 }
251 }
252
253 section {
254 margin: 0
255 padding: 0 20px
256 max-height: 1500px
257 overflow: hidden
258
259 (img) {
260 max-width: 100%
261 }
262
263 -expanded {
264 max-height: none
265 }
266 }
267
268 a.backlink {
269 display: block;
270 border-top: 1px solid #EEE;
271 padding: 10px 15px;
272 background: #ffffff;
273 color: #8f8f8f;
274 margin-top: -1px;
275 font-size: 9pt;
276
277 :hover {
278 text-decoration: none
279 color: #777
280 }
281 }
282
283 footer {
284 margin: 5px 0 20px;
285 padding: 0 20px
286
287 div.expander {
288 text-align: center;
289 background-color: white;
290
291 -truncated {
292 padding-top: 50px;
293 margin-top: -50px;
294 -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,1) 50%, rgba(0,0,0,0));
295 a {
296 :before { content: '▼ '; font-size: 80% }
297 }
298 }
299 }
300
301 div.actions {
302 a.like {
303 :before {
304 content: "❤ "
305 }
306 :hover {
307 background: #e26ba4
308 }
309 }
310 a.unlike {
311 :before {
312 content: ""
313 }
314 :hover {
315 background: #959EAB
316 }
317 }
318 a {
319 font-size: 13px
320 background: #f3f3f3;
321 padding: 6px 10px;
322 border-radius: 3px;
323 color: #656565;
324 display: inline-block
325 text-align: center
326 transition: background-color 0.25s ease, color 0.25s ease
327
328 :before {
329 content: "↩ "
330 }
331 :hover {
332 background: #7dbd85
333 color: white
334 }
335 }
336 a + a {
337 margin-left: 10px;
338 }
339 }
340
341 div.actions2 {
342 a {
343 opacity: 0.4
344 transition: opacity 0.2s
345 font-weight: bold
346 color: #333
347
348 :hover {
349 opacity: 1
350 text-decoration: none;
351 }
352 }
353 a + a {
354 margin-left: 25px;
355 }
356 }
357 }
358}
359

Built with git-ssb-web