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, blockquote,
pre, pre,
h1, h1,
.h1-like,
h2, h2,
.h2-like,
h3, h3,
.h3-like,
h4, h4,
.h4-like,
h5, h5,
h6 { .h5-like,
h6,
.h6-like {
&:first-child { &:first-child {
margin-top: 0; margin-top: 0;
} }
@ -330,7 +336,7 @@ table {
} }
img.left, img.left,
img.start { img.start {
margin-right: @small-value; margin-right: @small-value;
} }

View file

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

View file

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

View file

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