Files: 3d3c09ae39f7b3ff508c0ec9569ff2bd7c21298a / app / styles / mcss / markdown.mcss
1439 bytesRaw
1 | Markdown { |
2 | p, ul, ol { |
3 | } |
4 | |
5 | p { |
6 | :first-of-type { margin-top: 0 } |
7 | :last-of-type { margin-bottom: 0 } |
8 | |
9 | a { |
10 | img { margin 0 .5rem } |
11 | |
12 | :only-of-type { |
13 | img { |
14 | display: block |
15 | margin: auto |
16 | } |
17 | } |
18 | } |
19 | } |
20 | |
21 | hr { |
22 | height: 0 |
23 | border: solid #ddd |
24 | border-width: 1px 0 0 |
25 | clear: both |
26 | margin-bottom: .9em |
27 | } |
28 | |
29 | pre { |
30 | background-color: #f5f5f5 |
31 | color: #c121dc |
32 | padding: .3rem |
33 | white-space: pre-wrap |
34 | word-wrap: break-word |
35 | |
36 | code { |
37 | $code |
38 | border: none |
39 | } |
40 | } |
41 | |
42 | p code { |
43 | $code |
44 | padding: 0.1rem .2rem |
45 | } |
46 | |
47 | blockquote { |
48 | color: #666 |
49 | font-style: italic |
50 | font-size: 1rem |
51 | |
52 | p { |
53 | :last-child { |
54 | margin-bottom: .35ex |
55 | } |
56 | } |
57 | } |
58 | |
59 | ul, ol { |
60 | padding-left: 1rem |
61 | margin-top: .35rem |
62 | |
63 | (ul, ol) { |
64 | padding-left: 1.5rem |
65 | } |
66 | |
67 | } |
68 | ul.task-list { |
69 | padding-left: 0 |
70 | |
71 | (li.task-list-item) { |
72 | list-style-type: none |
73 | } |
74 | } |
75 | |
76 | |
77 | (img.emoji) { |
78 | height: 1.2em |
79 | width: 1.2em |
80 | vertical-align: middle |
81 | margin-top: -0.2em |
82 | } |
83 | |
84 | |
85 | h1, h2, h3, h4, h5, h6 { |
86 | margin: 0 |
87 | } |
88 | h1, h2 { |
89 | margin-bottom: .5em |
90 | } |
91 | h1 { font-size: 1.4rem } |
92 | h2 { font-size: 1.2rem } |
93 | h3 { font-size: 1.15rem } |
94 | h4 { font-size: 1.12rem } |
95 | h5 { font-size: 1.1rem } |
96 | h6 { font-size: 1rem } |
97 | } |
98 | |
99 | $code { |
100 | background-color: #f5f5f5 |
101 | color: #c121dc |
102 | border: 1px solid #e6e6e6 |
103 | border-radius: 2px |
104 | } |
105 |
Built with git-ssb-web