Skip to content

Commit 0ba461d

Browse files
committed
Docs: Simplified h2/h3 margin rules
1 parent 5173440 commit 0ba461d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/source/mongodbtheme/static/mongodb.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,11 @@ h1, h2, h3, h4, h5, h6 {
132132
}
133133
h1 { font-size: 26pt; margin-bottom: 0; }
134134
h1 a.headerlink { display: none; }
135+
.body > .section > .section ~ .section { margin-top: 2em; }
135136
h2 { font-size: 20pt; margin-bottom: 0.3em; }
136-
h3 { font-size: 16pt; position: relative; top: 0.5em; margin-bottom: 0; padding-bottom: 0; }
137-
h2 + p { margin-top: 0; }
138137
h2 tt { font-size: 18pt; }
138+
h2 + *, h3 + * { margin-top: 4px; }
139+
h3 { margin-bottom: 0; }
139140

140141
/* headerlink = the pilcrow (¶) showed besides headlines */
141142
.headerlink {

0 commit comments

Comments
 (0)