mirror of
https://github.com/danbulant/api_docs
synced 2026-05-19 04:08:40 +00:00
Add h4,h5,h6 as suggested by @bootstraponline, fix section padding
This commit is contained in:
parent
06680512a8
commit
fc0c995cb6
2 changed files with 14 additions and 11 deletions
|
|
@ -100,11 +100,15 @@ body {
|
|||
margin-top: 0;
|
||||
}
|
||||
|
||||
h3 {
|
||||
h3, h4 {
|
||||
@extend %header-font;
|
||||
font-size: 0.8em;
|
||||
margin-top: 1.5em;
|
||||
margin-bottom: 0.8em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
h5, h6 {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
}
|
||||
|
|
@ -240,7 +240,9 @@ html, body {
|
|||
z-index: 30;
|
||||
|
||||
section {
|
||||
&>h1, &>h2, &>h3, &>p, &>table, &>ul, &>ol, &>aside, &>dl {
|
||||
padding-bottom: 6em;
|
||||
|
||||
&>h1, &>h2, &>h3, &>h4, &>h5, &>h6, &>p, &>table, &>ul, &>ol, &>aside, &>dl {
|
||||
margin-right: $examples-width;
|
||||
padding: 0 $main-padding;
|
||||
@include box-sizing(border-box);
|
||||
|
|
@ -263,21 +265,14 @@ html, body {
|
|||
padding-top: 0.5em;
|
||||
padding-bottom: 0.5em;
|
||||
border-bottom: 1px solid #ccc;
|
||||
margin-top: 2em;
|
||||
margin-bottom: $h1-margin-bottom;
|
||||
margin-top: 0;
|
||||
border-top: 1px solid #ddd;
|
||||
@include background-image(
|
||||
linear-gradient(top, #fff, #f9f9f9)
|
||||
);
|
||||
}
|
||||
|
||||
// The header at the very top of the page
|
||||
// shouldn't have top margin.
|
||||
// (the div is because of tocify)
|
||||
h1:first-child, div:first-child + h1 {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
h2 {
|
||||
@extend %header-font;
|
||||
font-size: 20px;
|
||||
|
|
@ -298,7 +293,7 @@ html, body {
|
|||
border-top: none;
|
||||
}
|
||||
|
||||
h3 {
|
||||
h3, h4, h5, h6 {
|
||||
@extend %header-font;
|
||||
font-size: 12px;
|
||||
margin-top: 2.5em;
|
||||
|
|
@ -306,6 +301,10 @@ html, body {
|
|||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
h4, h5, h6 {
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
hr {
|
||||
margin: 2em 0;
|
||||
border-top: 2px solid $examples-bg;
|
||||
|
|
|
|||
Loading…
Reference in a new issue