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;
} }
@ -279,7 +285,7 @@ table {
/* float layout */ /* float layout */
/* module, gains superpower "BFC" Block Formating Context */ /* module, gains superpower "BFC" Block Formating Context */
.mod { .mod {
overflow: hidden; overflow: hidden;
} }
@ -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;
} }
@ -262,7 +268,7 @@ video {
} }
/* margin-bottom on tables */ /* margin-bottom on tables */
table { table {
margin-bottom: $medium-value; margin-bottom: $medium-value;
} }
@ -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;
} }