|
| 1 | +body { |
| 2 | + text-align: left; |
| 3 | +} |
| 4 | + |
| 5 | +/* |
| 6 | +* https://gist.github.com/killercup/5917178 |
| 7 | +*/ |
| 8 | + |
| 9 | +/* |
| 10 | + * I add this to html files generated with pandoc. |
| 11 | + */ |
| 12 | + |
| 13 | +html { |
| 14 | + font-size: 100%; |
| 15 | + overflow-y: scroll; |
| 16 | + -webkit-text-size-adjust: 100%; |
| 17 | + -ms-text-size-adjust: 100%; |
| 18 | +} |
| 19 | + |
| 20 | +body { |
| 21 | + color: #444; |
| 22 | + font-family: Georgia, Palatino, 'Palatino Linotype', Times, 'Times New Roman', serif; |
| 23 | + font-size: 12px; |
| 24 | + line-height: 1.7; |
| 25 | + padding: 1em; |
| 26 | + margin: auto; |
| 27 | + max-width: 42em; |
| 28 | + background: #fefefe; |
| 29 | +} |
| 30 | + |
| 31 | +a { |
| 32 | + color: #0645ad; |
| 33 | + text-decoration: none; |
| 34 | +} |
| 35 | + |
| 36 | +a:visited { |
| 37 | + color: #0b0080; |
| 38 | +} |
| 39 | + |
| 40 | +a:hover { |
| 41 | + color: #06e; |
| 42 | +} |
| 43 | + |
| 44 | +a:active { |
| 45 | + color: #faa700; |
| 46 | +} |
| 47 | + |
| 48 | +a:focus { |
| 49 | + outline: thin dotted; |
| 50 | +} |
| 51 | + |
| 52 | +*::-moz-selection { |
| 53 | + background: rgba(255, 255, 0, 0.3); |
| 54 | + color: #000; |
| 55 | +} |
| 56 | + |
| 57 | +*::selection { |
| 58 | + background: rgba(255, 255, 0, 0.3); |
| 59 | + color: #000; |
| 60 | +} |
| 61 | + |
| 62 | +a::-moz-selection { |
| 63 | + background: rgba(255, 255, 0, 0.3); |
| 64 | + color: #0645ad; |
| 65 | +} |
| 66 | + |
| 67 | +a::selection { |
| 68 | + background: rgba(255, 255, 0, 0.3); |
| 69 | + color: #0645ad; |
| 70 | +} |
| 71 | + |
| 72 | +p { |
| 73 | + margin: 1em 0; |
| 74 | +} |
| 75 | + |
| 76 | +img { |
| 77 | + max-width: 100%; |
| 78 | +} |
| 79 | + |
| 80 | +h1, h2, h3, h4, h5, h6 { |
| 81 | + color: #111; |
| 82 | + line-height: 125%; |
| 83 | + margin-top: 2em; |
| 84 | + font-weight: normal; |
| 85 | +} |
| 86 | + |
| 87 | +h4, h5, h6 { |
| 88 | + font-weight: bold; |
| 89 | +} |
| 90 | + |
| 91 | +h1 { |
| 92 | + font-size: 2.5em; |
| 93 | +} |
| 94 | + |
| 95 | +h2 { |
| 96 | + font-size: 2em; |
| 97 | +} |
| 98 | + |
| 99 | +h3 { |
| 100 | + font-size: 1.5em; |
| 101 | +} |
| 102 | + |
| 103 | +h4 { |
| 104 | + font-size: 1.2em; |
| 105 | +} |
| 106 | + |
| 107 | +h5 { |
| 108 | + font-size: 1em; |
| 109 | +} |
| 110 | + |
| 111 | +h6 { |
| 112 | + font-size: 0.9em; |
| 113 | +} |
| 114 | + |
| 115 | +blockquote { |
| 116 | + color: #666666; |
| 117 | + margin: 0; |
| 118 | + padding-left: 3em; |
| 119 | + border-left: 0.5em #EEE solid; |
| 120 | +} |
| 121 | + |
| 122 | +hr { |
| 123 | + display: block; |
| 124 | + height: 2px; |
| 125 | + border: 0; |
| 126 | + border-top: 1px solid #aaa; |
| 127 | + border-bottom: 1px solid #eee; |
| 128 | + margin: 1em 0; |
| 129 | + padding: 0; |
| 130 | +} |
| 131 | + |
| 132 | +pre, code, kbd, samp { |
| 133 | + color: #000; |
| 134 | + font-family: monospace, monospace; |
| 135 | + _font-family: 'courier new', monospace; |
| 136 | + font-size: 0.98em; |
| 137 | +} |
| 138 | + |
| 139 | +pre { |
| 140 | + white-space: pre; |
| 141 | + white-space: pre-wrap; |
| 142 | + word-wrap: break-word; |
| 143 | +} |
| 144 | + |
| 145 | +b, strong { |
| 146 | + font-weight: bold; |
| 147 | +} |
| 148 | + |
| 149 | +dfn { |
| 150 | + font-style: italic; |
| 151 | +} |
| 152 | + |
| 153 | +ins { |
| 154 | + background: #ff9; |
| 155 | + color: #000; |
| 156 | + text-decoration: none; |
| 157 | +} |
| 158 | + |
| 159 | +mark { |
| 160 | + background: #ff0; |
| 161 | + color: #000; |
| 162 | + font-style: italic; |
| 163 | + font-weight: bold; |
| 164 | +} |
| 165 | + |
| 166 | +sub, sup { |
| 167 | + font-size: 75%; |
| 168 | + line-height: 0; |
| 169 | + position: relative; |
| 170 | + vertical-align: baseline; |
| 171 | +} |
| 172 | + |
| 173 | +sup { |
| 174 | + top: -0.5em; |
| 175 | +} |
| 176 | + |
| 177 | +sub { |
| 178 | + bottom: -0.25em; |
| 179 | +} |
| 180 | + |
| 181 | +ul, ol { |
| 182 | + margin: 1em 0; |
| 183 | + padding: 0 0 0 2em; |
| 184 | +} |
| 185 | + |
| 186 | +li p:last-child { |
| 187 | + margin-bottom: 0; |
| 188 | +} |
| 189 | + |
| 190 | +ul ul, ol ol { |
| 191 | + margin: .3em 0; |
| 192 | +} |
| 193 | + |
| 194 | +dl { |
| 195 | + margin-bottom: 1em; |
| 196 | +} |
| 197 | + |
| 198 | +dt { |
| 199 | + font-weight: bold; |
| 200 | + margin-bottom: .8em; |
| 201 | +} |
| 202 | + |
| 203 | +dd { |
| 204 | + margin: 0 0 .8em 2em; |
| 205 | +} |
| 206 | + |
| 207 | +dd:last-child { |
| 208 | + margin-bottom: 0; |
| 209 | +} |
| 210 | + |
| 211 | +img { |
| 212 | + border: 0; |
| 213 | + -ms-interpolation-mode: bicubic; |
| 214 | + vertical-align: middle; |
| 215 | +} |
| 216 | + |
| 217 | +figure { |
| 218 | + display: block; |
| 219 | + text-align: center; |
| 220 | + margin: 1em 0; |
| 221 | +} |
| 222 | + |
| 223 | +figure img { |
| 224 | + border: none; |
| 225 | + margin: 0 auto; |
| 226 | +} |
| 227 | + |
| 228 | +figcaption { |
| 229 | + font-size: 0.8em; |
| 230 | + font-style: italic; |
| 231 | + margin: 0 0 .8em; |
| 232 | +} |
| 233 | + |
| 234 | +table { |
| 235 | + margin-bottom: 2em; |
| 236 | + border-bottom: 1px solid #ddd; |
| 237 | + border-right: 1px solid #ddd; |
| 238 | + border-spacing: 0; |
| 239 | + border-collapse: collapse; |
| 240 | +} |
| 241 | + |
| 242 | +table th { |
| 243 | + padding: .2em 1em; |
| 244 | + background-color: #eee; |
| 245 | + border-top: 1px solid #ddd; |
| 246 | + border-left: 1px solid #ddd; |
| 247 | +} |
| 248 | + |
| 249 | +table td { |
| 250 | + padding: .2em 1em; |
| 251 | + border-top: 1px solid #ddd; |
| 252 | + border-left: 1px solid #ddd; |
| 253 | + vertical-align: top; |
| 254 | +} |
| 255 | + |
| 256 | +.author { |
| 257 | + font-size: 1.2em; |
| 258 | + text-align: center; |
| 259 | +} |
| 260 | + |
| 261 | +@media only screen and (min-width: 480px) { |
| 262 | + body { |
| 263 | + font-size: 14px; |
| 264 | + } |
| 265 | +} |
| 266 | +@media only screen and (min-width: 768px) { |
| 267 | + body { |
| 268 | + font-size: 16px; |
| 269 | + } |
| 270 | +} |
| 271 | +@media print { |
| 272 | + * { |
| 273 | + background: transparent !important; |
| 274 | + color: black !important; |
| 275 | + filter: none !important; |
| 276 | + -ms-filter: none !important; |
| 277 | + } |
| 278 | + |
| 279 | + body { |
| 280 | + font-size: 12pt; |
| 281 | + max-width: 100%; |
| 282 | + } |
| 283 | + |
| 284 | + a, a:visited { |
| 285 | + text-decoration: underline; |
| 286 | + } |
| 287 | + |
| 288 | + hr { |
| 289 | + height: 1px; |
| 290 | + border: 0; |
| 291 | + border-bottom: 1px solid black; |
| 292 | + } |
| 293 | + |
| 294 | + a[href]:after { |
| 295 | + content: " (" attr(href) ")"; |
| 296 | + } |
| 297 | + |
| 298 | + abbr[title]:after { |
| 299 | + content: " (" attr(title) ")"; |
| 300 | + } |
| 301 | + |
| 302 | + .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { |
| 303 | + content: ""; |
| 304 | + } |
| 305 | + |
| 306 | + pre, blockquote { |
| 307 | + border: 1px solid #999; |
| 308 | + padding-right: 1em; |
| 309 | + page-break-inside: avoid; |
| 310 | + } |
| 311 | + |
| 312 | + tr, img { |
| 313 | + page-break-inside: avoid; |
| 314 | + } |
| 315 | + |
| 316 | + img { |
| 317 | + max-width: 100% !important; |
| 318 | + } |
| 319 | + |
| 320 | + @page :left { |
| 321 | + margin: 15mm 20mm 15mm 10mm; |
| 322 | +} |
| 323 | + |
| 324 | + @page :right { |
| 325 | + margin: 15mm 10mm 15mm 20mm; |
| 326 | +} |
| 327 | + |
| 328 | + p, h2, h3 { |
| 329 | + orphans: 3; |
| 330 | + widows: 3; |
| 331 | + } |
| 332 | + |
| 333 | + h2, h3 { |
| 334 | + page-break-after: avoid; |
| 335 | + } |
| 336 | +} |
0 commit comments