You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

252 lines
8.7 KiB

9 years ago
  1. @font-face { font-family: ETBembo;
  2. src: url("ETBembo-RomanLF.ttf"); }
  3. @font-face { font-family: ETBembo;
  4. src: url("ETBembo-DisplayItalic.ttf");
  5. font-weight: normal;
  6. font-style: italic; }
  7. html { font-size: 15px; }
  8. body { width: 87.5%;
  9. margin-left: auto;
  10. margin-right: auto;
  11. padding-left: 12.5%;
  12. font-family: ETBembo, Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
  13. background-color: #fffff8;
  14. color: #111;
  15. max-width: 1400px;
  16. counter-reset: sidenote-counter; }
  17. h1 { font-weight: 400;
  18. margin-top: 4rem;
  19. margin-bottom: 1.5rem;
  20. font-size: 3.2rem;
  21. line-height: 1; }
  22. h2 { font-style: italic;
  23. font-weight: 400;
  24. margin-top: 2.1rem;
  25. margin-bottom: 0;
  26. font-size: 2.2rem;
  27. line-height: 1; }
  28. h3 { font-style: italic;
  29. font-weight: 400;
  30. font-size: 1.7rem;
  31. margin-top: 2rem;
  32. margin-bottom: 0;
  33. line-height: 1; }
  34. p.subtitle { font-style: italic;
  35. margin-top: 1rem;
  36. margin-bottom: 1rem;
  37. font-size: 1.8rem;
  38. display: block;
  39. line-height: 1; }
  40. table { width: 98%;
  41. clear: left;
  42. text-align: right;
  43. font-size: 1.2rem;
  44. line-height: 1.4;
  45. margin: 1.4rem 1%;
  46. border-collapse: separate;
  47. border-spacing: 0 5px;
  48. -webkit-font-feature-settings: 'tnum'; /* This is technically redundant */
  49. -moz-font-feature-settings: 'tnum';
  50. -ms-font-feature-settings: 'tnum'; }
  51. thead th { border-bottom: 1px solid #AAAAAA;
  52. font-weight: 400;
  53. border-collapse: separate;
  54. border-spacing: 5px 5px; }
  55. td.text { text-align: left; }
  56. span.table-label { padding-top: 8px; } /* to maintain height relative to table header row */
  57. table.booktabs { width: auto;
  58. margin: 0 auto;
  59. border-spacing: 0px;
  60. border-top: 2px solid #333333;
  61. border-bottom: 2px solid #333333; }
  62. .booktabs th { border-bottom: 1px solid #333333;
  63. padding: 0.65ex 0.5em 0.4ex 0.5em;
  64. font-weight: normal;
  65. text-align: center; }
  66. .booktabs th.cmid { border-bottom: 1px solid #666666; }
  67. .booktabs th.nocmid { border-bottom: none; }
  68. .booktabs tbody tr:first-child td { padding-top: 0.65ex; } /* add space between thead row and tbody */
  69. .booktabs td { padding-left: 0.5em;
  70. padding-right: 0.5em;
  71. text-align: left; }
  72. .booktabs caption { font-size: 90%;
  73. text-align: left;
  74. width: auto;
  75. margin-left: auto;
  76. margin-right: auto;
  77. margin-top: 1ex;
  78. caption-side: top; }
  79. .booktabs tbody tr td.l { text-align: left !important; }
  80. .booktabs tbody tr td.c { text-align: center !important; }
  81. .booktabs tbody tr td.r { text-align: right !important; }
  82. article { position: relative;
  83. padding: 5rem 0rem; }
  84. section { padding-top: 1rem;
  85. padding-bottom: 1rem; }
  86. p, ol, ul { font-size: 1.4rem; }
  87. p { line-height: 2rem;
  88. margin-top: 1.4rem;
  89. margin-bottom: 1.4rem;
  90. padding-right: 0;
  91. vertical-align: baseline; }
  92. blockquote p { font-size: 1.1rem;
  93. width: 50%; }
  94. blockquote footer { width: 50%;
  95. text-align: right; }
  96. ul { width: 45%;
  97. -webkit-padding-start: 5%;
  98. -webkit-padding-end: 5%;
  99. list-style-type: none; }
  100. li { padding: 0.5rem 0; }
  101. figure { max-width: 55%;
  102. -webkit-margin-start: 0;
  103. -webkit-margin-end: 0;
  104. margin-bottom: 3em; }
  105. figcaption { float: right;
  106. clear: right;
  107. margin-right: -48%;
  108. margin-top: 0;
  109. margin-bottom: 0;
  110. font-size: 1.0rem;
  111. line-height: 1.6;
  112. vertical-align: baseline;
  113. position: relative; }
  114. figure.fullwidth figcaption { margin-right: 24%; }
  115. a { color: #111;
  116. text-decoration: none;
  117. border-bottom: 1px solid #777;
  118. padding-bottom: 1px; }
  119. img { max-width: 100%; }
  120. .sidenote, .marginnote { float: right;
  121. clear: right;
  122. margin-right: -60%;
  123. width: 50%;
  124. margin-top: 0;
  125. margin-bottom: 0;
  126. font-size: 1.0rem;
  127. line-height: 1.6;
  128. vertical-align: baseline;
  129. position: relative; }
  130. .table-caption { float:right;
  131. clear:right;
  132. margin-right: -60%;
  133. width: 50%;
  134. margin-top: 0;
  135. margin-bottom: 0;
  136. font-size: 1.0rem;
  137. line-height: 1.6; }
  138. .sidenote-number { counter-increment: sidenote-counter; }
  139. .sidenote-number:after, .sidenote:before { content: counter(sidenote-counter) " ";
  140. position: relative;
  141. vertical-align: baseline;
  142. color: #f00000; }
  143. .sidenote-number:after { content: counter(sidenote-counter);
  144. font-size: 0.9rem;
  145. top: -0.5rem;
  146. left: 0.1rem; }
  147. .sidenote:before { content: counter(sidenote-counter) ". ";
  148. position: absolute;
  149. /* 100% refers to the computed width of the number, so this transform
  150. * shifts the number just outside the left edge of the sidenote box,
  151. * with a buffer of 0.25rem, no matter how many digits the number has. */
  152. -webkit-transform: translateX(-100%) translateX(-0.25rem);
  153. -ms-transform: translateX(-100%) translateX(-0.25rem);
  154. transform: translateX(-100%) translateX(-0.25rem); }
  155. p, footer, div.table-wrapper { width: 55%; }
  156. @media screen and (max-width: 760px) { p, footer { width: 90%; }
  157. pre.code { width: 87.5%; }
  158. ul { width: 85%; }
  159. figure { max-width: 90%; }
  160. figcaption, figure.fullwidth figcaption { margin-right: 0%; }
  161. blockquote p, blockquote footer { width: 90%; }}
  162. .sans { font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif; }
  163. .code { font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
  164. font-size: 1.125rem;
  165. line-height: 1.6; }
  166. h1 .code, h2 .code, h3 .code { font-size: 0.80em; }
  167. .marginnote .code, .sidenote .code { font-size: 1rem; }
  168. pre.code { width: 52.5%;
  169. padding-left: 2.5%;
  170. overflow-x: scroll; }
  171. .fullwidth { max-width: 90%; }
  172. span.newthought { font-variant: small-caps;
  173. font-size: 1.2em; }
  174. input.margin-toggle { display: none; }
  175. label.sidenote-number { display: inline; }
  176. label.margin-toggle:not(.sidenote-number) { display: none; }
  177. @media (max-width: 760px) { label.margin-toggle:not(.sidenote-number) { display: inline; }
  178. .sidenote, .marginnote { display: none; }
  179. .margin-toggle:checked + .sidenote,
  180. .margin-toggle:checked + .marginnote { display: block;
  181. float: left;
  182. left: 1rem;
  183. clear: both;
  184. width: 95%;
  185. margin: 1rem 2.5%;
  186. vertical-align: baseline;
  187. position: relative; }
  188. label { cursor: pointer; }
  189. pre.code { width: 90%;
  190. padding: 0; }
  191. .table-caption { display: block;
  192. float: right;
  193. clear: both;
  194. width: 98%;
  195. margin-top: 1rem;
  196. margin-bottom: 0.5rem;
  197. margin-left: 1%;
  198. margin-right: 1%;
  199. vertical-align: baseline;
  200. position: relative; }
  201. table, table.booktabs { width: 85%; }
  202. img { width: 100%; } }