Skip to content

Commit 81a4cef

Browse files
committed
Merge branch 'DOCSP-581' of github.com:jdestefano-mongo/docs-tutorials into jdestefano-mongo-DOCSP-581
2 parents 21ed82b + 825d6ee commit 81a4cef

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

themes/mongodb-tutorials/src/styles/base.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,6 @@ p {
6060
font-weight: normal;
6161
line-height: 20px;
6262
margin-bottom: 30px;
63-
64-
// TODO: I don't think this works
65-
+ ul,
66-
ol {
67-
margin-bottom: 10px;
68-
}
6963
}
7064

7165
button {

themes/mongodb-tutorials/src/styles/bem-components/single.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
h1 {
1010
border-bottom: 1px solid $light-grey-primary;
1111
padding-bottom: 10px;
12+
margin-bottom: 20px; // Fix to add spacing when page has <p> before <h2>
1213
}
1314

1415
h2:not(:first-of-type) {
@@ -20,15 +21,33 @@
2021
ul {
2122
font-family: Akzidenz;
2223
padding-left: 40px;
24+
margin-bottom: 30px;
2325

26+
// Spacing in between list items
2427
li {
2528
padding-top: .2em;
2629
}
30+
31+
p {
32+
margin-bottom: .2em;
33+
}
34+
35+
}
36+
37+
// Remove some spacing when a paragraph leads into a list
38+
p {
39+
+ ul {
40+
margin-top: -15px;
41+
}
42+
+ ol {
43+
margin-top: -15px;
44+
}
2745
}
2846

2947
// pygments theme
3048
.highlight {
3149
background: $pygment-01;
50+
margin-bottom: 25px;
3251

3352
pre {
3453
background-color: $light-blue-primary;

0 commit comments

Comments
 (0)