Files: 3451510316992d414ec76ba5b29681fe359b7428 / styles / base / markdown.mcss
1077 bytesRaw
1 | Markdown { |
2 | (a.bad) { |
3 | color: inherit |
4 | :hover { |
5 | text-decoration: inherit |
6 | } |
7 | } |
8 | (img) { |
9 | -pending { |
10 | width: 120px |
11 | height: 40px |
12 | background-image: svg(fetching) |
13 | background-position: center |
14 | background-repeat: no-repeat |
15 | border-radius: 5px |
16 | @svg fetching { |
17 | width: 100px |
18 | height: 20px |
19 | content: '<text x='0' y='12'>Fetching image...</text>' |
20 | text { |
21 | font: caption |
22 | font-size: 12px |
23 | } |
24 | } |
25 | } |
26 | } |
27 | (video) { |
28 | max-width: 100% |
29 | object-fit: scale-down |
30 | } |
31 | (audio) { |
32 | width: 100% |
33 | } |
34 | (table) { |
35 | margin: 10px 0 |
36 | border-collapse: collapse |
37 | (th) { |
38 | text-align: left |
39 | border-bottom: 1px solid #ddd |
40 | padding: 3px |
41 | } |
42 | (td) { |
43 | padding: 3px |
44 | } |
45 | } |
46 | (blockquote) { |
47 | margin: 1rem 0 |
48 | padding: 5px 20px |
49 | } |
50 | (hr) { |
51 | border: none |
52 | } |
53 | (pre) { |
54 | overflow: auto |
55 | padding: 10px |
56 | } |
57 | (ul) { |
58 | (p) { |
59 | margin: 0 |
60 | } |
61 | } |
62 | -fullCode { |
63 | (pre) { |
64 | max-height: none |
65 | } |
66 | } |
67 | |
68 | word-break: break-word |
69 | } |
70 |
Built with git-ssb-web