Skip to content

Commit

Permalink
Update core CSS to new standards
Browse files Browse the repository at this point in the history
  • Loading branch information
acabal committed Jul 21, 2023
1 parent 93e23e6 commit 9d80457
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/epub/css/core.css
Expand Up @@ -45,6 +45,32 @@ hgroup{
text-align: center;
}

/* simulate h3 in an hgroup */
hgroup h2 + p{
font-size: 1.17em;
}

/* simulate h4 in an hgroup */
hgroup h2 + p + p,
hgroup h3 + p{
font-size: 1em;
}

/* simulate h5 in an hgroup */
hgroup h2 + p + p + p,
hgroup h3 + p + p,
hgroup h4 + p{
font-size: .83em;
}

/* simulate h6 in an hgroup */
hgroup h2 + p + p + p + p,
hgroup h3 + p + p + p,
hgroup h4 + p + p,
hgroup h5 + p{
font-size: .67em;
}

hgroup > *{
font-weight: normal;
margin: 0;
Expand All @@ -54,6 +80,10 @@ hgroup > *:first-child{
font-weight: bold;
}

hgroup > p{
text-indent: 0;
}

p.continued,
h2 + p,
h3 + p,
Expand Down

0 comments on commit 9d80457

Please sign in to comment.