git ssb

16+

Dominic / patchbay



Tree: 07df73b046580ae25b74d8a3d1978f7b4568c02c

Files: 07df73b046580ae25b74d8a3d1978f7b4568c02c / app / styles / mcss / markdown.mcss

1543 bytesRaw
1Markdown {
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 (p) {
85 img.emoji {
86 :only-child {
87 width: 3rem
88 height: 3rem
89 }
90 }
91 }
92
93
94 h1, h2, h3, h4, h5, h6 {
95 margin: 0
96 }
97 h1, h2 {
98 margin-bottom: .5em
99 }
100 h1 { font-size: 1.4rem }
101 h2 { font-size: 1.2rem }
102 h3 { font-size: 1.15rem }
103 h4 { font-size: 1.12rem }
104 h5 { font-size: 1.1rem }
105 h6 { font-size: 1rem }
106}
107
108$code {
109 background-color: #f5f5f5
110 color: #c121dc
111 border: 1px solid #e6e6e6
112 border-radius: 2px
113}
114

Built with git-ssb-web