Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Commit f2956fb

Browse files
committed
fix margin in standard mode
1 parent 5b1de8d commit f2956fb

File tree

3 files changed

+25
-9
lines changed

3 files changed

+25
-9
lines changed

src/css/markdown.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
height: 20px;
161161
overflow: hidden;
162162
border: 0;
163-
margin-bottom: 20px;
163+
margin: 20px 0;
164164
}
165165
.hack hr:after {
166166
content: "----------------------------------------------------------------------------------------------------";

src/css/themes/standard.css

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,21 @@ html {
2424
.standard h3 {
2525
font-size: 1.17em;
2626
font-weight: bold;
27-
margin: 1em 0;
27+
margin: 1.75rem 0;
2828
}
2929
.standard p {
30-
margin: 1em 0;
30+
margin: 1.75rem 0;
3131
}
3232
.standard ul,
3333
.standard ol {
3434
display: block;
3535
list-style-type: disc;
36-
padding-left: 40px;
37-
margin: 1em 0;
36+
padding-left: 20px;
37+
margin: 1.75rem 0;
38+
& ul {
39+
margin: .75rem 0;
40+
list-style-type: square;
41+
}
3842
}
3943
.standard ol {
4044
list-style-type: decimal;
@@ -44,18 +48,19 @@ html {
4448
padding-left: 0;
4549
}
4650
.standard blockquote {
47-
margin: 1em 0;
51+
margin: 1.75rem 0;
4852
padding-left: 10px;
4953
border-left: 5px solid #f0f0f0;
5054
}
5155
.standard pre {
52-
margin: 1em 0;
56+
margin: 1.75rem 0;
5357
white-space: pre;
5458
}
5559

5660
.standard hr {
61+
border: 0;
5762
height: 1px;
5863
display: block;
59-
background-color: #f0f0f0;
60-
margin: 1em 0;
64+
background-color: #e2e2e2;
65+
margin: 1.75rem 0;
6166
}

src/html/components.jade

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@ h4 <hr>
22

33
hr
44

5+
h4 List
6+
7+
ul
8+
li foo
9+
ul
10+
li sub foo
11+
li sub bar
12+
li sub baz
13+
li bar
14+
li baz
15+
516
h4 Blockquote
617

718
blockquote Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptates quis cumque similique voluptas facilis fugit inventore odit, quidem et ab, quos, blanditiis iure! Ipsum nostrum corrupti architecto fugit, culpa expedita.

0 commit comments

Comments
 (0)