The blog.
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.
 
 
 
 

471 lines
10 KiB

  1. @charset "UTF-8";
  2. /* Import ET Book styles
  3. adapted from https://github.com/edwardtufte/et-book/blob/gh-pages/et-book.css */
  4. @font-face {
  5. font-family: "et-book";
  6. src: url("et-book/et-book-roman-line-figures/et-book-roman-line-figures.eot");
  7. src: url("et-book/et-book-roman-line-figures/et-book-roman-line-figures.eot?#iefix") format("embedded-opentype"), url("et-book/et-book-roman-line-figures/et-book-roman-line-figures.woff") format("woff"), url("et-book/et-book-roman-line-figures/et-book-roman-line-figures.ttf") format("truetype"), url("et-book/et-book-roman-line-figures/et-book-roman-line-figures.svg#etbookromanosf") format("svg");
  8. font-weight: normal;
  9. font-style: normal;
  10. font-display: swap;
  11. }
  12. @font-face {
  13. font-family: "et-book";
  14. src: url("et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.eot");
  15. src: url("et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.eot?#iefix") format("embedded-opentype"), url("et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.woff") format("woff"), url("et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.ttf") format("truetype"), url("et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.svg#etbookromanosf") format("svg");
  16. font-weight: normal;
  17. font-style: italic;
  18. font-display: swap;
  19. }
  20. @font-face {
  21. font-family: "et-book";
  22. src: url("et-book/et-book-bold-line-figures/et-book-bold-line-figures.eot");
  23. src: url("et-book/et-book-bold-line-figures/et-book-bold-line-figures.eot?#iefix") format("embedded-opentype"), url("et-book/et-book-bold-line-figures/et-book-bold-line-figures.woff") format("woff"), url("et-book/et-book-bold-line-figures/et-book-bold-line-figures.ttf") format("truetype"), url("et-book/et-book-bold-line-figures/et-book-bold-line-figures.svg#etbookromanosf") format("svg");
  24. font-weight: bold;
  25. font-style: normal;
  26. font-display: swap;
  27. }
  28. @font-face {
  29. font-family: "et-book-roman-old-style";
  30. src: url("et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.eot");
  31. src: url("et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.eot?#iefix") format("embedded-opentype"), url("et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.woff") format("woff"), url("et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.ttf") format("truetype"), url("et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.svg#etbookromanosf") format("svg");
  32. font-weight: normal;
  33. font-style: normal;
  34. font-display: swap;
  35. }
  36. /* Tufte CSS styles */
  37. html {
  38. font-size: 15px;
  39. }
  40. body {
  41. width: 87.5%;
  42. margin-left: auto;
  43. margin-right: auto;
  44. padding-left: 12.5%;
  45. font-family: et-book, Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
  46. background-color: #fffff8;
  47. color: #111;
  48. max-width: 1400px;
  49. counter-reset: sidenote-counter;
  50. }
  51. h1 {
  52. font-weight: 400;
  53. margin-top: 4rem;
  54. margin-bottom: 1.5rem;
  55. font-size: 3.2rem;
  56. line-height: 1;
  57. }
  58. h2 {
  59. font-style: italic;
  60. font-weight: 400;
  61. margin-top: 2.1rem;
  62. margin-bottom: 1.4rem;
  63. font-size: 2.2rem;
  64. line-height: 1;
  65. }
  66. h3 {
  67. font-style: italic;
  68. font-weight: 400;
  69. font-size: 1.7rem;
  70. margin-top: 2rem;
  71. margin-bottom: 1.4rem;
  72. line-height: 1;
  73. }
  74. hr {
  75. display: block;
  76. height: 1px;
  77. width: 55%;
  78. border: 0;
  79. border-top: 1px solid #ccc;
  80. margin: 1em 0;
  81. padding: 0;
  82. }
  83. p.subtitle {
  84. font-style: italic;
  85. margin-top: 1rem;
  86. margin-bottom: 1rem;
  87. font-size: 1.8rem;
  88. display: block;
  89. line-height: 1;
  90. }
  91. .numeral {
  92. font-family: et-book-roman-old-style;
  93. }
  94. .danger {
  95. color: red;
  96. }
  97. article {
  98. padding: 5rem 0rem;
  99. }
  100. section {
  101. padding-top: 1rem;
  102. padding-bottom: 1rem;
  103. }
  104. p,
  105. dl,
  106. ol,
  107. ul {
  108. font-size: 1.4rem;
  109. line-height: 2rem;
  110. }
  111. p {
  112. margin-top: 1.4rem;
  113. margin-bottom: 1.4rem;
  114. padding-right: 0;
  115. vertical-align: baseline;
  116. }
  117. /* Chapter Epigraphs */
  118. div.epigraph {
  119. margin: 5em 0;
  120. }
  121. div.epigraph > blockquote {
  122. margin-top: 3em;
  123. margin-bottom: 3em;
  124. }
  125. div.epigraph > blockquote,
  126. div.epigraph > blockquote > p {
  127. font-style: italic;
  128. }
  129. div.epigraph > blockquote > footer {
  130. font-style: normal;
  131. }
  132. div.epigraph > blockquote > footer > cite {
  133. font-style: italic;
  134. }
  135. /* end chapter epigraphs styles */
  136. blockquote {
  137. font-size: 1.4rem;
  138. }
  139. blockquote p {
  140. width: 55%;
  141. margin-right: 40px;
  142. }
  143. blockquote footer {
  144. width: 55%;
  145. font-size: 1.1rem;
  146. text-align: right;
  147. }
  148. section > p,
  149. section > footer,
  150. section > table {
  151. width: 55%;
  152. }
  153. /* 50 + 5 == 55, to be the same width as paragraph */
  154. section > dl,
  155. section > ol,
  156. section > ul {
  157. width: 50%;
  158. -webkit-padding-start: 5%;
  159. }
  160. dt:not(:first-child),
  161. li:not(:first-child) {
  162. margin-top: 0.25rem;
  163. }
  164. figure {
  165. padding: 0;
  166. border: 0;
  167. font-size: 100%;
  168. font: inherit;
  169. vertical-align: baseline;
  170. max-width: 55%;
  171. -webkit-margin-start: 0;
  172. -webkit-margin-end: 0;
  173. margin: 0 0 3em 0;
  174. }
  175. figcaption {
  176. float: right;
  177. clear: right;
  178. margin-top: 0;
  179. margin-bottom: 0;
  180. font-size: 1.1rem;
  181. line-height: 1.6;
  182. vertical-align: baseline;
  183. position: relative;
  184. max-width: 40%;
  185. }
  186. figure.fullwidth figcaption {
  187. margin-right: 24%;
  188. }
  189. /* Links: replicate underline that clears descenders */
  190. a:link,
  191. a:visited {
  192. color: inherit;
  193. }
  194. .no-tufte-underline:link {
  195. background: unset;
  196. text-shadow: unset;
  197. }
  198. a:link, .tufte-underline, .hover-tufte-underline:hover {
  199. text-decoration: none;
  200. background: -webkit-linear-gradient(#fffff8, #fffff8), -webkit-linear-gradient(#fffff8, #fffff8), -webkit-linear-gradient(currentColor, currentColor);
  201. background: linear-gradient(#fffff8, #fffff8), linear-gradient(#fffff8, #fffff8), linear-gradient(currentColor, currentColor);
  202. -webkit-background-size: 0.05em 1px, 0.05em 1px, 1px 1px;
  203. -moz-background-size: 0.05em 1px, 0.05em 1px, 1px 1px;
  204. background-size: 0.05em 1px, 0.05em 1px, 1px 1px;
  205. background-repeat: no-repeat, no-repeat, repeat-x;
  206. text-shadow: 0.03em 0 #fffff8, -0.03em 0 #fffff8, 0 0.03em #fffff8, 0 -0.03em #fffff8, 0.06em 0 #fffff8, -0.06em 0 #fffff8, 0.09em 0 #fffff8, -0.09em 0 #fffff8, 0.12em 0 #fffff8, -0.12em 0 #fffff8, 0.15em 0 #fffff8, -0.15em 0 #fffff8;
  207. background-position: 0% 93%, 100% 93%, 0% 93%;
  208. }
  209. @media screen and (-webkit-min-device-pixel-ratio: 0) {
  210. a:link, .tufte-underline, .hover-tufte-underline:hover {
  211. background-position-y: 87%, 87%, 87%;
  212. }
  213. }
  214. a:link::selection,
  215. a:link::-moz-selection {
  216. text-shadow: 0.03em 0 #b4d5fe, -0.03em 0 #b4d5fe, 0 0.03em #b4d5fe, 0 -0.03em #b4d5fe, 0.06em 0 #b4d5fe, -0.06em 0 #b4d5fe, 0.09em 0 #b4d5fe, -0.09em 0 #b4d5fe, 0.12em 0 #b4d5fe, -0.12em 0 #b4d5fe, 0.15em 0 #b4d5fe, -0.15em 0 #b4d5fe;
  217. background: #b4d5fe;
  218. }
  219. /* Sidenotes, margin notes, figures, captions */
  220. img {
  221. max-width: 100%;
  222. }
  223. .sidenote,
  224. .marginnote {
  225. float: right;
  226. clear: right;
  227. margin-right: -60%;
  228. width: 50%;
  229. margin-top: 0.3rem;
  230. margin-bottom: 0;
  231. font-size: 1.1rem;
  232. line-height: 1.3;
  233. vertical-align: baseline;
  234. position: relative;
  235. }
  236. .sidenote-number {
  237. counter-increment: sidenote-counter;
  238. }
  239. .sidenote-number:after,
  240. .sidenote:before {
  241. font-family: et-book-roman-old-style;
  242. position: relative;
  243. vertical-align: baseline;
  244. }
  245. .sidenote-number:after {
  246. content: counter(sidenote-counter);
  247. font-size: 1rem;
  248. top: -0.5rem;
  249. left: 0.1rem;
  250. }
  251. .sidenote:before {
  252. content: counter(sidenote-counter) " ";
  253. font-size: 1rem;
  254. top: -0.5rem;
  255. }
  256. blockquote .sidenote,
  257. blockquote .marginnote {
  258. margin-right: -82%;
  259. min-width: 59%;
  260. text-align: left;
  261. }
  262. div.fullwidth,
  263. table.fullwidth {
  264. width: 100%;
  265. }
  266. div.table-wrapper {
  267. overflow-x: auto;
  268. font-family: "Trebuchet MS", "Gill Sans", "Gill Sans MT", sans-serif;
  269. }
  270. .sans {
  271. font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
  272. letter-spacing: .03em;
  273. }
  274. code, pre > code {
  275. font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
  276. font-size: 1.0rem;
  277. line-height: 1.42;
  278. -webkit-text-size-adjust: 100%; /* Prevent adjustments of font size after orientation changes in iOS. See https://github.com/edwardtufte/tufte-css/issues/81#issuecomment-261953409 */
  279. }
  280. .sans > code {
  281. font-size: 1.2rem;
  282. }
  283. h1 > code,
  284. h2 > code,
  285. h3 > code {
  286. font-size: 0.80em;
  287. }
  288. .marginnote > code,
  289. .sidenote > code {
  290. font-size: 1rem;
  291. }
  292. pre > code {
  293. font-size: 0.9rem;
  294. width: 52.5%;
  295. margin-left: 2.5%;
  296. overflow-x: auto;
  297. display: block;
  298. }
  299. pre.fullwidth > code {
  300. width: 90%;
  301. }
  302. .fullwidth {
  303. max-width: 90%;
  304. clear:both;
  305. }
  306. span.newthought {
  307. font-variant: small-caps;
  308. font-size: 1.2em;
  309. }
  310. input.margin-toggle {
  311. display: none;
  312. }
  313. label.sidenote-number {
  314. display: inline;
  315. }
  316. label.margin-toggle:not(.sidenote-number) {
  317. display: none;
  318. }
  319. .iframe-wrapper {
  320. position: relative;
  321. padding-bottom: 56.25%; /* 16:9 */
  322. padding-top: 25px;
  323. height: 0;
  324. }
  325. .iframe-wrapper iframe {
  326. position: absolute;
  327. top: 0;
  328. left: 0;
  329. width: 100%;
  330. height: 100%;
  331. }
  332. @media (max-width: 760px) {
  333. body {
  334. width: 84%;
  335. padding-left: 8%;
  336. padding-right: 8%;
  337. }
  338. hr,
  339. section > p,
  340. section > footer,
  341. section > table {
  342. width: 100%;
  343. }
  344. pre > code {
  345. width: 97%;
  346. }
  347. section > dl,
  348. section > ol,
  349. section > ul {
  350. width: 90%;
  351. }
  352. figure {
  353. max-width: 90%;
  354. }
  355. figcaption,
  356. figure.fullwidth figcaption {
  357. margin-right: 0%;
  358. max-width: none;
  359. }
  360. blockquote {
  361. margin-left: 1.5em;
  362. margin-right: 0em;
  363. }
  364. blockquote p,
  365. blockquote footer {
  366. width: 100%;
  367. }
  368. label.margin-toggle:not(.sidenote-number) {
  369. display: inline;
  370. }
  371. .sidenote,
  372. .marginnote {
  373. display: none;
  374. }
  375. .margin-toggle:checked + .sidenote,
  376. .margin-toggle:checked + .marginnote {
  377. display: block;
  378. float: left;
  379. left: 1rem;
  380. clear: both;
  381. width: 95%;
  382. margin: 1rem 2.5%;
  383. vertical-align: baseline;
  384. position: relative;
  385. }
  386. label {
  387. cursor: pointer;
  388. }
  389. div.table-wrapper,
  390. table {
  391. width: 85%;
  392. }
  393. img {
  394. width: 100%;
  395. }
  396. }