Skip to content

Instantly share code, notes, and snippets.

@lostandfound
Last active August 29, 2015 14:08
Show Gist options
  • Save lostandfound/f96a1047b6830d493855 to your computer and use it in GitHub Desktop.
Save lostandfound/f96a1047b6830d493855 to your computer and use it in GitHub Desktop.
@charset "UTF-8";
/* でんでんコンバーター横書きデフォルト */
@namespace "http://www.w3.org/1999/xhtml";
@namespace epub "http://www.idpf.org/2007/ops";
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;
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 {
color: #0538b2;
}
a:hover {
color: #b2058e;
}
a:active {
color: #b27f05;
}
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;
}
}
.text-center {
text-align: center;
}
.text-right {
text-align: right;
}
@lostandfound
Copy link
Author

通常のCSSに中央寄せの.text-centerと右寄せの.text-rightクラスを追加しています。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment