Commit 2d622961 authored by Julie's avatar Julie

all cases hgroup clean

parent 11d10d4e
......@@ -103,26 +103,24 @@ $cau-lineHeight : $lineHeight;
}
}
hgroup {
+ p {
.ct + p,
.cst + p,
.cau + p,
.cep + p,
.cepo + p,
.cepsn + p,
hgroup + p {
text-indent: 0;
}
}
/* CLEAN */
/* Spec : Body of book begins first line on 18th normal text line. If display runs deep, allow at least 4p6 (70px here, approximately
$lineHeight*4) below to chapter opening.
*/
/* Select chap title alone ou cst précédé de ct ou cau précédé de ct ...*/
/* Select chap title alone */
$space-ct-co : 11px; // +11px ($ct-fontSize - $fontSize ?) begin first paragraphe on baseline
$ct-marginBottom : $lineHeight*9 + $space-ct-co;
.ct{
......@@ -217,14 +215,6 @@ $cst4-cau-marginBottom : $lineHeight*8 - $cst-lineHeight*3 ; /* Body of book be
/* CEP(O) -------------------------------------------------------------------------- */
/* Spec : 30.5 pts above ( approximately 2*$lineHeight here) and 22.5 pts between epigraphs. */
......@@ -234,23 +224,6 @@ $cep-marginBottom : $lineHeight*3; /* Body of book begins at least 4p6 (approxim
/* CEP below cst -------------------------------------------------------------------------- */
/* CEP(O) below .ct -------------------------------------------------------------------------- */
/* Select cepsn of cep(o) below ct + if there are 2 cep(o) */
......@@ -274,11 +247,34 @@ $cep-marginBottom : $lineHeight*3; /* Body of book begins at least 4p6 (approxim
.ct + .cep,
.ct + .cepo{
margin-top: -$ct-marginBottom + 28px; // exception
}
/* CEP(O) below .ct + .cau -------------------------------------------------------------------------- */
.cau ~ .cep + .cepsn{
margin-bottom: $cep-marginBottom;
}
/* space between 2 cep(o) */
.cau ~ .cep ~ .cepsn ~ .cep,
.cau ~ .cepo ~ .cepsn ~ .cep ,
.cau ~ .cep ~ .cepsn ~ .cepo,
.cau ~ .cepo ~ .cepsn ~ .cepo {
margin-top: -$lineHeight*3;
}
.cau + .cep{
margin-top: -$cst1-marginBottom + $cep-marginTop; /* like cst 1 line*/
}
/* CEP(O) below .cst -------------------------------------------------------------------------- */
/* CEP(O) below .ct + .cst (+ .cau) -------------------------------------------------------------------------- */
/* Select cepsn of cep(o) below cst 1 line */
.cst:not(.cst-2):not(.cst-3):not(.cst-4) ~ .cep + .cepsn,
......@@ -316,6 +312,13 @@ $cep-marginBottom : $lineHeight*3; /* Body of book begins at least 4p6 (approxim
.cst-2 + .cepo{
margin-top: -$cst2-marginBottom + $cep-marginTop - 1px;
}
/* Select cep below cst 2 lines + cau (space between cau and cep(o))*/
.cst-2 ~ .cau + .cep,
.cst-2 ~ .cau + .cepo{
margin-top: -$cst2-marginBottom + $cep-marginTop + $lineHeight;
}
/* Select cepsn of cep(o) below cst 3 lines */
.cst-3 ~ .cep + .cepsn,
......@@ -328,10 +331,42 @@ $cep-marginBottom : $lineHeight*3; /* Body of book begins at least 4p6 (approxim
.cst-3 ~ .cep ~ .cepsn ~ .cepo,
.cst-3 ~ .cepo ~ .cepsn ~ .cepo {
margin-top: -$lineHeight*3 - 8px!important;
color:blue;
}
/* Select cep below cst 3 lines */
.cst-3 + .cep,
.cst-3 + .cepo{
margin-top: -$cst3-marginBottom + $cep-marginTop;
}
/* Select cep below cst 3 lines + cau (space between cau and cep(o))*/
.cst-3 ~ .cau + .cep,
.cst-3 ~ .cau + .cepo{
margin-top: -$cst3-marginBottom + $cep-marginTop + $lineHeight + 1px;
}
/* Select cepsn of cep(o) below cst 4 lines */
.cst-4 ~ .cep + .cepsn,
.cst-4 ~ .cepo + .cepsn{
margin-bottom : $lineHeight*3 + 5px!important;
}
/* space between 2 cep(o) when cst 4 lines */
.cst-4 ~ .cep ~ .cepsn ~ .cep,
.cst-4 ~ .cepo ~ .cepsn ~ .cep ,
.cst-4 ~ .cep ~ .cepsn ~ .cepo,
.cst-4 ~ .cepo ~ .cepsn ~ .cepo {
margin-top: -$lineHeight*3 - 5px!important;
}
/* Select cep below cst 4 lines */
.cst-4 + .cep,
.cst-4 + .cepo{
margin-top: -$cst4-marginBottom + $cep-marginTop - 1px;
}
/* Select cep below cst 4 lines + cau (space between cau and cep(o)) */
.cst-4 ~ .cau + .cep,
.cst-4 ~ .cau + .cepo{
margin-top: -$cst4-marginBottom + $cep-marginTop + $lineHeight;
}
......@@ -651,14 +651,19 @@ $lineHeight: 17px;
padding-bottom: 15px;
/* align on baseline */ }
.ct + p,
.cst + p,
.cau + p,
.cep + p,
.cepo + p,
.cepsn + p,
hgroup + p {
text-indent: 0; }
/* CLEAN */
/* Spec : Body of book begins first line on 18th normal text line. If display runs deep, allow at least 4p6 (70px here, approximately
$lineHeight*4) below to chapter opening.
*/
/* Select chap title alone ou cst précédé de ct ou cau précédé de ct ...*/
/* Select chap title alone */
.ct {
margin-bottom: 164px; }
......@@ -720,7 +725,6 @@ hgroup + p {
/* Spec : 30.5 pts above ( approximately 2*$lineHeight here) and 22.5 pts between epigraphs. */
/* space before the beginning of cep(o) and after the previous element */
/* Body of book begins at least 4p6 (approximately $lineHeight*4 here) : there one $lineHeight less because padding after cepsn is vig (15px) */
/* CEP below cst -------------------------------------------------------------------------- */
/* CEP(O) below .ct -------------------------------------------------------------------------- */
/* Select cepsn of cep(o) below ct + if there are 2 cep(o) */
.ct ~ .cep + .cepsn,
......@@ -743,7 +747,22 @@ hgroup + p {
.ct + .cepo {
margin-top: -136px; }
/* CEP(O) below .cst -------------------------------------------------------------------------- */
/* CEP(O) below .ct + .cau -------------------------------------------------------------------------- */
.cau ~ .cep + .cepsn {
margin-bottom: 51px; }
/* space between 2 cep(o) */
.cau ~ .cep ~ .cepsn ~ .cep,
.cau ~ .cepo ~ .cepsn ~ .cep,
.cau ~ .cep ~ .cepsn ~ .cepo,
.cau ~ .cepo ~ .cepsn ~ .cepo {
margin-top: -51px; }
.cau + .cep {
margin-top: -102px;
/* like cst 1 line*/ }
/* CEP(O) below .ct + .cst (+ .cau) -------------------------------------------------------------------------- */
/* Select cepsn of cep(o) below cst 1 line */
.cst:not(.cst-2):not(.cst-3):not(.cst-4) ~ .cep + .cepsn,
.cst:not(.cst-2):not(.cst-3):not(.cst-4) ~ .cepo + .cepsn {
......@@ -778,6 +797,11 @@ hgroup + p {
.cst-2 + .cepo {
margin-top: -82px; }
/* Select cep below cst 2 lines + cau (space between cau and cep(o))*/
.cst-2 ~ .cau + .cep,
.cst-2 ~ .cau + .cepo {
margin-top: -64px; }
/* Select cepsn of cep(o) below cst 3 lines */
.cst-3 ~ .cep + .cepsn,
.cst-3 ~ .cepo + .cepsn {
......@@ -788,14 +812,40 @@ hgroup + p {
.cst-3 ~ .cepo ~ .cepsn ~ .cep,
.cst-3 ~ .cep ~ .cepsn ~ .cepo,
.cst-3 ~ .cepo ~ .cepsn ~ .cepo {
margin-top: -59px !important;
color: blue; }
margin-top: -59px !important; }
/* Select cep below cst 3 lines */
.cst-3 + .cep,
.cst-3 + .cepo {
margin-top: -60px; }
/* Select cep below cst 3 lines + cau (space between cau and cep(o))*/
.cst-3 ~ .cau + .cep,
.cst-3 ~ .cau + .cepo {
margin-top: -42px; }
/* Select cepsn of cep(o) below cst 4 lines */
.cst-4 ~ .cep + .cepsn,
.cst-4 ~ .cepo + .cepsn {
margin-bottom: 56px !important; }
/* space between 2 cep(o) when cst 4 lines */
.cst-4 ~ .cep ~ .cepsn ~ .cep,
.cst-4 ~ .cepo ~ .cepsn ~ .cep,
.cst-4 ~ .cep ~ .cepsn ~ .cepo,
.cst-4 ~ .cepo ~ .cepsn ~ .cepo {
margin-top: -56px !important; }
/* Select cep below cst 4 lines */
.cst-4 + .cep,
.cst-4 + .cepo {
margin-top: -40px; }
/* Select cep below cst 4 lines + cau (space between cau and cep(o)) */
.cst-4 ~ .cau + .cep,
.cst-4 ~ .cau + .cepo {
margin-top: -22px; }
.notes ol {
margin-top: 0;
margin-bottom: 0;
......
......@@ -543,8 +543,8 @@
<!-- <div class="cau">George Wills</div> -->
<div class="cep"> I began printing books with the hope of producing some which would have a difinite claim to beauty, while at the same time they should be easy to read and should not dazzle the eye, or trouble the intellect of the reader by eccentricity of form in the letters.</div>
<div class="cepsn">william morris, aims in founding the kelmscott press</div>
<div class="cep">I began printing books with the hope of producing some which would have a difinite claim to beauty, while at the same time they should be easy to read and should not dazzle the eye, or trouble the intellect of the reader by eccentricity of form in the letters.</div>
<div class="cepsn">william morris, aims in founding the kelmscott press</div>
<!-- <div class="cep">I began printing books with the hope of producing some which would have a difinite claim to beauty, while at the same time they should be easy to read and should not dazzle the eye, or trouble the intellect of the reader by eccentricity of form in the letters.</div> -->
<!-- <div class="cepsn">william morris, aims in founding the kelmscott press</div> -->
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment