Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.26 KB | None | 0 0
  1. /*
  2. * I add this to html files generated with pandoc.
  3. */
  4.  
  5. html {
  6. font-size: 100%;
  7. overflow-y: scroll;
  8. -webkit-text-size-adjust: 100%;
  9. -ms-text-size-adjust: 100%;
  10. }
  11.  
  12. body {
  13. color: #444;
  14. font-family: Georgia, Palatino, 'Palatino Linotype', Times, 'Times New Roman', serif;
  15. font-size: 12px;
  16. line-height: 1.7;
  17. padding: 1em;
  18. margin: auto;
  19. max-width: 42em;
  20. background: #fefefe;
  21. }
  22.  
  23. a {
  24. color: #0645ad;
  25. text-decoration: none;
  26. }
  27.  
  28. a:visited {
  29. color: #0b0080;
  30. }
  31.  
  32. a:hover {
  33. color: #06e;
  34. }
  35.  
  36. a:active {
  37. color: #faa700;
  38. }
  39.  
  40. a:focus {
  41. outline: thin dotted;
  42. }
  43.  
  44. *::-moz-selection {
  45. background: rgba(255, 255, 0, 0.3);
  46. color: #000;
  47. }
  48.  
  49. *::selection {
  50. background: rgba(255, 255, 0, 0.3);
  51. color: #000;
  52. }
  53.  
  54. a::-moz-selection {
  55. background: rgba(255, 255, 0, 0.3);
  56. color: #0645ad;
  57. }
  58.  
  59. a::selection {
  60. background: rgba(255, 255, 0, 0.3);
  61. color: #0645ad;
  62. }
  63.  
  64. p {
  65. margin: 1em 0;
  66. }
  67.  
  68. img {
  69. max-width: 100%;
  70. }
  71.  
  72. h1, h2, h3, h4, h5, h6 {
  73. color: #111;
  74. line-height: 125%;
  75. margin-top: 2em;
  76. font-weight: normal;
  77. }
  78.  
  79. h4, h5, h6 {
  80. font-weight: bold;
  81. }
  82.  
  83. h1 {
  84. font-size: 2.5em;
  85. }
  86.  
  87. h2 {
  88. font-size: 2em;
  89. }
  90.  
  91. h3 {
  92. font-size: 1.5em;
  93. }
  94.  
  95. h4 {
  96. font-size: 1.2em;
  97. }
  98.  
  99. h5 {
  100. font-size: 1em;
  101. }
  102.  
  103. h6 {
  104. font-size: 0.9em;
  105. }
  106.  
  107. blockquote {
  108. background-color: #eae4f0;
  109. color: #666666;
  110. margin: 0;
  111. padding-left: 3em;
  112. border-left: 0.5em #BFD9E6 solid;
  113. }
  114.  
  115. hr {
  116. display: block;
  117. height: 2px;
  118. border: 0;
  119. border-top: 1px solid #aaa;
  120. border-bottom: 1px solid #eee;
  121. margin: 1em 0;
  122. padding: 0;
  123. }
  124.  
  125. pre, code, kbd, samp {
  126. background-color: #e9e9e9;
  127. color: #000;
  128. font-family: monospace, monospace;
  129. _font-family: 'courier new', monospace;
  130. font-size: 0.98em;
  131. }
  132.  
  133. pre {
  134. white-space: pre;
  135. white-space: pre-wrap;
  136. word-wrap: break-word;
  137. padding-left: 20px;
  138. border-radius: 5px;
  139. }
  140.  
  141. b, strong {
  142. font-weight: bold;
  143. }
  144.  
  145. dfn {
  146. font-style: italic;
  147. }
  148.  
  149. ins {
  150. background: #ff9;
  151. color: #000;
  152. text-decoration: none;
  153. }
  154.  
  155. mark {
  156. background: #ff0;
  157. color: #000;
  158. font-style: italic;
  159. font-weight: bold;
  160. }
  161.  
  162. sub, sup {
  163. font-size: 75%;
  164. line-height: 0;
  165. position: relative;
  166. vertical-align: baseline;
  167. }
  168.  
  169. sup {
  170. top: -0.5em;
  171. }
  172.  
  173. sub {
  174. bottom: -0.25em;
  175. }
  176.  
  177. ul, ol {
  178. margin: 1em 0;
  179. padding: 0 0 0 2em;
  180. }
  181.  
  182. li p:last-child {
  183. margin-bottom: 0;
  184. }
  185.  
  186. ul ul, ol ol {
  187. margin: .3em 0;
  188. }
  189.  
  190. dl {
  191. margin-bottom: 1em;
  192. }
  193.  
  194. dt {
  195. font-weight: bold;
  196. margin-bottom: .8em;
  197. }
  198.  
  199. dd {
  200. margin: 0 0 .8em 2em;
  201. }
  202.  
  203. dd:last-child {
  204. margin-bottom: 0;
  205. }
  206.  
  207. img {
  208. border: 0;
  209. -ms-interpolation-mode: bicubic;
  210. vertical-align: middle;
  211. }
  212.  
  213. figure {
  214. display: block;
  215. text-align: center;
  216. margin: 1em 0;
  217. }
  218.  
  219. figure img {
  220. border: none;
  221. margin: 0 auto;
  222. }
  223.  
  224. figcaption {
  225. font-size: 0.8em;
  226. font-style: italic;
  227. margin: 0 0 .8em;
  228. }
  229.  
  230. table {
  231. margin-bottom: 2em;
  232. border-bottom: 1px solid #ddd;
  233. border-right: 1px solid #ddd;
  234. border-spacing: 0;
  235. border-collapse: collapse;
  236. }
  237.  
  238. table th {
  239. padding: .2em 1em;
  240. background-color: #eee;
  241. border-top: 1px solid #ddd;
  242. border-left: 1px solid #ddd;
  243. }
  244.  
  245. table td {
  246. padding: .2em 1em;
  247. border-top: 1px solid #ddd;
  248. border-left: 1px solid #ddd;
  249. vertical-align: top;
  250. }
  251.  
  252. tr:nth-child(even) {
  253. background-color: #fafcf3;
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement