summaryrefslogtreecommitdiff
path: root/docs/_theme/djangodocs-epub/static/epub.css
diff options
context:
space:
mode:
Diffstat (limited to 'docs/_theme/djangodocs-epub/static/epub.css')
-rw-r--r--docs/_theme/djangodocs-epub/static/epub.css69
1 files changed, 52 insertions, 17 deletions
diff --git a/docs/_theme/djangodocs-epub/static/epub.css b/docs/_theme/djangodocs-epub/static/epub.css
index 7db68b53fb..397d1655a4 100644
--- a/docs/_theme/djangodocs-epub/static/epub.css
+++ b/docs/_theme/djangodocs-epub/static/epub.css
@@ -1,25 +1,43 @@
-h1 { margin-top: 0; }
+h1 {
+ margin-top: 0;
+}
/* Keep lists a bit narrow to maximize page estate regarding width. */
-ol, ul {
+ol,
+ul {
margin: 0;
padding: 0 0 0 1.3em;
}
/* Images should never exceed the width of the page. */
-img { max-width: 100%; }
+img {
+ max-width: 100%;
+}
/* Don't display URL after links, this is not print. */
-.link-target { display: none; }
+.link-target {
+ display: none;
+}
/* This is the front cover page of the book. */
-.epub-cover { text-align: center; }
-.epub-cover h1 { margin: 4em 0 0 0; }
-.epub-cover h2 { margin: 1em 0; }
-.epub-cover h3 { margin: 3em 0 2em 0; }
+.epub-cover {
+ text-align: center;
+}
+.epub-cover h1 {
+ margin: 4em 0 0 0;
+}
+.epub-cover h2 {
+ margin: 1em 0;
+}
+.epub-cover h3 {
+ margin: 3em 0 2em 0;
+}
/* Code examples should never exceed the width of the page, so wrap instead. */
-pre, span.pre { white-space: pre-wrap; }
+pre,
+span.pre {
+ white-space: pre-wrap;
+}
pre {
background-color: #f6f6f6;
@@ -40,12 +58,18 @@ pre {
margin-top: 0;
}
-a:link, a:visited { color: #396623; }
-a:hover { color: #1d3311; }
+a:link,
+a:visited {
+ color: #396623;
+}
+a:hover {
+ color: #1d3311;
+}
/* Use special styled note boxes from the default theme, but with the left side
fitted after the icon, to allow text resizing with breaking. */
-.note, .admonition {
+.note,
+.admonition {
background-position: 9px 0.8em;
background-repeat: no-repeat;
padding: 0.8em 1em 0.8em 65px;
@@ -53,14 +77,25 @@ fitted after the icon, to allow text resizing with breaking. */
border: 0.01em solid black;
}
-.note, .admonition { background-image: url(docicons-note.png); }
-div.admonition-philosophy { background-image: url(docicons-philosophy.png); }
-div.admonition-behind-the-scenes { background-image: url(docicons-behindscenes.png); }
-.admonition.warning { background-image: url(docicons-warning.png); }
+.note,
+.admonition {
+ background-image: url(docicons-note.png);
+}
+div.admonition-philosophy {
+ background-image: url(docicons-philosophy.png);
+}
+div.admonition-behind-the-scenes {
+ background-image: url(docicons-behindscenes.png);
+}
+.admonition.warning {
+ background-image: url(docicons-warning.png);
+}
.admonition-title {
font-weight: bold;
margin: 0;
}
-.admonition .last { margin-bottom: 0; }
+.admonition .last {
+ margin-bottom: 0;
+}