Mise en commun des styles h1 et .h1-like

(idem pour h2, h3, etc.)
This commit is contained in:
raphaelgoettter 2015-03-04 14:43:27 +01:00
parent 55709a882d
commit 5e6b31f849
4 changed files with 44 additions and 8 deletions

View file

@ -236,11 +236,17 @@ dl,
blockquote,
pre,
h1,
.h1-like,
h2,
.h2-like,
h3,
.h3-like,
h4,
.h4-like,
h5,
h6 {
.h5-like,
h6,
.h6-like {
&:first-child {
margin-top: 0;
}
@ -279,7 +285,7 @@ table {
/* float layout */
/* module, gains superpower "BFC" Block Formating Context */
.mod {
.mod {
overflow: hidden;
}
@ -330,7 +336,7 @@ table {
}
img.left,
img.start {
img.start {
margin-right: @small-value;
}

View file

@ -17,12 +17,19 @@
}
p,
.p-like,
h1,
.h1-like,
h2,
.h2-like,
h3,
.h3-like,
h4,
.h4-like,
h5,
.h5-like,
h6,
.h6-like,
blockquote,
ul,
ol {
@ -44,6 +51,7 @@
/* no orphans, no widows */
p,
.p-like,
blockquote {
orphans: 3;
widows: 3;
@ -57,14 +65,18 @@
}
/* page break before main headers */
h1 {
h1,
.h1-like {
page-break-before: always;
}
/* no breaks after these elements */
h1,
.h1-like,
h2,
.h2-like,
h3,
.h3-like,
caption {
page-break-after: avoid;
}

View file

@ -229,11 +229,17 @@ dl,
blockquote,
pre,
h1,
.h1-like,
h2,
.h2-like,
h3,
.h3-like,
h4,
.h4-like,
h5,
h6 {
.h5-like,
h6,
.h6-like {
&:first-child {
margin-top: 0;
}
@ -262,7 +268,7 @@ video {
}
/* margin-bottom on tables */
table {
table {
margin-bottom: $medium-value;
}
@ -324,7 +330,7 @@ table {
}
img.left,
img.start {
img.start {
margin-right: $small-value;
}

View file

@ -16,12 +16,19 @@
}
p,
.p-like,
h1,
.h1-like,
h2,
.h2-like,
h3,
.h3-like,
h4,
.h4-like,
h5,
.h5-like,
h6,
.h6-like,
blockquote,
ul,
ol {
@ -43,6 +50,7 @@
/* no orphans, no widows */
p,
.p-like,
blockquote {
orphans: 3;
widows: 3;
@ -56,14 +64,18 @@
}
/* page break before main headers */
h1 {
h1,
.h1-like {
page-break-before: always;
}
/* no breaks after these elements */
h1,
.h1-like,
h2,
.h2-like,
h3,
.h3-like,
caption {
page-break-after: avoid;
}