-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #102 from simonpl/master
New CSS for readthedocs
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* Print styles for readthedocs theme */ | ||
|
||
#print-site-banner { | ||
padding-top: 1em; | ||
} | ||
|
||
|
||
/* Table of contents, proper padding */ | ||
.print-page-toc-title { | ||
padding-bottom: 0em; | ||
margin-bottom: 1em; | ||
} | ||
/* Table of contents, compatible with dark theme */ | ||
#print-site-page ul.toc-section-line-border { | ||
border-left: 5px solid rgb(225, 225, 225); | ||
} | ||
|
||
@page { | ||
|
||
/* | ||
Note this CSS file is added to all MkDocs pages | ||
So this @page logic will affect print of all pages | ||
*/ | ||
|
||
size: a4 portrait; | ||
margin: 15mm 10mm 15mm 10mm; | ||
counter-increment: page; | ||
|
||
@bottom-center { | ||
content: string(chapter); | ||
} | ||
@bottom-right { | ||
content: 'Page ' counter(page); | ||
} | ||
} |