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