Skip to content

Commit 6640b70

Browse files
vr8hubacabal
vr8hub
authored andcommitted
Testing: Resave build-loi golden files after updating helper function
1 parent 741e226 commit 6640b70

36 files changed

+1254
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The source text and artwork in this ebook are believed to be in the United States public domain; that is, they are believed to be free of copyright restrictions in the United States. They may still be copyrighted in other countries, so users located outside of the United States must check their local laws before using this ebook. The creators of, and contributors to, this ebook dedicate their contributions to the worldwide public domain via the terms in the [CC0 1.0 Universal Public Domain Dedication](https://creativecommons.org/publicdomain/zero/1.0/).
Loading
Loading
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<container xmlns="urn:oasis:names:tc:opendocument:xmlns:container" version="1.0">
3+
<rootfiles>
4+
<rootfile full-path="epub/content.opf" media-type="application/oebps-package+xml"/>
5+
</rootfiles>
6+
</container>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
@charset "utf-8";
2+
@namespace epub "http://www.idpf.org/2007/ops";
3+
4+
body{
5+
font-variant-numeric: oldstyle-nums;
6+
hyphens: auto;
7+
-epub-hyphens: auto;
8+
text-wrap: pretty;
9+
}
10+
11+
p{
12+
margin: 0;
13+
text-indent: 1em;
14+
}
15+
16+
hr{
17+
border: none;
18+
border-top: 1px solid;
19+
height: 0;
20+
margin: 1.5em auto;
21+
width: 25%;
22+
}
23+
24+
q::before,
25+
q::after{
26+
content: "";
27+
}
28+
29+
blockquote{
30+
margin: 1em 2.5em;
31+
}
32+
33+
h1,
34+
h2,
35+
h3,
36+
h4,
37+
h5,
38+
h6,
39+
hgroup{
40+
break-after: avoid;
41+
break-inside: avoid;
42+
font-variant: small-caps;
43+
hyphens: none;
44+
-epub-hyphens: none;
45+
margin: 3em 0;
46+
text-align: center;
47+
}
48+
49+
/* simulate h3 in an hgroup */
50+
hgroup h2 + p{
51+
font-size: 1.17em;
52+
}
53+
54+
/* simulate h4 in an hgroup */
55+
hgroup h2 + p + p,
56+
hgroup h3 + p{
57+
font-size: 1em;
58+
}
59+
60+
/* simulate h5 in an hgroup */
61+
hgroup h2 + p + p + p,
62+
hgroup h3 + p + p,
63+
hgroup h4 + p{
64+
font-size: .83em;
65+
}
66+
67+
/* simulate h6 in an hgroup */
68+
hgroup h2 + p + p + p + p,
69+
hgroup h3 + p + p + p,
70+
hgroup h4 + p + p,
71+
hgroup h5 + p{
72+
font-size: .67em;
73+
}
74+
75+
hgroup > *{
76+
font-weight: normal;
77+
margin: 0;
78+
}
79+
80+
hgroup > *:first-child{
81+
font-weight: bold;
82+
}
83+
84+
hgroup > p{
85+
text-indent: 0;
86+
}
87+
88+
p.continued,
89+
h2 + p,
90+
h3 + p,
91+
h4 + p,
92+
h5 + p,
93+
h6 + p,
94+
header + p,
95+
hr + p,
96+
hgroup + p,
97+
p:first-child{
98+
hanging-punctuation: first last;
99+
text-indent: 0;
100+
}
101+
102+
cite{
103+
font-style: normal;
104+
}
105+
106+
abbr{
107+
border: none;
108+
white-space: nowrap;
109+
}
110+
111+
blockquote cite{
112+
display: block;
113+
font-style: italic;
114+
text-align: right;
115+
}
116+
117+
blockquote cite i{
118+
font-style: normal;
119+
}
120+
121+
b,
122+
strong{
123+
font-variant: small-caps;
124+
font-weight: normal;
125+
}
126+
127+
i > i,
128+
em > i,
129+
i > em{
130+
font-style: normal;
131+
}
132+
133+
ol,
134+
ul{
135+
margin-bottom: 1em;
136+
margin-top: 1em;
137+
}
138+
139+
header{
140+
break-after: avoid;
141+
break-inside: avoid;
142+
hyphens: none;
143+
-epub-hyphens: none;
144+
text-align: center;
145+
}
146+
147+
header > * + p{
148+
text-indent: 0;
149+
}
150+
151+
article > header + *,
152+
section > header + *{
153+
margin-top: 3em;
154+
}
155+
156+
a[epub|type~="noteref"]{
157+
font-size: smaller;
158+
font-style: normal !important;
159+
vertical-align: super;
160+
}
161+
162+
section[epub|type~="endnotes"] > ol > li{
163+
margin: 1em 0;
164+
}
165+
166+
/* Invert images in dark mode. RMSDK requires a target media as well as a state. */
167+
@media all and (prefers-color-scheme: dark){
168+
img[epub|type~="se:image.color-depth.black-on-transparent"]{
169+
filter: invert(100%);
170+
}
171+
172+
img[epub|type~="se:image.color-depth.black-on-transparent"][epub|type~="se:image.style.realistic"]{
173+
background: currentColor;
174+
filter: none;
175+
}
176+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@charset "utf-8";
2+
@namespace epub "http://www.idpf.org/2007/ops";
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
@charset "utf-8";
2+
@namespace epub "http://www.idpf.org/2007/ops";
3+
4+
/* This may appear in the colophon */
5+
abbr[epub|type~="se:era"]{
6+
font-variant: all-small-caps;
7+
}
8+
9+
section[epub|type~="titlepage"] h1,
10+
section[epub|type~="titlepage"] p,
11+
section[epub|type~="colophon"] h2,
12+
section[epub|type~="imprint"] h2{
13+
left: -999em;
14+
position: absolute;
15+
}
16+
17+
section[epub|type~="titlepage"] img{
18+
display: block;
19+
margin: 3em auto auto auto;
20+
width: 100%;
21+
}
22+
23+
section[epub|type~="colophon"],
24+
section[epub|type~="imprint"]{
25+
text-align: center;
26+
}
27+
28+
section[epub|type~="colophon"] header,
29+
section[epub|type~="imprint"] header{
30+
line-height: 0;
31+
margin-top: 3em;
32+
}
33+
34+
img[epub|type~="z3998:publisher-logo"]{
35+
max-width: 25%;
36+
width: 220px;
37+
}
38+
39+
section[epub|type~="colophon"] p,
40+
section[epub|type~="imprint"] p{
41+
margin: 1em auto 0 auto;
42+
text-indent: 0;
43+
}
44+
45+
section[epub|type~="imprint"] p{
46+
font-size: smaller;
47+
text-align: justify;
48+
width: 75%;
49+
}
50+
51+
section[epub|type~="colophon"] p + p::before{
52+
border-top: 1px solid;
53+
content: "";
54+
display: block;
55+
margin: auto auto 1em auto;
56+
width: 25%;
57+
}
58+
59+
section[epub|type~="colophon"] a{
60+
font-variant: small-caps;
61+
}
62+
63+
section[epub|type~="imprint"] a,
64+
section[epub|type~="colophon"] a{
65+
hyphens: none;
66+
-epub-hyphens: none;
67+
}
68+
69+
section[epub|type~="copyright-page"] p{
70+
margin: 1em auto;
71+
text-indent: 0;
72+
}
73+
74+
section[epub|type~="copyright-page"] blockquote p{
75+
font-style: italic;
76+
text-align: initial;
77+
text-indent: 0;
78+
}
79+
80+
section[epub|type~="copyright-page"] blockquote p span{
81+
display: block;
82+
padding-left: 1em;
83+
text-indent: -1em;
84+
}
85+
86+
section[epub|type~="copyright-page"] blockquote br{
87+
display: none;
88+
}

tests/draft_commands/build-loi/test-1/golden/src/epub/images/cover.svg

+42
Loading

tests/draft_commands/build-loi/test-1/golden/src/epub/images/logo.svg

+60
Loading
Loading

0 commit comments

Comments
 (0)