pandoc.css (5047B)
1 /***************************************************************************/ 2 /* My Stylesheet for Pandoc generated files */ 3 /* Copyright (c) 2015 Sebastian Wiesner <swiesner@lunaryorn.com> */ 4 /* */ 5 /* Permission is hereby granted, free of charge, to any person obtaining a */ 6 /* copy of this software and associated documentation files (the */ 7 /* "Software"), to deal in the Software without restriction, including */ 8 /* without limitation the rights to use, copy, modify, merge, publish, */ 9 /* distribute, sublicense, and/or sell copies of the Software, and to */ 10 /* permit persons to whom the Software is furnished to do so, subject to */ 11 /* the following conditions: */ 12 /* */ 13 /* The above copyright notice and this permission notice shall be included */ 14 /* in all copies or substantial portions of the Software. */ 15 /* */ 16 /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS */ 17 /* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ 18 /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND */ 19 /* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE */ 20 /* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION */ 21 /* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION */ 22 /* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ 23 /***************************************************************************/ 24 25 body { 26 font-family: "Source Sans Pro", sans-serif; 27 font-size: 16px; 28 line-height: 1.35; 29 color: #444; 30 font-feature-settings: "onum", "kern", "liga", "clig", "dlig", "calt"; 31 -webkit-font-feature-settings: "onum", "kern", "liga", "clig", "dlig", "calt"; 32 margin: 0 auto; 33 padding: 15px; 34 margin-bottom: 1.35em; 35 word-wrap: break-word; 36 } 37 38 p { 39 margin: 0 0; 40 text-indent: 1.5em; 41 text-align: left; 42 } 43 44 p:only-child { 45 text-indent: 0; 46 } 47 48 strong { 49 font-weight: 600; 50 } 51 52 ul, ol { 53 margin: 1em 4em; 54 padding: 0; 55 } 56 57 ol { 58 list-style-type: decimal; 59 } 60 61 ul { 62 list-style-type: disc; 63 } 64 65 small, sup { 66 font-size: 0.86em; 67 } 68 69 h1 small, h2 small, h3 small, h4 small { 70 font-weight: normal; 71 font-size: 0.65em; 72 line-height: 1; 73 color: #777; 74 } 75 76 blockquote { 77 margin: 1.2em 0; 78 padding: 0 2em; 79 line-height: 1.25; 80 font-size: 0.9em; 81 border-left: 5px solid #EEE; 82 } 83 84 a { 85 color: #333; 86 text-decoration: underline; 87 } 88 89 a:hover { 90 background-color: #fbf3f3; 91 border-radius: 4px; 92 transition-property: background; 93 transition-duration: 0.2s; 94 } 95 96 .footnoteRef { /* Use body font for footnotes */ 97 font-size: 1rem; 98 text-decoration: none; 99 } 100 101 h1, h2, h3, h4 { /* Text headings*/ 102 font-family: "Source Sans Pro", sans-serif; 103 font-weight: 600; 104 line-height: 1; 105 color: #222; 106 margin-top: 2em; 107 margin-bottom: 0.8em; 108 hyphens: none; 109 font-feature-settings: "salt", "lnum"; 110 -webkit-font-feature-settings: "salt", "lnum"; 111 } 112 113 h1 { 114 font-size: 1.2em; 115 } 116 117 h2 { 118 font-size: 1.1em; 119 } 120 121 h3 { 122 font-size: 1em; 123 } 124 125 .header-section-number { 126 margin-right: 0.5em; 127 } 128 129 .header-section-number:after { 130 content: "." 131 } 132 133 hr { 134 border-width: 1px; 135 border-color: #CCC; 136 border-style: none none solid; 137 margin: 1.35em 0; 138 } 139 140 /* Images and figures */ 141 img { 142 max-width: 100%; 143 max-height: 100%; 144 } 145 146 figure { 147 margin: 2em; 148 } 149 150 figcaption { 151 margin-top: 0.8em; 152 text-align: center; 153 font-size: 0.9em; 154 } 155 156 figcaption:before { 157 content: "Figure."; 158 font-weight: 700; 159 margin-right: 0.5em; 160 } 161 162 /* Code and pre-formatted text */ 163 kbd, code { 164 font-family: "Source Code Pro", monospace; 165 font-size: 0.83em; 166 } 167 168 kbd { 169 border: 1px solid #CCC; 170 border-radius: 4px; 171 box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 0 0 2px #FFF inset; 172 padding: 0 4px; 173 } 174 175 code { 176 padding: 0.11em 0.22em; 177 } 178 179 pre { 180 overflow: auto; 181 padding: 10px; 182 border: 1px solid #CCC; 183 border-radius: 4px; 184 } 185 186 pre:hover { /* Auto-expand pre on hover */ 187 position: relative; 188 width: 900px; 189 z-index: 99; 190 } 191 192 pre code { 193 padding: 0; 194 } 195 196 .title { /* Page title */ 197 font-size: 1.5rem; 198 font-weight: 700; 199 margin-bottom: 0.2em; 200 margin-top: 0; 201 } 202 203 nav { 204 margin: 1em; 205 font-feature-settings: "salt", "lnum"; 206 -webkit-font-feature-settings: "salt", "lnum"; 207 } 208 209 nav a { 210 text-decoration: none; 211 } 212 213 nav ul { 214 list-style: none inside disc; 215 margin: 0; 216 padding: 0 0.5em; 217 } 218 219 header { 220 border-width: 1px; 221 border-color: #CCC; 222 border-style: none none solid; 223 margin: 1.35em 0; 224 } 225 226 227 @media print { 228 body { 229 width: auto; 230 height: auto; 231 font-size: 10pt; 232 } 233 } 234 235 @media screen and (min-width: 650px) { /* Larger devices */ 236 body { 237 width: 600px; 238 } 239 } 240 241 @page 242 { 243 size: A4; 244 margin: 24.75mm 17.50mm; 245 }