www.fgks.org   »   [go: up one dir, main page]

Skip to content

Commit

Permalink
Update boilerplate CSS to new standards
Browse files Browse the repository at this point in the history
  • Loading branch information
acabal committed Jan 18, 2022
1 parent bba1207 commit e15e892
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 25 deletions.
5 changes: 5 additions & 0 deletions src/epub/css/core.css
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,9 @@ section[epub|type~="endnotes"] > ol > li{
img[epub|type~="se:image.color-depth.black-on-transparent"]{
filter: invert(100%);
}

img[epub|type~="se:image.color-depth.black-on-transparent"][epub|type~="se:image.style.realistic"]{
background: currentColor;
filter: none;
}
}
37 changes: 12 additions & 25 deletions src/epub/css/se.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ abbr.era{
font-variant: all-small-caps;
}

section[epub|type~="titlepage"] h1,
section[epub|type~="titlepage"] p,
section[epub|type~="colophon"] h2,
section[epub|type~="imprint"] h2{
/* Required for Kobo not to add an extra page to the title */
font-size: 0;

/* Required for Kindle */
position: absolute;
left: -999em;
}

section[epub|type~="titlepage"] img{
display: block;
width: 100%;
Expand All @@ -23,11 +35,6 @@ section[epub|type~="imprint"] header{
margin-top: 3em;
}

section[epub|type~="colophon"] h2,
section[epub|type~="imprint"] h2{
display: none;
}

img[epub|type~="z3998:publisher-logo"]{
max-width: 25%;
}
Expand Down Expand Up @@ -82,23 +89,3 @@ section[epub|type~="copyright-page"] blockquote p span{
section[epub|type~="copyright-page"] blockquote br{
display: none;
}

@supports(display: flex){
section[epub|type~="imprint"]{
align-content: center;
display: flex;
flex-direction: column;
justify-content: center;
min-height: calc(98vh - 3em);
padding-top: 3em;
}

section[epub|type~="imprint"] header{
margin-bottom: 2em;
margin-top: 0;
}

img[epub|type~="z3998:publisher-logo"]{
max-width: 25vw;
}
}

0 comments on commit e15e892

Please sign in to comment.