mirror of
https://git.tonybark.com/standard-mdbook/winnie-the-pooh.git
synced 2026-02-10 16:34:47 -05:00
Fixed CSS
- Centered logo
This commit is contained in:
parent
dad5a460c3
commit
776869266c
5 changed files with 12 additions and 1 deletions
138
local.css
Normal file
138
local.css
Normal file
|
|
@ -0,0 +1,138 @@
|
|||
@charset "utf-8";
|
||||
@namespace epub "http://www.idpf.org/2007/ops";
|
||||
|
||||
footer{
|
||||
margin-top: 1em;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/* All dedications */
|
||||
section.epub-type-dedication{
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
section.epub-type-dedication > *{
|
||||
display: inline-block;
|
||||
margin-top: auto;
|
||||
margin-right: auto;
|
||||
margin-bottom: auto;
|
||||
margin-left: auto;
|
||||
margin-top: 3em;
|
||||
max-width: 80%;
|
||||
}
|
||||
|
||||
@supports(display: flex){
|
||||
section.epub-type-dedication{
|
||||
align-items: center;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
min-height: calc(98vh - 3em);
|
||||
padding-top: 3em;
|
||||
}
|
||||
|
||||
section.epub-type-dedication > *{
|
||||
margin-top: 0;
|
||||
margin-right: 0;
|
||||
margin-bottom: 0;
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
/* End all dedications */
|
||||
|
||||
/* poem/verse/song */
|
||||
.epub-type-z3998-song p,
|
||||
.epub-type-z3998-verse p{
|
||||
text-align: left;
|
||||
text-indent: 0;
|
||||
}
|
||||
|
||||
.epub-type-z3998-song p + p,
|
||||
.epub-type-z3998-verse p + p{
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
.epub-type-z3998-song p > span,
|
||||
.epub-type-z3998-verse p > span{
|
||||
display: block;
|
||||
padding-left: 1em;
|
||||
text-indent: -1em;
|
||||
}
|
||||
|
||||
.epub-type-z3998-song p > span + br,
|
||||
.epub-type-z3998-verse p > span + br{
|
||||
display: none;
|
||||
}
|
||||
|
||||
p span.i1{
|
||||
padding-left: 2em;
|
||||
text-indent: -1em;
|
||||
}
|
||||
|
||||
p span.i2{
|
||||
padding-left: 3em;
|
||||
text-indent: -1em;
|
||||
}
|
||||
|
||||
p span.i3{
|
||||
padding-left: 4em;
|
||||
text-indent: -1em;
|
||||
}
|
||||
|
||||
p span.i4{
|
||||
padding-left: 5em;
|
||||
text-indent: -1em;
|
||||
}
|
||||
/* end of poem/verse/song */
|
||||
|
||||
/* location specific */
|
||||
#dedication p{
|
||||
font-variant: small-caps;
|
||||
margin-top: 3em;
|
||||
}
|
||||
|
||||
#chapter-2 blockquote > p{
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
#chapter-4 blockquote.first-of-type,
|
||||
#chapter-4 blockquote:first-of-type,
|
||||
#chapter-4 blockquote.nth-of-type-2,
|
||||
#chapter-4 blockquote:nth-of-type(2),
|
||||
#chapter-6 blockquote.last-of-type,
|
||||
#chapter-6 blockquote:last-of-type,
|
||||
#chapter-8 blockquote.last-of-type,
|
||||
#chapter-8 blockquote:last-of-type,
|
||||
#chapter-9 blockquote{
|
||||
font-variant: small-caps;
|
||||
text-transform: lowercase;
|
||||
}
|
||||
|
||||
#chapter-6 blockquote.last-of-type,
|
||||
#chapter-6 blockquote:last-of-type,
|
||||
#chapter-7 blockquote > header > p,
|
||||
#chapter-8 blockquote.last-of-type p,
|
||||
#chapter-8 blockquote:last-of-type p,
|
||||
#chapter-9 blockquote p,
|
||||
#chapter-10 blockquote > header > p{
|
||||
text-align: center;
|
||||
text-indent: 0;
|
||||
}
|
||||
|
||||
#chapter-7 blockquote > header,
|
||||
#chapter-10 blockquote > header{
|
||||
font-variant: small-caps;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
/* "jumping" text */
|
||||
#chapter-7 div > p{
|
||||
hanging-punctuation: none;
|
||||
text-indent: 1em;
|
||||
}
|
||||
|
||||
#chapter-7 div span{
|
||||
visibility: hidden;
|
||||
}
|
||||
/* end of jumping text */
|
||||
Loading…
Add table
Add a link
Reference in a new issue