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