mirror of
https://github.com/lise-henry/crowbook
synced 2024-05-28 01:36:17 +02:00
220 lines
3.7 KiB
CSS
220 lines
3.7 KiB
CSS
body {
|
||
font-family: "Linux Libertine", "Georgia", serif;
|
||
text-align: justify;
|
||
font-size: 100%;
|
||
}
|
||
|
||
p {
|
||
text-indent: 1.25em;
|
||
margin:0;
|
||
hyphens: auto;
|
||
}
|
||
|
||
blockquote {
|
||
margin: 1em;
|
||
font-style: italic;
|
||
}
|
||
code {
|
||
font-size: 80%;
|
||
font-family: "Linux Libertine Mono", monospace;
|
||
background-color: #F0F0F0;
|
||
}
|
||
pre {
|
||
font-family: "Linux Libertine Mono", monospace;
|
||
margin: 1em;
|
||
padding-top: 0;
|
||
background-color: #F0F0F0;
|
||
white-space: pre-wrap;
|
||
word-wrap: break-word;
|
||
}
|
||
/* Try to disable hyphenation in titles */
|
||
h1, h2, h3, h4, h5, h5 {
|
||
adobe-hyphenate: none;
|
||
-ms-hyphens: none; /* Trident (Windows) */
|
||
-moz-hyphens: none; /* Gecko (Firefox) */
|
||
-webkit-hyphens: none; /* Webkit */
|
||
-epub-hyphens: none; /* EPUB 3 */
|
||
hyphens: none; /* Futur standard */
|
||
}
|
||
|
||
h1, h2, h3, h4, h5, h6 {
|
||
text-align: left;
|
||
font-family: Linux Biolinum, sans-serif;
|
||
font-variant: small-caps;
|
||
}
|
||
|
||
/* Title of a part */
|
||
h1.part {
|
||
font-size: 250%;
|
||
text-align: center;
|
||
}
|
||
|
||
/* The `Part X` section of a part */
|
||
h2.part {
|
||
font-size: 175%;
|
||
text-align: center;
|
||
}
|
||
|
||
/* The "Chapter X" section of a chapter */
|
||
span.chapter-header {
|
||
font-size: 75%;
|
||
}
|
||
|
||
/* Title of the book */
|
||
h1.title {
|
||
text-align: center;
|
||
font-size: 300%;
|
||
}
|
||
/* Author */
|
||
h2.author {
|
||
text-align: right;
|
||
font-size: 200%;
|
||
}
|
||
|
||
/* Subtitle */
|
||
h2.subtitle {
|
||
text-align: center;
|
||
font-size: 200%;
|
||
}
|
||
|
||
/* When toc is displayed inlined */
|
||
#toc ol, #toc ul {
|
||
padding: 0;
|
||
margin-left: 1em;
|
||
}
|
||
#toc li {
|
||
list-style-type: none;
|
||
margin: 0; padding: 0;
|
||
}
|
||
|
||
#toc li:before {
|
||
content: none;
|
||
}
|
||
|
||
#cover img {
|
||
width: 100%;
|
||
max-height: 100%;
|
||
}
|
||
|
||
.image {
|
||
margin: auto;
|
||
width: 80%;
|
||
}
|
||
|
||
.image img {
|
||
width: 100%;
|
||
max-height: 100%;
|
||
}
|
||
|
||
.rule {
|
||
text-align: center !important;
|
||
margin-top: 1em;
|
||
margin-bottom: 1em;
|
||
font-weight: bold;
|
||
page-break-inside: avoid;
|
||
break-inside: avoid;
|
||
page-break-after: avoid;
|
||
break-after: avoid;
|
||
}
|
||
|
||
/* The number of the note in an expanded footnote (e.g. [3]) */
|
||
.note-number {
|
||
font-weight: bold;
|
||
margin-right: 1em;
|
||
}
|
||
|
||
td.note-number {
|
||
vertical-align: top;
|
||
}
|
||
|
||
/* When footnotes (try to) be diplayed as margin notes */
|
||
.sidenote {
|
||
display: block;
|
||
float: right;
|
||
width: 30%;
|
||
border: 1px solid black;
|
||
margin: 1em;
|
||
padding: .5em;
|
||
margin-right: -1.5em;
|
||
}
|
||
|
||
.sidenote .note-number {
|
||
float: left;
|
||
}
|
||
|
||
/* The div class displaying notes at the end of a chapter */
|
||
div.notes {
|
||
text-align: justify;
|
||
border-top: thin dashed black;
|
||
margin-top: 1em;
|
||
}
|
||
|
||
table.notes {
|
||
border-collapse: collapse;
|
||
border-style: hidden;
|
||
}
|
||
|
||
table.notes tr td {
|
||
margin-left: 1em;
|
||
margin-right: 1em;
|
||
}
|
||
|
||
table.notes tr td p {
|
||
text-indent: 0;
|
||
}
|
||
|
||
/* Every markdown table is included in a <div class = "table"> */
|
||
.table {
|
||
margin: 1em;
|
||
}
|
||
|
||
.table table {
|
||
width: 80%;
|
||
margin: 0 auto;
|
||
border-style: solid;
|
||
border-width: thin;
|
||
border-color: black;
|
||
border-collapse: collapse;
|
||
}
|
||
|
||
.table table th, .table table td {
|
||
border-style: solid;
|
||
border-width: 1px;
|
||
text-align: center;
|
||
}
|
||
|
||
.table table th {
|
||
font-weight: bold;
|
||
font-variant: small-caps;
|
||
}
|
||
|
||
{% if lang | eq: "fr" %}
|
||
/* Make list displays '–' instead of bullets */
|
||
ul li {
|
||
list-style-type: '–';
|
||
padding-left: .5em;
|
||
}
|
||
{% endif %}
|
||
|
||
span.initial {
|
||
float: left;
|
||
font-size: 285%;
|
||
font-weight: bold;
|
||
margin-right: 0.05em;
|
||
line-height: 0.8em;
|
||
}
|
||
|
||
p.first-para {
|
||
text-indent: 0;
|
||
}
|
||
|
||
/* Use this for escape narrow space so it is non-breaking */
|
||
.nnbsp {
|
||
/* white-space: nowrap;*/
|
||
word-spacing: -0.13em;
|
||
/* Following necessary for Kobo EPUB3 reader??? */
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
|
||
{{additional_code}} |