35 lines
1.3 KiB
CSS
35 lines
1.3 KiB
CSS
/* Preserve publisher alignment and inline fonts; apply Chinese prose indentation. */
|
|
.translation {
|
|
line-height: 1.6;
|
|
clear: both;
|
|
margin-top: 0.5em;
|
|
}
|
|
/* Units wrapped around loose text must remain visible before nested blocks. */
|
|
span.translation[data-translation-unit] {
|
|
display: block;
|
|
}
|
|
/* Latin drop-cap rules can enlarge the leading digit in e.g. “20 世纪”. */
|
|
p.translation::first-letter {
|
|
font-family: inherit !important;
|
|
font-size: 1em !important;
|
|
font-weight: inherit !important;
|
|
line-height: inherit !important;
|
|
color: inherit !important;
|
|
float: none !important;
|
|
}
|
|
/* Prose gets two Chinese character widths, including chapter-opening prose.
|
|
Headings, captions, quotations and note markers keep their own layout. */
|
|
.translation[data-translation-role="body"] {
|
|
text-indent: 2em !important;
|
|
}
|
|
/* A Chinese ordinal is one phrase, even when the publisher enlarged only 4.
|
|
Limit this reset to the translated number; keep the original Part/title design. */
|
|
.translation [data-translation-ordinal="true"] {
|
|
font-family: inherit !important;
|
|
font-size: inherit !important;
|
|
font-weight: inherit !important;
|
|
color: inherit !important;
|
|
line-height: inherit !important;
|
|
vertical-align: baseline !important;
|
|
}
|