asciidoctor-epub3 2.1.3 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.adoc +12 -0
- data/Gemfile +0 -8
- data/README.adoc +11 -8
- data/asciidoctor-epub3.gemspec +15 -17
- data/data/fonts/awesome/LICENSE.txt +135 -4
- data/data/fonts/awesome/fa-solid-900.ttf +0 -0
- data/data/fonts/awesome/icons.yml +35962 -12381
- data/data/fonts/awesome/shims.yml +449 -101
- data/data/styles/_colors.scss +2 -0
- data/data/styles/_reset.scss +2 -0
- data/data/styles/epub3-css3-only.scss +5 -3
- data/data/styles/epub3-fonts.scss +5 -3
- data/data/styles/epub3.scss +301 -291
- data/lib/asciidoctor-epub3/converter.rb +37 -30
- data/lib/asciidoctor-epub3/ext/core/file.rb +1 -1
- data/lib/asciidoctor-epub3/version.rb +1 -1
- metadata +101 -54
data/data/styles/epub3.scss
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
1
3
|
@import "reset";
|
2
4
|
@import "colors";
|
3
5
|
@import url("epub3-fonts.css");
|
@@ -70,7 +72,7 @@ kbd {
|
|
70
72
|
|
71
73
|
.menuseq .caret {
|
72
74
|
/*
|
73
|
-
font-family: "
|
75
|
+
font-family: "Font Awesome 6 Free Solid", monospace;
|
74
76
|
font-size: 0.7em;
|
75
77
|
line-height: 1;
|
76
78
|
font-weight: bold;
|
@@ -85,7 +87,7 @@ kbd {
|
|
85
87
|
}
|
86
88
|
|
87
89
|
.menuseq .caret::before {
|
88
|
-
font-family: "
|
90
|
+
font-family: "Font Awesome 6 Free Solid", monospace;
|
89
91
|
content: "\f054";
|
90
92
|
font-size: 0.6em;
|
91
93
|
vertical-align: 0.15em;
|
@@ -119,7 +121,7 @@ sup {
|
|
119
121
|
/*
|
120
122
|
display: inline-block;
|
121
123
|
vertical-align: text-top;
|
122
|
-
padding-top: .25em;
|
124
|
+
padding-top: 0.25em;
|
123
125
|
*/
|
124
126
|
/* alternate approach #2 */
|
125
127
|
line-height: 1;
|
@@ -136,38 +138,13 @@ sub {
|
|
136
138
|
/*
|
137
139
|
display: inline-block;
|
138
140
|
vertical-align: text-bottom;
|
139
|
-
padding-bottom: .5em;
|
141
|
+
padding-bottom: 0.5em;
|
140
142
|
*/
|
141
143
|
/* alternate approach #2 */
|
142
144
|
line-height: 1;
|
143
145
|
vertical-align: text-bottom;
|
144
146
|
}
|
145
147
|
|
146
|
-
/* We need to apply text-align to <p> too in order to override global text-align:justify */
|
147
|
-
th.halign-left, td.halign-left, th.halign-left > p, td.halign-left > p {
|
148
|
-
text-align: left
|
149
|
-
}
|
150
|
-
|
151
|
-
th.halign-right, td.halign-right, th.halign-right > p, td.halign-right > p {
|
152
|
-
text-align: right
|
153
|
-
}
|
154
|
-
|
155
|
-
th.halign-center, td.halign-center, th.halign-center > p, td.halign-center > p {
|
156
|
-
text-align: center
|
157
|
-
}
|
158
|
-
|
159
|
-
th.valign-top, td.valign-top, th.valign-top > p, td.valign-top > p {
|
160
|
-
vertical-align: top
|
161
|
-
}
|
162
|
-
|
163
|
-
th.valign-bottom, td.valign-bottom, th.valign-bottom > p, td.valign-bottom > p {
|
164
|
-
vertical-align: bottom
|
165
|
-
}
|
166
|
-
|
167
|
-
th.valign-middle, td.valign-middle, th.valign-middle > p, td.valign-middle > p {
|
168
|
-
vertical-align: middle
|
169
|
-
}
|
170
|
-
|
171
148
|
body a:link {
|
172
149
|
/* Kindle requires the !important on text-decoration */
|
173
150
|
/* In night mode, the only indicator of a link is the underline, so we need it or a background image */
|
@@ -218,6 +195,15 @@ body p {
|
|
218
195
|
orphans: 2;
|
219
196
|
}
|
220
197
|
|
198
|
+
th, td {
|
199
|
+
/* forward-compatible CSS to enable kerning (if we want ligatures, add "liga" and "dlig") */
|
200
|
+
/* WebKits that don't recognize these properties don't kern well, hence why we don't simply enable kerning via text-rendering */
|
201
|
+
-webkit-font-feature-settings: "kern";
|
202
|
+
font-feature-settings: "kern";
|
203
|
+
font-kerning: normal;
|
204
|
+
/* NOTE see Kindle hack in epub3-css3-only.css for additional kerning settings (disabled) */
|
205
|
+
}
|
206
|
+
|
221
207
|
body p,
|
222
208
|
ul, ol, li, dl, dt, dd, footer,
|
223
209
|
div.verse .attribution, table.table th, table.table td,
|
@@ -240,7 +226,7 @@ code, kbd, pre {
|
|
240
226
|
/* QUESTION should we kern preformatted text blocks? */
|
241
227
|
h1, h2, h3, h4, h5, h6,
|
242
228
|
body p, li, dd, blockquote > footer,
|
243
|
-
|
229
|
+
figcaption, caption {
|
244
230
|
/* forward-compatible CSS to enable kerning (if we want ligatures, add "liga" and "dlig") */
|
245
231
|
/* WebKits that don't recognize these properties don't kern well, hence why we don't simply enable kerning via text-rendering */
|
246
232
|
-webkit-font-feature-settings: "kern";
|
@@ -252,7 +238,7 @@ th, td, figcaption, caption {
|
|
252
238
|
p.last::after {
|
253
239
|
color: $last-mark-text;
|
254
240
|
display: inline-block;
|
255
|
-
font-family: "
|
241
|
+
font-family: "Font Awesome 6 Free Solid", monospace;
|
256
242
|
font-size: 1em;
|
257
243
|
content: "\f121"; /* i.e., </> */
|
258
244
|
margin-left: 0.25em;
|
@@ -263,6 +249,58 @@ ul li, ol li {
|
|
263
249
|
margin-top: 0.4em;
|
264
250
|
}
|
265
251
|
|
252
|
+
ul {
|
253
|
+
/* QUESTION do we need important here? */
|
254
|
+
margin-left: 1em !important;
|
255
|
+
|
256
|
+
> li::before {
|
257
|
+
float: left;
|
258
|
+
margin-left: -1em;
|
259
|
+
margin-top: -0.05em;
|
260
|
+
padding-left: 0.25em;
|
261
|
+
/* guarantee it's out of the flow */
|
262
|
+
width: 0;
|
263
|
+
display: block;
|
264
|
+
|
265
|
+
content: "▪";
|
266
|
+
color: $list-lvl1;
|
267
|
+
}
|
268
|
+
|
269
|
+
ul {
|
270
|
+
> li::before {
|
271
|
+
content: "◦";
|
272
|
+
color: $list-lvl2;
|
273
|
+
}
|
274
|
+
|
275
|
+
ul {
|
276
|
+
> li::before {
|
277
|
+
content: "•";
|
278
|
+
color: $list-lvl3;
|
279
|
+
}
|
280
|
+
|
281
|
+
ul {
|
282
|
+
> li::before {
|
283
|
+
content: "▫";
|
284
|
+
color: $list-lvl4;
|
285
|
+
}
|
286
|
+
}
|
287
|
+
}
|
288
|
+
}
|
289
|
+
}
|
290
|
+
|
291
|
+
ol {
|
292
|
+
list-style-type: decimal;
|
293
|
+
margin-left: 1.75em !important;
|
294
|
+
|
295
|
+
ol {
|
296
|
+
list-style-type: lower-alpha;
|
297
|
+
|
298
|
+
ol {
|
299
|
+
list-style-type: lower-roman;
|
300
|
+
}
|
301
|
+
}
|
302
|
+
}
|
303
|
+
|
266
304
|
/* use paragraph-size gaps between list items */
|
267
305
|
.complex > ul > li,
|
268
306
|
.complex > ol > li {
|
@@ -274,10 +312,11 @@ dt {
|
|
274
312
|
page-break-inside: avoid;
|
275
313
|
-webkit-column-break-after: avoid;
|
276
314
|
page-break-after: avoid;
|
315
|
+
margin-top: 0.75em; /* balances 0.25em to term */
|
277
316
|
}
|
278
317
|
|
279
318
|
dt > span.term {
|
280
|
-
font-
|
319
|
+
font-weight: bold;
|
281
320
|
}
|
282
321
|
|
283
322
|
/*
|
@@ -286,15 +325,6 @@ dt > span.term > code.literal {
|
|
286
325
|
}
|
287
326
|
*/
|
288
327
|
|
289
|
-
dt {
|
290
|
-
margin-top: 0.75em; /* balances 0.25em to term */
|
291
|
-
}
|
292
|
-
|
293
|
-
dl dd {
|
294
|
-
/* minimum margin in case there is no paragraph content */
|
295
|
-
margin-top: 0.25em;
|
296
|
-
}
|
297
|
-
|
298
328
|
td.hdlist1 {
|
299
329
|
font-weight: bold;
|
300
330
|
padding-right: 0.625em;
|
@@ -353,7 +383,7 @@ div.description-list div.ordered-list,
|
|
353
383
|
div.description-list div.description-list {
|
354
384
|
}*/
|
355
385
|
|
356
|
-
|
386
|
+
div.list-heading {
|
357
387
|
font-size: 1em;
|
358
388
|
font-family: "Noto Serif", serif;
|
359
389
|
font-weight: bold;
|
@@ -368,63 +398,16 @@ div.stack-subject li strong.subject {
|
|
368
398
|
display: block;
|
369
399
|
}
|
370
400
|
|
371
|
-
ul {
|
372
|
-
/* QUESTION do we need important here? */
|
373
|
-
margin-left: 1em !important;
|
374
|
-
|
375
|
-
> li::before {
|
376
|
-
float: left;
|
377
|
-
margin-left: -1em;
|
378
|
-
margin-top: -0.05em;
|
379
|
-
padding-left: 0.25em;
|
380
|
-
/* guarantee it's out of the flow */
|
381
|
-
width: 0;
|
382
|
-
display: block;
|
383
|
-
|
384
|
-
content: "▪";
|
385
|
-
color: $list-lvl1;
|
386
|
-
}
|
387
|
-
|
388
|
-
ul {
|
389
|
-
> li::before {
|
390
|
-
content: "◦";
|
391
|
-
color: $list-lvl2;
|
392
|
-
}
|
393
|
-
|
394
|
-
ul {
|
395
|
-
> li::before {
|
396
|
-
content: "•";
|
397
|
-
color: $list-lvl3;
|
398
|
-
}
|
399
|
-
|
400
|
-
ul {
|
401
|
-
> li::before {
|
402
|
-
content: "▫";
|
403
|
-
color: $list-lvl4;
|
404
|
-
}
|
405
|
-
}
|
406
|
-
}
|
407
|
-
}
|
408
|
-
}
|
409
|
-
|
410
|
-
ol {
|
411
|
-
list-style-type: decimal;
|
412
|
-
margin-left: 1.75em !important;
|
413
|
-
|
414
|
-
ol {
|
415
|
-
list-style-type: lower-alpha;
|
416
|
-
|
417
|
-
ol {
|
418
|
-
list-style-type: lower-roman;
|
419
|
-
}
|
420
|
-
}
|
421
|
-
}
|
422
|
-
|
423
401
|
/* REVIEW */
|
424
402
|
dd {
|
425
403
|
margin-left: 1.5rem !important;
|
426
404
|
}
|
427
405
|
|
406
|
+
dl dd {
|
407
|
+
/* minimum margin in case there is no paragraph content */
|
408
|
+
margin-top: 0.25em;
|
409
|
+
}
|
410
|
+
|
428
411
|
/* Kindle does not justify list-item element, must wrap in nested block element */
|
429
412
|
li > span.principal, dd > span.principal {
|
430
413
|
display: block;
|
@@ -456,6 +439,16 @@ ul.references > li > span.principal {
|
|
456
439
|
text-align: left;
|
457
440
|
}
|
458
441
|
|
442
|
+
figure.image {
|
443
|
+
-webkit-column-break-inside: avoid;
|
444
|
+
page-break-inside: avoid;
|
445
|
+
}
|
446
|
+
|
447
|
+
figure.image img {
|
448
|
+
display: block;
|
449
|
+
margin: 0 auto;
|
450
|
+
}
|
451
|
+
|
459
452
|
/* sized based on the major third modular scale (4:5, 16px, 24px) */
|
460
453
|
h1, h2 {
|
461
454
|
font-size: 1.5em;
|
@@ -474,12 +467,13 @@ h4 {
|
|
474
467
|
color: $h4-header-text;
|
475
468
|
font-weight: 200;
|
476
469
|
|
477
|
-
|
478
|
-
|
479
|
-
margin-
|
470
|
+
/* Removed due to multiple definitions, assuming only the last one will be considered by interpreters */
|
471
|
+
/* font-size: 1.1em; */
|
472
|
+
/* margin-top: 1em; */ /* 1.1rem */
|
473
|
+
/* margin-bottom: -0.818em; */ /* -0.9rem, 0.1rem to content */
|
480
474
|
|
481
475
|
font-size: 1.2em;
|
482
|
-
margin-top: .917em; /* 1.1rem */
|
476
|
+
margin-top: 0.917em; /* 1.1rem */
|
483
477
|
margin-top: 0.875em; /* 1.05rem */
|
484
478
|
/*margin-bottom: -0.75em;*/
|
485
479
|
/* -0.9rem, 0.1rem to content */
|
@@ -579,6 +573,101 @@ h1.chapter-title b {
|
|
579
573
|
width: 2em !important;
|
580
574
|
}
|
581
575
|
|
576
|
+
div.blockquote {
|
577
|
+
padding: 0 1em;
|
578
|
+
margin: 1.25em auto;
|
579
|
+
}
|
580
|
+
|
581
|
+
/* display: table causes quotes to be repeated in Aldiko, so we hide this part */
|
582
|
+
div[class~="blockquote"] {
|
583
|
+
display: table;
|
584
|
+
}
|
585
|
+
|
586
|
+
blockquote > p {
|
587
|
+
color: $blockquote-text;
|
588
|
+
font-style: italic;
|
589
|
+
|
590
|
+
/*
|
591
|
+
font-size: 1.2em;
|
592
|
+
word-spacing: 0.1em;
|
593
|
+
*/
|
594
|
+
|
595
|
+
font-size: 1.15em;
|
596
|
+
word-spacing: 0.1em;
|
597
|
+
|
598
|
+
margin-top: 0;
|
599
|
+
line-height: 1.75;
|
600
|
+
}
|
601
|
+
|
602
|
+
blockquote > p:first-of-type::before {
|
603
|
+
display: inline-block;
|
604
|
+
color: $para-first-text;
|
605
|
+
text-shadow: 0 1px 2px rgba(102, 102, 101, 0.3);
|
606
|
+
|
607
|
+
/* using serif quote from entypo */
|
608
|
+
font-family: "FontIcons", monospace;
|
609
|
+
|
610
|
+
/*content: "\f10e";*/
|
611
|
+
/* quote-right from Entypo */
|
612
|
+
/*
|
613
|
+
-webkit-transform: rotate(180deg);
|
614
|
+
transform: rotate(180deg);
|
615
|
+
padding-left: 0.3em;
|
616
|
+
padding-right: 0.2em;
|
617
|
+
*/
|
618
|
+
|
619
|
+
content: "\f10d"; /* quote-left, a flipped version of the quote-right from Entypo */
|
620
|
+
padding-right: 0.5em;
|
621
|
+
font-size: 1.5em;
|
622
|
+
line-height: 1.3;
|
623
|
+
margin-top: -0.5em;
|
624
|
+
vertical-align: text-bottom;
|
625
|
+
}
|
626
|
+
|
627
|
+
blockquote footer {
|
628
|
+
font-size: 0.9em;
|
629
|
+
font-style: italic;
|
630
|
+
|
631
|
+
margin-top: 0.5rem;
|
632
|
+
text-align: right;
|
633
|
+
}
|
634
|
+
|
635
|
+
blockquote footer .context {
|
636
|
+
font-size: 0.9em;
|
637
|
+
letter-spacing: -0.05em;
|
638
|
+
color: $footer-context;
|
639
|
+
}
|
640
|
+
|
641
|
+
pre {
|
642
|
+
text-align: left; /* fix for Namo */
|
643
|
+
margin-top: 1em; /* 0.85rem */
|
644
|
+
/*margin-top: 1.176em;*/
|
645
|
+
/* 1rem */
|
646
|
+
white-space: pre-wrap;
|
647
|
+
overflow-wrap: break-word; /* break in middle of long word if no other break opportunities are available */
|
648
|
+
font-size: 0.85em;
|
649
|
+
line-height: 1.4; /* matches what Kindle uses and can't go less */
|
650
|
+
background-color: $pre-background;
|
651
|
+
padding: 8px 12px; /* this is supposed to be '0.5rem 0.75rem' but Sony Readers crash when see that (at least, PRS-350, PRS-505, PRS-T1) */
|
652
|
+
border-top: 1px solid $pre-border;
|
653
|
+
border-right: 1px solid $pre-border;
|
654
|
+
}
|
655
|
+
|
656
|
+
/* TODO what we really want is for pre w/o caption to be unbreakable */
|
657
|
+
pre.screen {
|
658
|
+
/*
|
659
|
+
-webkit-column-break-inside: avoid;
|
660
|
+
page-break-inside: avoid;
|
661
|
+
*/
|
662
|
+
orphans: 3;
|
663
|
+
widows: 3; /* widows doesn't seem to work here */
|
664
|
+
}
|
665
|
+
|
666
|
+
pre.source {
|
667
|
+
orphans: 3;
|
668
|
+
widows: 3; /* widows doesn't seem to work here */
|
669
|
+
}
|
670
|
+
|
582
671
|
div.abstract {
|
583
672
|
margin: 5% 1.5em 2.5em 1.5em;
|
584
673
|
}
|
@@ -630,29 +719,63 @@ p.signature {
|
|
630
719
|
font-size: 0.9em;
|
631
720
|
}
|
632
721
|
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
}
|
637
|
-
|
638
|
-
/*
|
639
|
-
aside.sidebar {
|
640
|
-
-webkit-column-break-inside: avoid;
|
641
|
-
page-break-inside: avoid;
|
642
|
-
float: left;
|
643
|
-
margin-bottom: 1em;
|
722
|
+
/* We need to apply text-align to <p> too in order to override global text-align:justify */
|
723
|
+
th.halign-left, td.halign-left, th.halign-left > p, td.halign-left > p {
|
724
|
+
text-align: left;
|
644
725
|
}
|
645
|
-
*/
|
646
726
|
|
647
|
-
|
727
|
+
th.halign-right, td.halign-right, th.halign-right > p, td.halign-right > p {
|
728
|
+
text-align: right;
|
729
|
+
}
|
730
|
+
|
731
|
+
th.halign-center, td.halign-center, th.halign-center > p, td.halign-center > p {
|
732
|
+
text-align: center;
|
733
|
+
}
|
734
|
+
|
735
|
+
th.valign-top, td.valign-top, th.valign-top > p, td.valign-top > p {
|
736
|
+
vertical-align: top;
|
737
|
+
}
|
738
|
+
|
739
|
+
th.valign-bottom, td.valign-bottom, th.valign-bottom > p, td.valign-bottom > p {
|
740
|
+
vertical-align: bottom;
|
741
|
+
}
|
742
|
+
|
743
|
+
th.valign-middle, td.valign-middle, th.valign-middle > p, td.valign-middle > p {
|
744
|
+
vertical-align: middle;
|
745
|
+
}
|
746
|
+
|
747
|
+
div.verse {
|
648
748
|
-webkit-column-break-inside: avoid;
|
649
749
|
page-break-inside: avoid;
|
650
750
|
}
|
651
751
|
|
652
|
-
|
752
|
+
/* TODO we may want to reenable hyphens here */
|
753
|
+
div.verse > pre {
|
754
|
+
font-family: "M+ 1p", sans-serif;
|
755
|
+
background-color: transparent;
|
756
|
+
border: none;
|
757
|
+
font-size: 1.2em;
|
758
|
+
text-align: center;
|
759
|
+
}
|
760
|
+
|
761
|
+
div.verse .attribution {
|
653
762
|
display: block;
|
654
|
-
margin:
|
763
|
+
margin-top: 1.4em;
|
764
|
+
}
|
765
|
+
|
766
|
+
figure,
|
767
|
+
aside.sidebar {
|
768
|
+
margin-top: 1em;
|
769
|
+
}
|
770
|
+
|
771
|
+
/*
|
772
|
+
aside.sidebar {
|
773
|
+
-webkit-column-break-inside: avoid;
|
774
|
+
page-break-inside: avoid;
|
775
|
+
float: left;
|
776
|
+
margin-bottom: 1em;
|
655
777
|
}
|
778
|
+
*/
|
656
779
|
|
657
780
|
figure.coalesce {
|
658
781
|
-webkit-column-break-inside: avoid;
|
@@ -678,6 +801,7 @@ figure.image figcaption {
|
|
678
801
|
margin-top: 0.2em;
|
679
802
|
-webkit-column-break-after: auto;
|
680
803
|
page-break-after: auto;
|
804
|
+
text-align: center;
|
681
805
|
}
|
682
806
|
|
683
807
|
p + figure.listing,
|
@@ -722,7 +846,7 @@ aside.sidebar > h2 {
|
|
722
846
|
display: inline-block;
|
723
847
|
white-space: nowrap; /* for some reason it's wrapping prematurely */
|
724
848
|
border: 1px solid $aside-border;
|
725
|
-
padding: 1.5em .75em .5em .75em;
|
849
|
+
padding: 1.5em 0.75em 0.5em 0.75em;
|
726
850
|
margin: -1em 0.5em -0.25em 0.5em;
|
727
851
|
background-color: $body-background;
|
728
852
|
/*
|
@@ -741,120 +865,6 @@ aside.sidebar > div.content > div.itemized-list > ul {
|
|
741
865
|
margin-left: 0.5em !important;
|
742
866
|
}
|
743
867
|
|
744
|
-
div.blockquote {
|
745
|
-
padding: 0 1em;
|
746
|
-
margin: 1.25em auto;
|
747
|
-
}
|
748
|
-
|
749
|
-
/* display: table causes quotes to be repeated in Aldiko, so we hide this part */
|
750
|
-
div[class~="blockquote"] {
|
751
|
-
display: table;
|
752
|
-
}
|
753
|
-
|
754
|
-
blockquote > p {
|
755
|
-
color: $blockquote-text;
|
756
|
-
font-style: italic;
|
757
|
-
|
758
|
-
/*
|
759
|
-
font-size: 1.2em;
|
760
|
-
word-spacing: 0.1em;
|
761
|
-
*/
|
762
|
-
|
763
|
-
font-size: 1.15em;
|
764
|
-
word-spacing: 0.1em;
|
765
|
-
|
766
|
-
margin-top: 0;
|
767
|
-
line-height: 1.75;
|
768
|
-
}
|
769
|
-
|
770
|
-
blockquote > p:first-of-type::before {
|
771
|
-
display: inline-block;
|
772
|
-
color: $para-first-text;
|
773
|
-
text-shadow: 0 1px 2px rgba(102, 102, 101, 0.3);
|
774
|
-
|
775
|
-
/* using serif quote from entypo */
|
776
|
-
font-family: "FontIcons";
|
777
|
-
|
778
|
-
/*content: "\f10e";*/
|
779
|
-
/* quote-right from Entypo */
|
780
|
-
/*
|
781
|
-
-webkit-transform: rotate(180deg);
|
782
|
-
transform: rotate(180deg);
|
783
|
-
padding-left: .3em;
|
784
|
-
padding-right: .2em;
|
785
|
-
*/
|
786
|
-
|
787
|
-
content: "\f10d"; /* quote-left, a flipped version of the quote-right from Entypo */
|
788
|
-
padding-right: .5em;
|
789
|
-
font-size: 1.5em;
|
790
|
-
line-height: 1.3;
|
791
|
-
margin-top: -0.5em;
|
792
|
-
vertical-align: text-bottom;
|
793
|
-
}
|
794
|
-
|
795
|
-
blockquote footer {
|
796
|
-
font-size: 0.9em;
|
797
|
-
font-style: italic;
|
798
|
-
|
799
|
-
margin-top: 0.5rem;
|
800
|
-
text-align: right;
|
801
|
-
}
|
802
|
-
|
803
|
-
blockquote footer .context {
|
804
|
-
font-size: 0.9em;
|
805
|
-
letter-spacing: -0.05em;
|
806
|
-
color: $footer-context;
|
807
|
-
}
|
808
|
-
|
809
|
-
pre {
|
810
|
-
text-align: left; /* fix for Namo */
|
811
|
-
margin-top: 1em; /* 0.85rem */
|
812
|
-
/*margin-top: 1.176em;*/
|
813
|
-
/* 1rem */
|
814
|
-
white-space: pre-wrap;
|
815
|
-
overflow-wrap: break-word; /* break in middle of long word if no other break opportunities are available */
|
816
|
-
font-size: 0.85em;
|
817
|
-
line-height: 1.4; /* matches what Kindle uses and can't go less */
|
818
|
-
background-color: $pre-background;
|
819
|
-
padding: 8px 12px; /* this is supposed to be '0.5rem 0.75rem' but Sony Readers crash when see that (at least, PRS-350, PRS-505, PRS-T1) */
|
820
|
-
border-top: 1px solid $pre-border;
|
821
|
-
border-right: 1px solid $pre-border;
|
822
|
-
}
|
823
|
-
|
824
|
-
/* TODO what we really want is for pre w/o caption to be unbreakable */
|
825
|
-
pre.screen {
|
826
|
-
/*
|
827
|
-
-webkit-column-break-inside: avoid;
|
828
|
-
page-break-inside: avoid;
|
829
|
-
*/
|
830
|
-
orphans: 3;
|
831
|
-
widows: 3; /* widows doesn't seem to work here */
|
832
|
-
}
|
833
|
-
|
834
|
-
pre.source {
|
835
|
-
orphans: 3;
|
836
|
-
widows: 3; /* widows doesn't seem to work here */
|
837
|
-
}
|
838
|
-
|
839
|
-
div.verse {
|
840
|
-
-webkit-column-break-inside: avoid;
|
841
|
-
page-break-inside: avoid;
|
842
|
-
}
|
843
|
-
|
844
|
-
/* TODO we may want to reenable hyphens here */
|
845
|
-
div.verse > pre {
|
846
|
-
font-family: "M+ 1p", sans-serif;
|
847
|
-
background-color: transparent;
|
848
|
-
border: none;
|
849
|
-
font-size: 1.2em;
|
850
|
-
text-align: center;
|
851
|
-
}
|
852
|
-
|
853
|
-
div.verse .attribution {
|
854
|
-
display: block;
|
855
|
-
margin-top: 1.4em;
|
856
|
-
}
|
857
|
-
|
858
868
|
aside.admonition {
|
859
869
|
margin-top: 1em;
|
860
870
|
padding: 1em;
|
@@ -898,7 +908,7 @@ aside.important {
|
|
898
908
|
|
899
909
|
aside.admonition::before {
|
900
910
|
display: block;
|
901
|
-
font-family: "
|
911
|
+
font-family: "Font Awesome 6 Free Solid", monospace;
|
902
912
|
font-size: 2em;
|
903
913
|
line-height: 1;
|
904
914
|
width: 1em;
|
@@ -989,6 +999,27 @@ aside[class~="admonition"] > h2 {
|
|
989
999
|
margin-bottom: 0;
|
990
1000
|
}
|
991
1001
|
|
1002
|
+
div.footnotes {
|
1003
|
+
margin-top: 1em;
|
1004
|
+
}
|
1005
|
+
|
1006
|
+
div.footnotes p {
|
1007
|
+
font-size: 0.8rem;
|
1008
|
+
margin-top: 0.4rem;
|
1009
|
+
}
|
1010
|
+
|
1011
|
+
div.footnotes sup.noteref {
|
1012
|
+
font-weight: bold;
|
1013
|
+
font-size: 0.9em;
|
1014
|
+
}
|
1015
|
+
|
1016
|
+
/*div.footnotes sup.noteref a {*/
|
1017
|
+
sup.noteref a {
|
1018
|
+
/* Kindle wants to underline these links */
|
1019
|
+
text-decoration: none !important;
|
1020
|
+
background-image: none;
|
1021
|
+
}
|
1022
|
+
|
992
1023
|
div.table {
|
993
1024
|
margin-top: 1em;
|
994
1025
|
}
|
@@ -1015,6 +1046,38 @@ table.table th {
|
|
1015
1046
|
font-weight: bold;
|
1016
1047
|
}
|
1017
1048
|
|
1049
|
+
table.table-grid-all th,
|
1050
|
+
table.table-grid-all td {
|
1051
|
+
border-width: 1px 1px 1px 1px;
|
1052
|
+
border-style: solid;
|
1053
|
+
border-color: $table-border;
|
1054
|
+
}
|
1055
|
+
|
1056
|
+
hr.pagebreak {
|
1057
|
+
-webkit-column-break-after: always;
|
1058
|
+
page-break-after: always;
|
1059
|
+
border: none;
|
1060
|
+
margin: 0;
|
1061
|
+
}
|
1062
|
+
|
1063
|
+
/* REVIEW */
|
1064
|
+
hr.pagebreak + * {
|
1065
|
+
margin-top: 0 !important;
|
1066
|
+
}
|
1067
|
+
|
1068
|
+
#_about_the_author {
|
1069
|
+
-webkit-column-break-before: always;
|
1070
|
+
page-break-before: always;
|
1071
|
+
border-bottom: 1px solid $about-author-border;
|
1072
|
+
}
|
1073
|
+
|
1074
|
+
table.table-grid-cols th,
|
1075
|
+
table.table-grid-cols td {
|
1076
|
+
border-width: 0 1px 0 0;
|
1077
|
+
border-style: solid;
|
1078
|
+
border-color: $table-border;
|
1079
|
+
}
|
1080
|
+
|
1018
1081
|
table.table thead th {
|
1019
1082
|
border-bottom: 1px solid $table-border;
|
1020
1083
|
}
|
@@ -1048,22 +1111,6 @@ table.table-framed-sides {
|
|
1048
1111
|
border-color: $table-border;
|
1049
1112
|
}
|
1050
1113
|
|
1051
|
-
table.table-grid-all th,
|
1052
|
-
table.table-grid-all td {
|
1053
|
-
border-width: 1px 1px 1px 1px;
|
1054
|
-
border-style: solid;
|
1055
|
-
border-color: $table-border;
|
1056
|
-
}
|
1057
|
-
|
1058
|
-
table.table-grid-all thead tr > *:last-child {
|
1059
|
-
border-right-width: 0;
|
1060
|
-
}
|
1061
|
-
|
1062
|
-
table.table-grid-all tbody tr:last-child > th,
|
1063
|
-
table.table-grid-all tbody tr:last-child > td {
|
1064
|
-
border-bottom-width: 0;
|
1065
|
-
}
|
1066
|
-
|
1067
1114
|
table.table-grid-rows tbody th,
|
1068
1115
|
table.table-grid-rows tbody td {
|
1069
1116
|
border-width: 1px 0 0 0;
|
@@ -1071,13 +1118,6 @@ table.table-grid-rows tbody td {
|
|
1071
1118
|
border-color: $table-border;
|
1072
1119
|
}
|
1073
1120
|
|
1074
|
-
table.table-grid-cols th,
|
1075
|
-
table.table-grid-cols td {
|
1076
|
-
border-width: 0 1px 0 0;
|
1077
|
-
border-style: solid;
|
1078
|
-
border-color: $table-border;
|
1079
|
-
}
|
1080
|
-
|
1081
1121
|
table.table-grid-cols thead th:last-child {
|
1082
1122
|
border-right-width: 0;
|
1083
1123
|
}
|
@@ -1086,28 +1126,19 @@ table.table-grid-cols tbody tr > td:last-child {
|
|
1086
1126
|
border-right-width: 0;
|
1087
1127
|
}
|
1088
1128
|
|
1089
|
-
|
1090
|
-
|
1091
|
-
display: inline-block;
|
1092
|
-
margin-right: 0.75em;
|
1093
|
-
}
|
1094
|
-
|
1095
|
-
hr.pagebreak {
|
1096
|
-
-webkit-column-break-after: always;
|
1097
|
-
page-break-after: always;
|
1098
|
-
border: none;
|
1099
|
-
margin: 0;
|
1129
|
+
table.table-grid-all thead tr > *:last-child {
|
1130
|
+
border-right-width: 0;
|
1100
1131
|
}
|
1101
1132
|
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1133
|
+
table.table-grid-all tbody tr:last-child > th,
|
1134
|
+
table.table-grid-all tbody tr:last-child > td {
|
1135
|
+
border-bottom-width: 0;
|
1105
1136
|
}
|
1106
1137
|
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1138
|
+
pre.pygments span.linenos,
|
1139
|
+
pre.rouge span.linenos {
|
1140
|
+
display: inline-block;
|
1141
|
+
margin-right: 0.75em;
|
1111
1142
|
}
|
1112
1143
|
|
1113
1144
|
img.headshot {
|
@@ -1125,27 +1156,6 @@ img.headshot {
|
|
1125
1156
|
page-break-before: always;
|
1126
1157
|
}
|
1127
1158
|
|
1128
|
-
div.footnotes {
|
1129
|
-
margin-top: 1em;
|
1130
|
-
}
|
1131
|
-
|
1132
|
-
div.footnotes p {
|
1133
|
-
font-size: 0.8rem;
|
1134
|
-
margin-top: 0.4rem;
|
1135
|
-
}
|
1136
|
-
|
1137
|
-
div.footnotes sup.noteref {
|
1138
|
-
font-weight: bold;
|
1139
|
-
font-size: 0.9em;
|
1140
|
-
}
|
1141
|
-
|
1142
|
-
/*div.footnotes sup.noteref a {*/
|
1143
|
-
sup.noteref a {
|
1144
|
-
/* Kindle wants to underline these links */
|
1145
|
-
text-decoration: none !important;
|
1146
|
-
background-image: none;
|
1147
|
-
}
|
1148
|
-
|
1149
1159
|
nav#toc ol {
|
1150
1160
|
list-style-type: none;
|
1151
1161
|
}
|