でんでんコンバーターの横書き用CSS
スタイルを変えたい場合は、このファイルをベースに変更するのが吉。
全体のフォントを変えたいときは、bodyl{}内のfont-familyを
横書きは通常だと、ゴシック体なので、明朝体にしたい場合は、font-family: serif,sans-serif;とすればOK
見出しのフォントを変えたいときは、h1, h2, h3, h4, h5, h6 {}内のfont-familyを変更すればOK
各種見出しのサイズ変更は、h2{}などの、font-sizeを変更すればOK
最新版は以下よりDL可能
code:style.css
@charset "UTF-8";
/* でんでんコンバーター横書きデフォルト */
html {
-epub-writing-mode: horizontal-tb;
}
body {
text-align: justify;
text-justify: inter-ideograph;
font-family: sans-serif, serif;/* 全体のフォントはこちら */
}
h1, h2, h3, h4, h5, h6 {
font-family: inherit;/* 見出しのフォントはこちら。通常ではbodyのフォントが引き継がれます */
font-weight: bold;
color: inherit;
}
h1 {
font-size: 2em;
margin-top: 0.625em;
margin-bottom: 0.625em;
}
h2 {
font-size: 1.5em;
margin-top: 0.83333em;
margin-bottom: 0.83333em;
}
h3 {
font-size: 1.125em;
margin-top: 1.11111em;
margin-bottom: 1.11111em;
}
h4 {
font-size: 1em;
margin-top: 1.25em;
margin-bottom: 1.25em;
}
h5 {
font-size: 0.875em;
margin-top: 1.42857em;
margin-bottom: 1.42857em;
}
h6 {
font-size: 0.75em;
margin-top: 1.66667em;
margin-bottom: 1.66667em;
}
p {
margin-top: 1.25em;
margin-bottom: 1.25em;
line-height: 1.8;
}
p, li, dt, dd {
line-height: 1.8;
}
b, strong, dt, caption, figcaption, th {
font-family: sans-serif, serif;
}
blockquote, ul,
fieldset, form,
ol, dl, menu {
margin-top: 1.25em;
margin-bottom: 1.25em;
padding: 0;
}
blockquote blockquote, blockquote ol, blockquote ul, blockquote dl, ol blockquote, ol ol, ol ul, ol dl, ul blockquote, ul ol, ul ul, ul dl, dl blockquote, dl ol, dl ul, dl dl {
margin-top: 0em;
margin-bottom: 0em;
}
ol, ul, menu, dd {
margin-left: 2em;
}
a {
}
a:hover {
}
a:active {
}
pre {
white-space: pre-wrap;
}
img {
width: auto;
height: auto;
max-width: 100%;
max-height: 100%;
}
hr {
margin-top: 1.25em;
margin-bottom: 1.25em;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
rt {
font-family: serif, sans-serif;
}
.tcy {
-epub-text-combine: horizontal;
}
.sideways {
-epub-text-orientation: sideways;
}
.upright {
/* -epub-text-orientation: upright; */
-epub-text-combine: horizontal;
}
.pagenum {
color: gray;
font-size: 0.8em;
}
.footnotes hr {
margin-top: 1.25em;
margin-bottom: 1.25em;
}
.footnotes ol {
margin-left: 2em;
}
.footnotes li {
font-size: 0.875em;
}
a.noteref {
display: inline-block;
border: none;
font-size: 0.75em;
line-height: 1;
vertical-align: super;
-epub-text-combine: horizontal;
}
a.noteref:before {
content: "[";
}
a.noteref:after {
content: "]";
}
@media print {
h1 {
page-break-before: always;
}
h1, h2, h3,
h4, h5, h6 {
page-break-after: avoid;
}
ul, ol, dl {
page-break-before: avoid;
}
}