git ssb

10+

Matt McKegg / patchwork



Tree: 9460421baaceb73b6c5819e685d30b5179c7e7c4

Files: 9460421baaceb73b6c5819e685d30b5179c7e7c4 / styles / dark / message.mcss

5793 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: 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 -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 -new, -unread {
97 box-shadow: 0 0 1px #efef00;
98 z-index: 1;
99 }
100
101 header {
102 font-size: 120%
103 margin: 20px 20px 0
104 display: flex
105
106 div.mini {
107 flex: 1
108 }
109
110 div.main {
111 display: flex
112 flex: 1
113
114 a.avatar {
115 img {
116 border-radius: 3px
117 width: 50px
118 height: 50px
119 }
120 }
121
122 div.main {
123 div.name {
124 a {
125 color: #c3c3c3
126 font-weight: bold
127
128 :hover {
129 color: #ddd
130 }
131 }
132 }
133 div.meta {
134 font-size: 75%
135 color: #8a8a8a;
136 (a) {
137 color: #b3b8e0
138 :hover {
139 color: #dfdfe2
140 }
141 }
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
162 -unread {
163 :after {
164 content: ' unread'
165 color: #757474
166 }
167 }
168
169 -new {
170 :after {
171 content: ' new'
172 color: #757474
173 }
174 }
175
176 -new, -unread {
177 width: auto
178 height: auto
179 color: #757474
180 font-size: 75%
181
182 :before {
183 color: #efef00
184 content: '✸'
185 }
186 }
187 }
188
189 em {
190 display: inline-block
191 padding: 4px
192 }
193
194 a.channel {
195 font-size: 75%;
196
197 :hover {
198 color: #c1cdf0
199 }
200 }
201
202 a.likes {
203 font-size: 75%;
204
205 ::before {
206 content: '❤ '
207 color: #ff2f92
208 }
209 :hover {
210 color: #ff2f92
211 }
212 }
213
214 (a.Timestamp) {
215 font-size: 75%
216 font-weight: normal
217 }
218
219 span.private {
220 display: inline-block;
221 margin: -3px -3px 3px 4px;
222 position: relative;
223
224 a {
225 display: inline-block
226
227 :first-child {
228 img {
229 border-top-left-radius: 3px
230 border-bottom-left-radius: 3px
231 }
232 }
233
234 :last-child {
235 img {
236 border-top-right-radius: 3px
237 border-bottom-right-radius: 3px
238 }
239 }
240
241 img {
242 margin: 0
243 vertical-align: bottom
244 border: none
245 }
246 }
247
248 :after {
249 content: 'private';
250 position: absolute;
251 background: rgba(0,0,0,0.75);
252 bottom: 0;
253 left: -1px;
254 font-size: 10px;
255 padding: 1px 4px;
256 border-top-right-radius: 3px;
257 color: #ccc;
258 pointer-events: none;
259 white-space: nowrap
260 }
261 }
262 }
263 }
264
265 section {
266 margin: 0
267 padding: 0 20px
268 max-height: 1500px
269 overflow: hidden
270
271 -expanded {
272 max-height: none
273 }
274
275 (img) {
276 max-width: 100%
277 }
278 }
279
280 a.backlink {
281 display: block;
282 padding: 10px 20px
283 background: #2d2c2c
284 color: #757474;
285 margin-top: -1px;
286 font-size: 9pt;
287
288 :hover {
289 text-decoration: none
290 color: #aaa
291 }
292 }
293
294 footer {
295 margin: 5px 0 20px;
296 padding: 0 20px
297
298 div.expander {
299 text-align: center;
300 background-color: #383736;
301
302 -truncated {
303 padding-top: 50px;
304 margin-top: -50px;
305 -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,1) 50%, rgba(0,0,0,0));
306 a {
307 :before { content: '▼ '; font-size: 80% }
308 }
309 }
310 }
311
312 div.actions {
313 a.like {
314 :before {
315 content: "❤ "
316 }
317 :hover {
318 background: #ff2f92
319 }
320 }
321 a.unlike {
322 :before {
323 content: ""
324 }
325 :hover {
326 background: #434141
327 }
328 }
329 a {
330 font-size: 13px
331 background: #2d2c2c
332 padding: 6px 10px
333 border-radius: 3px
334 color: #ccc
335 display: inline-block
336 text-align: center
337 transition: background-color 0.25s ease, color 0.25s ease
338
339 :before {
340 content: "↩ "
341 }
342 :hover {
343 background: #45b754
344 color: white
345 }
346 }
347 a + a {
348 margin-left: 10px;
349 }
350 }
351 }
352}
353

Built with git-ssb-web