Merge branch 'release/20200525.01'
[themediocreprogrammer.git] / Pandoc / css / style.css
1 /************** Styling Notes 
2  * Nook has issues with Margin settings, so we default to padding instead since it works as expected across all devices.
3  * Nook has issues with 'shorthand' margin/padding rules (T R B L) so we use the full version (margin-top, etc) instead.
4  * Other notes will be added as needed
5  */
6
7 /* Set our 'sane' defaults */
8 html, body, div, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dt, dd, p, pre, table, th, td, tr { margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0; }
9
10 /* Make sure all paragraphs are 'justified' */
11 p { text-align: justify; }
12
13 /* Don't indent the first paragraph of a chapter */
14 p+p { text-indent: 1.5em; }
15
16 /* Center but don't indent */
17 p+p.center { text-indent: 0; text-align: center; }
18
19 /* center */
20 .center { text-indent: 0; text-align: center; }
21
22 /* Center all of our headings */
23 h1, h2, h3, h4, h6 { text-align: center; }
24
25 h5 { text-align: center; font-weight: normal; font-size: medium; }
26
27 /* Indent our lists */
28 li { text-align: left; padding-left: 4em; }
29
30 /* Add a top margin for good spacing */
31 .top-margin { padding-top: 3em; }
32
33 /* Remove the numbers from the Pandoc generated ToC */
34 ol.toc { list-style-type:none; }
35
36 /* Style our Horizontal Rules */
37 hr { border: 0; height: 1px; background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0)); }
38
39 /* Style our 'tables'
40  * this is a dirty hack since we're writing fiction and probably not using tables
41  * but I'm using Pandoc's table markdown syntax to center certain text, like songs */
42 table {margin-left: auto; margin-right: auto; margin-top: 10px;}