Skip to content

Commit f2aef36

Browse files
committed
Change p and headings margins to have consistent spacing
1 parent 84ab228 commit f2aef36

File tree

3 files changed

+216
-117
lines changed

3 files changed

+216
-117
lines changed
Lines changed: 72 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,102 +1,126 @@
1-
@import (inline) "~@apollo/space-kit/reset.css";
1+
@import (inline) '~@apollo/space-kit/reset.css';
22

33
html {
4-
font-size: 100%;
5-
line-height: 1.45;
6-
overflow-y: auto;
4+
font-size: 100%;
5+
line-height: 1.45;
6+
overflow-y: auto;
77
}
88

99
body {
10-
color: @color-text2;
10+
color: @color-text2;
1111
}
1212

13-
@default-margin: 1.45rem;
13+
@default-margin: 24px;
1414

15-
h1, h2, h3, h4, h5, h6, p, ul, ol, img, div.mermaid {
16-
margin: 0;
17-
margin-bottom: @default-margin;
15+
h1,
16+
h2,
17+
h3,
18+
h4,
19+
h5,
20+
h6,
21+
p,
22+
ul,
23+
ol,
24+
img,
25+
div.mermaid {
26+
margin: 0;
27+
margin-bottom: @default-margin;
1828
}
1929

20-
h4, h5 {
21-
margin-bottom: 1.0875rem;
30+
h4,
31+
h5 {
32+
margin-bottom: 1.0875rem;
2233
}
2334

24-
h1, h2, h3, h4, h5, h6 {
25-
line-height: 1.1;
26-
color: @color-text1;
35+
h1,
36+
h2,
37+
h3,
38+
h4,
39+
h5,
40+
h6 {
41+
line-height: 1.1;
42+
color: @color-text1;
2743
}
2844

29-
h1, h2, h3, h4, h6 {
30-
font-weight: 400;
45+
h1,
46+
h2,
47+
h3,
48+
h4,
49+
h6 {
50+
font-weight: 400;
3151
}
3252

3353
h1 {
34-
font-size: 2.5rem;
54+
font-size: 2.5rem;
3555
}
3656

3757
h2 {
38-
font-size: 1.73286rem;
58+
font-size: 1.73286rem;
3959
}
4060

4161
h3 {
42-
font-size: 1.4427rem;
62+
font-size: 1.4427rem;
4363
}
4464

45-
h4, p, li {
46-
font-size: 1.125rem
65+
h4,
66+
p,
67+
li {
68+
font-size: 1.125rem;
4769
}
4870

4971
h5 {
50-
font-size: 1rem;
72+
font-size: 1rem;
5173
}
5274

5375
h6 {
54-
font-size: 0.875rem;
76+
font-size: 0.875rem;
5577
}
5678

57-
p, li {
58-
line-height: 1.7;
79+
p,
80+
li {
81+
line-height: 1.7;
5982
}
6083

61-
ul, ol {
62-
margin-left: @default-margin;
63-
padding: 0;
84+
ul,
85+
ol {
86+
margin-left: @default-margin;
87+
padding: 0;
6488
}
6589

6690
li {
67-
margin-bottom: @default-margin / 2;
68-
> ul, > ol {
69-
margin-top: @default-margin / 2;
70-
}
91+
margin-bottom: @default-margin / 2;
92+
> ul,
93+
> ol {
94+
margin-top: @default-margin / 2;
95+
}
7196
}
7297

7398
blockquote {
74-
margin-left: 0;
75-
padding: 12px 20px;
76-
border-left: 2px solid @color-primary;
99+
margin-left: 0;
100+
padding: 12px 20px;
101+
border-left: 2px solid @color-primary;
77102
}
78103

79104
blockquote > p {
80-
font-size: inherit;
81-
&:last-child {
82-
margin-bottom: 0;
83-
}
105+
font-size: inherit;
106+
&:last-child {
107+
margin-bottom: 0;
108+
}
84109
}
85110

86111
form {
87-
margin-bottom: 0;
112+
margin-bottom: 0;
88113
}
89114

90115
hr {
91-
height: 1px;
92-
margin-bottom: calc(@default-margin - 1px);
93-
border: none;
94-
background-color: @color-divider
116+
height: 1px;
117+
margin-bottom: calc(@default-margin - 1px);
118+
border: none;
119+
background-color: @color-divider;
95120
}
96121

97122
img.screenshot {
98-
box-shadow:
99-
0 0 0 1px rgba(18,21,26,0.04),
100-
0 1px 4px 0 rgba(0,0,0,0.08);
101-
border-radius: 8px;
123+
box-shadow: 0 0 0 1px rgba(18, 21, 26, 0.04),
124+
0 1px 4px 0 rgba(0, 0, 0, 0.08);
125+
border-radius: 8px;
102126
}

0 commit comments

Comments
 (0)