Skip to content

Commit fc0c995

Browse files
committed
Add h4,h5,h6 as suggested by @bootstraponline, fix section padding
1 parent 0668051 commit fc0c995

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

source/stylesheets/print.css.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,15 @@ body {
100100
margin-top: 0;
101101
}
102102

103-
h3 {
103+
h3, h4 {
104104
@extend %header-font;
105105
font-size: 0.8em;
106106
margin-top: 1.5em;
107107
margin-bottom: 0.8em;
108108
text-transform: uppercase;
109109
}
110+
111+
h5, h6 {
112+
text-transform: uppercase;
113+
}
110114
}

source/stylesheets/screen.css.scss

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,9 @@ html, body {
240240
z-index: 30;
241241

242242
section {
243-
&>h1, &>h2, &>h3, &>p, &>table, &>ul, &>ol, &>aside, &>dl {
243+
padding-bottom: 6em;
244+
245+
&>h1, &>h2, &>h3, &>h4, &>h5, &>h6, &>p, &>table, &>ul, &>ol, &>aside, &>dl {
244246
margin-right: $examples-width;
245247
padding: 0 $main-padding;
246248
@include box-sizing(border-box);
@@ -263,21 +265,14 @@ html, body {
263265
padding-top: 0.5em;
264266
padding-bottom: 0.5em;
265267
border-bottom: 1px solid #ccc;
266-
margin-top: 2em;
267268
margin-bottom: $h1-margin-bottom;
269+
margin-top: 0;
268270
border-top: 1px solid #ddd;
269271
@include background-image(
270272
linear-gradient(top, #fff, #f9f9f9)
271273
);
272274
}
273275

274-
// The header at the very top of the page
275-
// shouldn't have top margin.
276-
// (the div is because of tocify)
277-
h1:first-child, div:first-child + h1 {
278-
margin-top: 0;
279-
}
280-
281276
h2 {
282277
@extend %header-font;
283278
font-size: 20px;
@@ -298,14 +293,18 @@ html, body {
298293
border-top: none;
299294
}
300295

301-
h3 {
296+
h3, h4, h5, h6 {
302297
@extend %header-font;
303298
font-size: 12px;
304299
margin-top: 2.5em;
305300
margin-bottom: 0.8em;
306301
text-transform: uppercase;
307302
}
308303

304+
h4, h5, h6 {
305+
font-size: 10px;
306+
}
307+
309308
hr {
310309
margin: 2em 0;
311310
border-top: 2px solid $examples-bg;

0 commit comments

Comments
 (0)