git ssb

10+

Matt McKegg / patchwork



Tree: e66f956a704b5cc908e734c44d4eb6f082b5a141

Files: e66f956a704b5cc908e734c44d4eb6f082b5a141 / styles / dark / message.mcss

6016 bytesRaw
1Message {
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 border-radius: 3px
132 width: 50px
133 height: 50px
134 }
135 }
136
137 div.main {
138 div.name {
139 a {
140 color: #c3c3c3
141 font-weight: bold
142
143 :hover {
144 color: #ddd
145 }
146 }
147 }
148 div.meta {
149 font-size: 75%
150 color: #8a8a8a;
151 (a) {
152 color: #b3b8e0
153 :hover {
154 color: #dfdfe2
155 }
156 }
157 }
158 margin-left: 10px
159 }
160 }
161
162 div.meta {
163 display: flex;
164 flex-direction: column-reverse;
165 align-items: flex-end;
166 justify-content: flex-end;
167
168 span.flag {
169 width: 12px
170 height: 12px
171
172 background-repeat: no-repeat
173 background-position: center
174 display: inline-block
175 vertical-align: middle;
176
177 -unread {
178 :after {
179 content: ' unread'
180 color: #757474
181 }
182 }
183
184 -new {
185 :after {
186 content: ' new'
187 color: #757474
188 }
189 }
190
191 -new, -unread {
192 width: auto
193 height: auto
194 color: #757474
195 font-size: 75%
196
197 :before {
198 color: #efef00
199 content: '✸'
200 }
201 }
202 }
203
204 em {
205 display: inline-block
206 padding: 4px
207 }
208
209 a.channel {
210 font-size: 75%;
211
212 :hover {
213 color: #c1cdf0
214 }
215 }
216
217 a.likes {
218 font-size: 75%;
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