report.css 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <style>
  2. /* ---
  3. * article.css - A beautiful css to complement Pandoc's own
  4. *
  5. * Provides:
  6. * - Article-style title and headers
  7. * - Images and tables centered
  8. * - New `<aside>` env (right side)
  9. *
  10. * Ramon Solano <ramon.solano@gmail.com>
  11. *
  12. * usage:
  13. * pandoc ... -H article.css ...
  14. *
  15. * V1.0, Jul/2021
  16. * ---
  17. */
  18. body {
  19. max-width: 40em;
  20. word-wrap: break-word;
  21. }
  22. header p {
  23. text-align: center;
  24. }
  25. header p.subtitle {
  26. font-size: 1.2em;
  27. line-height: 1.1em;
  28. margin: 0.5em 2em 2em;
  29. /*
  30. margin-top: 0.5em;
  31. margin-bottom: 2em;
  32. */
  33. }
  34. header p.author {
  35. font-size: 1.1em;
  36. line-height: 0.5em;
  37. font-variant-caps: small-caps;
  38. }
  39. header p.date {
  40. font-size: 0.95em;
  41. margin: 3em;
  42. }
  43. header h1 {
  44. line-height: 1em;
  45. margin-bottom: 0em;
  46. }
  47. /* abstract header */
  48. h3:first-child, #abstract {
  49. font-size: 1.2em;
  50. text-align: center;
  51. margin: 0.5em ;
  52. }
  53. /* abstract paragraph */
  54. h3:first-child + p, #abstract + p {
  55. font-size: 0.9em;
  56. margin: 0em 4em;
  57. margin-bottom: 3em;
  58. }
  59. h1 {
  60. font-size: 1.6em;
  61. }
  62. h2 {
  63. font-size: 1.3em;
  64. }
  65. h3 {
  66. font-size: 1.1em;
  67. font-style: italic;
  68. }
  69. h1, h2, h3, h4 {
  70. margin-top: 0.95em;
  71. margin-bottom: 0.80em;
  72. }
  73. /* Justify and hyphenate all paragraphs */
  74. p {
  75. text-align: justify;
  76. }
  77. /* center tables */
  78. table {
  79. display: table;
  80. width: auto;
  81. margin-left: auto;
  82. margin-right: auto;
  83. }
  84. table caption {
  85. font-size: 0.95em;
  86. }
  87. /* centered figures */
  88. figure {
  89. text-align: center;
  90. margin-top: 1.5em;
  91. margin-bottom: 1.5em;
  92. }
  93. figcaption {
  94. font-size: 0.95em;
  95. }
  96. /* lists: increase left margins */
  97. ul, ol {
  98. padding: 0 0 0 3em;
  99. }
  100. /* new style: objects (figures, text) right side */
  101. aside {
  102. font-size: 0.9em;
  103. width: 33%;
  104. padding: 0 0 0 .8em;
  105. margin: 1em 0 1em 1em;
  106. float: right;
  107. }
  108. aside > *:first-child {
  109. margin-top: 0;
  110. }
  111. aside > *:last-child {
  112. margin-bottom: 0;
  113. }
  114. pre {
  115. font-size: 0.87em;
  116. line-height: 1.2em;
  117. border: 1px solid #cccccc;
  118. background: #f5f2f0;
  119. padding: .7em;
  120. }
  121. :not(pre) > code[class*="sourceCode"],
  122. pre[class*="sourceCode"] {
  123. background: #f5f2f0;
  124. }
  125. code {
  126. color: #92000c;
  127. font-size: .9em;
  128. }
  129. pre code {
  130. color: unset;
  131. }
  132. a {
  133. color: #0050a0;
  134. }
  135. </style>