git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Tree: 7b40e72587b4ad66d057d1dd84a907c403582692

Files: 7b40e72587b4ad66d057d1dd84a907c403582692 / styles / light / message.mcss

4744 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: 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 margin-bottom: 15px
39 div.main {
40 a.avatar {
41 img {
42 width: 40px
43 height: 40px
44 }
45 }
46 }
47 }
48 }
49
50 -compact {
51 section {
52 max-height: 300px
53 }
54 }
55
56 -reply {
57 header {
58 font-size: 100%
59 div.meta {
60 a.channel {
61 display: none;
62 }
63 span.private {
64 (img) {
65 width: 40px
66 height: 40px
67 }
68 }
69 }
70 div.main {
71 a.avatar {
72 img {
73 width: 40px
74 height: 40px
75 }
76 }
77 }
78 }
79 }
80
81 -missing {
82 header {
83 div.main {
84 div.main {
85 margin-left: 0
86 }
87 }
88 }
89 section {
90 font-size: 90%
91 font-style: italic
92 color: #777
93 }
94 }
95
96 -new, -unread {
97 box-shadow: 0 0 1px #ffc600;
98 z-index: 1;
99 }
100
101 header {
102 font-size: 120%
103 margin: 15px 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 width: 50px
117 height: 50px
118 }
119 }
120
121 div.main {
122 div.name {
123 a {
124 color: #444
125 font-weight: bold
126 }
127 }
128 div.meta {
129 font-size: 90%
130 }
131 margin-left: 10px
132 }
133 }
134
135 div.meta {
136 display: flex;
137 flex-direction: column-reverse;
138 align-items: flex-end;
139 justify-content: flex-end;
140
141 span.flag {
142 width: 12px
143 height: 12px
144
145 background-repeat: no-repeat
146 background-position: center
147 display: inline-block
148 vertical-align: middle;
149 margin-top: -3px;
150
151 -unread {
152 :after {
153 content: ' unread'
154 font-size: 75%
155 color: #b7b7b7
156 }
157 }
158
159 -new {
160 :after {
161 content: ' new'
162 font-size: 75%
163 color: #b7b7b7
164 }
165 }
166
167 -new, -unread {
168 width: auto
169 height: auto
170
171 :before {
172 color: #ffcf04
173 content: '✸'
174 }
175
176 :first-letter {
177 font-size: 100%
178 }
179 }
180 }
181
182 em {
183 display: inline-block
184 padding: 4px
185 }
186
187 a.channel {
188 font-weight: bold;
189 }
190
191 a.likes {
192 color: #286bc3;
193 font-size:90%;
194 }
195
196 span.private {
197 display: inline-block;
198 margin: -3px -3px 3px 4px;
199 border: 4px solid #525050;
200 position: relative;
201
202 a {
203 display: inline-block
204
205 img {
206 margin: 0
207 vertical-align: bottom
208 border: none
209 }
210 }
211
212 :after {
213 content: 'private';
214 position: absolute;
215 background: #525050;
216 bottom: 0;
217 left: -1px;
218 font-size: 10px;
219 padding: 2px 4px 0 2px;
220 border-top-right-radius: 5px;
221 color: white;
222 font-weight: bold;
223 pointer-events: none;
224 white-space: nowrap
225 }
226 }
227 }
228 }
229
230 section {
231 margin: 0
232 padding: 0 20px
233 max-height: 1500px
234 overflow: hidden
235
236 (img) {
237 max-width: 100%
238 }
239
240 -expanded {
241 max-height: none
242 }
243 }
244
245 a.backlink {
246 display: block;
247 border-top: 1px solid #EEE;
248 padding: 10px 15px;
249 background: #ffffff;
250 color: #8f8f8f;
251 margin-top: -1px;
252 font-size: 9pt;
253
254 :hover {
255 text-decoration: none
256 color: #777
257 }
258 }
259
260 footer {
261 margin: 5px 0 20px;
262 padding: 0 20px
263
264 div.expander {
265 text-align: center;
266 background-color: white;
267
268 -truncated {
269 padding-top: 50px;
270 margin-top: -50px;
271 -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,1) 50%, rgba(0,0,0,0));
272 a {
273 :before { content: '▼ '; font-size: 80% }
274 }
275 }
276 }
277
278 div.actions {
279 a {
280 opacity: 0.4
281 transition: opacity 0.2s
282 font-weight: bold
283 color: #333
284
285 :hover {
286 opacity: 1
287 text-decoration: none;
288 }
289 }
290 a + a {
291 margin-left: 25px;
292 }
293 }
294 }
295}
296

Built with git-ssb-web