1
0
mirror of https://github.com/lise-henry/crowbook synced 2024-11-18 00:13:55 +01:00
crowbook/templates/epub/stylesheet.css
Elisabeth Henry b58b73eb02 Render CSS differently according to lang
This is currently only used to display "–" for list items if lang is
set to "fr", and to default bullets otherwise, but it is now possible
to add more variations.
2016-03-03 17:57:38 +01:00

151 lines
2.6 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

body {
font-family: "Linux Libertine", "Georgia", serif;
margin-left: 2em;
margin-right: 2em;
margin-top: 1em;
margin-bottom: 1em;
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 the book */
h1.title {
text-align: center;
font-size: 300%;
}
/* Author */
h2.author {
text-align: right;
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%;
}
.rule {
text-align: center;
margin-top: 1em;
margin-bottom: 1em;
font-weight: bold;
}
/* The number of the note in an expanded footnote (e.g. [3]) */
.note-number {
font-weight: bold;
margin-right: 1em;
}
/* 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 */
.notes {
text-align: justify;
border: none;
}
table.notes td {
margin-left: 1em;
margin-right: 1em;
}
/* Every markdown table is included in a <div class = "table"> */
.table {
margin: 1em;
}
.table table {
width: 60%;
margin: 0 auto;
border-style: solid 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;
}
{{#fr}}
/* Make list displays '' instead of puces */
ul li {
list-style-type: none;
}
ul li:before {
content: " ";
}
{{/fr}}