git ssb

10+

Matt McKegg / patchwork



Tree: 7d1df4ffdd84755dbe885235db2e4f16920ac892

Files: 7d1df4ffdd84755dbe885235db2e4f16920ac892 / styles / dark / message.mcss

5587 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 -reply {
66 header {
67 font-size: 100%
68 div.meta {
69 a.channel {
70 display: none;
71 }
72 span.private {
73 (img) {
74 width: 40px
75 height: 40px
76 }
77 }
78 }
79 div.main {
80 a.avatar {
81 img {
82 width: 40px
83 height: 40px
84 }
85 }
86 }
87 }
88 }
89
90 -new {
91 box-shadow: 0 0 1px #efef00;
92 z-index: 1;
93 }
94
95 header {
96 font-size: 120%
97 margin: 20px 20px 0
98 display: flex
99
100 div.mini {
101 flex: 1
102 }
103
104 div.main {
105 display: flex
106 flex: 1
107
108 a.avatar {
109 img {
110 border-radius: 3px
111 width: 50px
112 height: 50px
113 }
114 }
115
116 div.main {
117 div.name {
118 a {
119 color: #c3c3c3
120 font-weight: bold
121
122 :hover {
123 color: #ddd
124 }
125 }
126 }
127 div.meta {
128 font-size: 75%
129 color: #8a8a8a;
130 (a) {
131 color: #b3b8e0
132 :hover {
133 color: #dfdfe2
134 }
135 }
136 }
137 margin-left: 10px
138 }
139 }
140
141 div.meta {
142 display: flex;
143 flex-direction: column-reverse;
144 align-items: flex-end;
145 justify-content: flex-end;
146
147 span.flag {
148 width: 12px
149 height: 12px
150
151 background-repeat: no-repeat
152 background-position: center
153 display: inline-block
154 vertical-align: middle;
155
156 -new {
157 width: auto
158 height: auto
159 color: #757474
160
161 :before {
162 content: '✸ new'
163 font-size: 75%
164 }
165
166 :hover {
167 color: #efef00
168 }
169
170 :first-letter {
171 color: #efef00
172 }
173 }
174 }
175
176 em {
177 display: inline-block
178 padding: 4px
179 }
180
181 a.channel {
182 font-size: 75%;
183
184 :hover {
185 color: #c1cdf0
186 }
187 }
188
189 a.likes {
190 font-size: 75%;
191
192 ::before {
193 content: '❤ '
194 color: #ff2f92
195 }
196 :hover {
197 color: #ff2f92
198 }
199 }
200
201 (a.Timestamp) {
202 font-size: 75%
203 font-weight: normal
204 }
205
206 span.private {
207 display: inline-block;
208 margin: -3px -3px 3px 4px;
209 position: relative;
210
211 a {
212 display: inline-block
213
214 :first-child {
215 img {
216 border-top-left-radius: 3px
217 border-bottom-left-radius: 3px
218 }
219 }
220
221 :last-child {
222 img {
223 border-top-right-radius: 3px
224 border-bottom-right-radius: 3px
225 }
226 }
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: rgba(0,0,0,0.75);
239 bottom: 0;
240 left: -1px;
241 font-size: 10px;
242 padding: 1px 4px;
243 border-top-right-radius: 3px;
244 color: #ccc;
245 pointer-events: none;
246 white-space: nowrap
247 }
248 }
249 }
250 }
251
252 section {
253 margin: 0
254 padding: 0 20px
255 max-height: 1500px
256 overflow: hidden
257
258 -expanded {
259 max-height: none
260 }
261
262 (img) {
263 max-width: 100%
264 }
265 }
266
267 a.backlink {
268 display: block;
269 padding: 10px 20px
270 background: #2d2c2c
271 color: #757474;
272 margin-top: -1px;
273 font-size: 9pt;
274
275 :hover {
276 text-decoration: none
277 color: #aaa
278 }
279 }
280
281 footer {
282 margin: 5px 0 20px;
283 padding: 0 20px
284
285 div.expander {
286 text-align: center;
287 background-color: #383736;
288
289 -truncated {
290 padding-top: 50px;
291 margin-top: -50px;
292 -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,1) 50%, rgba(0,0,0,0));
293 a {
294 :before { content: '▼ '; font-size: 80% }
295 }
296 }
297 }
298
299 div.actions {
300 a.like {
301 :before {
302 content: "❤ "
303 }
304 :hover {
305 background: #ff2f92
306 }
307 }
308 a.unlike {
309 :before {
310 content: ""
311 }
312 :hover {
313 background: #434141
314 }
315 }
316 a {
317 font-size: 13px
318 background: #2d2c2c
319 padding: 6px 10px
320 border-radius: 3px
321 color: #ccc
322 display: inline-block
323 text-align: center
324 transition: background-color 0.25s ease, color 0.25s ease
325
326 :before {
327 content: "↩ "
328 }
329 :hover {
330 background: #45b754
331 color: white
332 }
333 }
334 a + a {
335 margin-left: 10px;
336 }
337 }
338 }
339}
340

Built with git-ssb-web