git ssb

10+

Matt McKegg / patchwork



Tree: ea7d1478a98e039ffb19e70b2703f0f6ad307f66

Files: ea7d1478a98e039ffb19e70b2703f0f6ad307f66 / styles / light / message.mcss

5882 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 background-color: #525050
224 position: relative;
225
226 a {
227 display: inline-block
228
229 img {
230 margin: 0
231 vertical-align: bottom
232 border: none
233 }
234 }
235
236 :after {
237 content: 'private';
238 position: absolute;
239 background: #525050;
240 bottom: 0;
241 left: -1px;
242 font-size: 10px;
243 padding: 2px 4px 0 2px;
244 border-top-right-radius: 5px;
245 color: white;
246 font-weight: bold;
247 pointer-events: none;
248 white-space: nowrap
249 }
250 }
251 }
252 }
253
254 section {
255 margin: 0
256 padding: 0 20px
257 max-height: 1500px
258 overflow: hidden
259
260 (img) {
261 max-width: 100%
262 }
263
264 -expanded {
265 max-height: none
266 }
267 }
268
269 a.backlink {
270 display: block;
271 border-top: 1px solid #EEE;
272 padding: 10px 15px;
273 background: #ffffff;
274 color: #8f8f8f;
275 margin-top: -1px;
276 font-size: 9pt;
277
278 :hover {
279 text-decoration: none
280 color: #777
281 }
282 }
283
284 footer {
285 margin: 5px 0 20px;
286 padding: 0 20px
287
288 div.expander {
289 text-align: center;
290 background-color: white;
291
292 -truncated {
293 padding-top: 50px;
294 margin-top: -50px;
295 -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,1) 50%, rgba(0,0,0,0));
296 a {
297 :before { content: '▼ '; font-size: 80% }
298 }
299 }
300 }
301
302 div.actions {
303 a.like {
304 :before {
305 content: "❤ "
306 }
307 :hover {
308 background: #e26ba4
309 }
310 }
311 a.unlike {
312 :before {
313 content: ""
314 }
315 :hover {
316 background: #959EAB
317 }
318 }
319 a {
320 font-size: 13px
321 background: #f3f3f3;
322 padding: 6px 10px;
323 border-radius: 3px;
324 color: #656565;
325 display: inline-block
326 text-align: center
327 transition: background-color 0.25s ease, color 0.25s ease
328
329 :before {
330 content: "↩ "
331 }
332 :hover {
333 background: #7dbd85
334 color: white
335 }
336 }
337 a + a {
338 margin-left: 10px;
339 }
340 }
341
342 div.actions2 {
343 a {
344 opacity: 0.4
345 transition: opacity 0.2s
346 font-weight: bold
347 color: #333
348
349 :hover {
350 opacity: 1
351 text-decoration: none;
352 }
353 }
354 a + a {
355 margin-left: 25px;
356 }
357 }
358 }
359}
360

Built with git-ssb-web