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.
 
 
 
 

472 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: 83.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-right: 5%;
  102. padding-top: 1rem;
  103. padding-bottom: 1rem;
  104. }
  105. p,
  106. dl,
  107. ol,
  108. ul {
  109. font-size: 1.4rem;
  110. line-height: 2rem;
  111. }
  112. p {
  113. margin-top: 1.4rem;
  114. margin-bottom: 1.4rem;
  115. padding-right: 0;
  116. vertical-align: baseline;
  117. }
  118. /* Chapter Epigraphs */
  119. div.epigraph {
  120. margin: 5em 0;
  121. }
  122. div.epigraph > blockquote {
  123. margin-top: 3em;
  124. margin-bottom: 3em;
  125. }
  126. div.epigraph > blockquote,
  127. div.epigraph > blockquote > p {
  128. font-style: italic;
  129. }
  130. div.epigraph > blockquote > footer {
  131. font-style: normal;
  132. }
  133. div.epigraph > blockquote > footer > cite {
  134. font-style: italic;
  135. }
  136. /* end chapter epigraphs styles */
  137. blockquote {
  138. font-size: 1.4rem;
  139. }
  140. blockquote p {
  141. width: 55%;
  142. margin-right: 40px;
  143. }
  144. blockquote footer {
  145. width: 55%;
  146. font-size: 1.1rem;
  147. text-align: right;
  148. }
  149. section > p,
  150. section > footer,
  151. section > table {
  152. width: 55%;
  153. }
  154. /* 50 + 5 == 55, to be the same width as paragraph */
  155. section > dl,
  156. section > ol,
  157. section > ul {
  158. width: 50%;
  159. -webkit-padding-start: 5%;
  160. }
  161. dt:not(:first-child),
  162. li:not(:first-child) {
  163. margin-top: 0.25rem;
  164. }
  165. figure {
  166. padding: 0;
  167. border: 0;
  168. font-size: 100%;
  169. font: inherit;
  170. vertical-align: baseline;
  171. max-width: 55%;
  172. -webkit-margin-start: 0;
  173. -webkit-margin-end: 0;
  174. margin: 0 0 3em 0;
  175. }
  176. figcaption {
  177. float: right;
  178. clear: right;
  179. margin-top: 0;
  180. margin-bottom: 0;
  181. font-size: 1.1rem;
  182. line-height: 1.6;
  183. vertical-align: baseline;
  184. position: relative;
  185. max-width: 40%;
  186. }
  187. figure.fullwidth figcaption {
  188. margin-right: 24%;
  189. }
  190. /* Links: replicate underline that clears descenders */
  191. a:link,
  192. a:visited {
  193. color: inherit;
  194. }
  195. .no-tufte-underline:link {
  196. background: unset;
  197. text-shadow: unset;
  198. }
  199. a:link, .tufte-underline, .hover-tufte-underline:hover {
  200. text-decoration: none;
  201. background: -webkit-linear-gradient(#fffff8, #fffff8), -webkit-linear-gradient(#fffff8, #fffff8), -webkit-linear-gradient(currentColor, currentColor);
  202. background: linear-gradient(#fffff8, #fffff8), linear-gradient(#fffff8, #fffff8), linear-gradient(currentColor, currentColor);
  203. -webkit-background-size: 0.05em 1px, 0.05em 1px, 1px 1px;
  204. -moz-background-size: 0.05em 1px, 0.05em 1px, 1px 1px;
  205. background-size: 0.05em 1px, 0.05em 1px, 1px 1px;
  206. background-repeat: no-repeat, no-repeat, repeat-x;
  207. 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;
  208. background-position: 0% 93%, 100% 93%, 0% 93%;
  209. }
  210. @media screen and (-webkit-min-device-pixel-ratio: 0) {
  211. a:link, .tufte-underline, .hover-tufte-underline:hover {
  212. background-position-y: 87%, 87%, 87%;
  213. }
  214. }
  215. a:link::selection,
  216. a:link::-moz-selection {
  217. 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;
  218. background: #b4d5fe;
  219. }
  220. /* Sidenotes, margin notes, figures, captions */
  221. img {
  222. max-width: 100%;
  223. }
  224. .sidenote,
  225. .marginnote {
  226. float: right;
  227. clear: right;
  228. margin-right: -60%;
  229. width: 50%;
  230. margin-top: 0.3rem;
  231. margin-bottom: 0;
  232. font-size: 1.1rem;
  233. line-height: 1.3;
  234. vertical-align: baseline;
  235. position: relative;
  236. }
  237. .sidenote-number {
  238. counter-increment: sidenote-counter;
  239. }
  240. .sidenote-number:after,
  241. .sidenote:before {
  242. font-family: et-book-roman-old-style;
  243. position: relative;
  244. vertical-align: baseline;
  245. }
  246. .sidenote-number:after {
  247. content: counter(sidenote-counter);
  248. font-size: 1rem;
  249. top: -0.5rem;
  250. left: 0.1rem;
  251. }
  252. .sidenote:before {
  253. content: counter(sidenote-counter) " ";
  254. font-size: 1rem;
  255. top: -0.5rem;
  256. }
  257. blockquote .sidenote,
  258. blockquote .marginnote {
  259. margin-right: -82%;
  260. min-width: 59%;
  261. text-align: left;
  262. }
  263. div.fullwidth,
  264. table.fullwidth {
  265. width: 100%;
  266. }
  267. div.table-wrapper {
  268. overflow-x: auto;
  269. font-family: "Trebuchet MS", "Gill Sans", "Gill Sans MT", sans-serif;
  270. }
  271. .sans {
  272. font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
  273. letter-spacing: .03em;
  274. }
  275. code, pre > code {
  276. font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
  277. font-size: 1.0rem;
  278. line-height: 1.42;
  279. -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 */
  280. }
  281. .sans > code {
  282. font-size: 1.2rem;
  283. }
  284. h1 > code,
  285. h2 > code,
  286. h3 > code {
  287. font-size: 0.80em;
  288. }
  289. .marginnote > code,
  290. .sidenote > code {
  291. font-size: 1rem;
  292. }
  293. pre > code {
  294. font-size: 0.9rem;
  295. width: 77.5%;
  296. margin-left: 2.5%;
  297. overflow-x: auto;
  298. display: block;
  299. }
  300. pre.fullwidth > code {
  301. width: 90%;
  302. }
  303. .fullwidth {
  304. max-width: 90%;
  305. clear:both;
  306. }
  307. span.newthought {
  308. font-variant: small-caps;
  309. font-size: 1.2em;
  310. }
  311. input.margin-toggle {
  312. display: none;
  313. }
  314. label.sidenote-number {
  315. display: inline;
  316. }
  317. label.margin-toggle:not(.sidenote-number) {
  318. display: none;
  319. }
  320. .iframe-wrapper {
  321. position: relative;
  322. padding-bottom: 56.25%; /* 16:9 */
  323. padding-top: 25px;
  324. height: 0;
  325. }
  326. .iframe-wrapper iframe {
  327. position: absolute;
  328. top: 0;
  329. left: 0;
  330. width: 100%;
  331. height: 100%;
  332. }
  333. @media (max-width: 760px) {
  334. body {
  335. width: 84%;
  336. padding-left: 8%;
  337. padding-right: 8%;
  338. }
  339. hr,
  340. section > p,
  341. section > footer,
  342. section > table {
  343. width: 100%;
  344. }
  345. pre > code {
  346. width: 97%;
  347. }
  348. section > dl,
  349. section > ol,
  350. section > ul {
  351. width: 90%;
  352. }
  353. figure {
  354. max-width: 90%;
  355. }
  356. figcaption,
  357. figure.fullwidth figcaption {
  358. margin-right: 0%;
  359. max-width: none;
  360. }
  361. blockquote {
  362. margin-left: 1.5em;
  363. margin-right: 0em;
  364. }
  365. blockquote p,
  366. blockquote footer {
  367. width: 100%;
  368. }
  369. label.margin-toggle:not(.sidenote-number) {
  370. display: inline;
  371. }
  372. .sidenote,
  373. .marginnote {
  374. display: none;
  375. }
  376. .margin-toggle:checked + .sidenote,
  377. .margin-toggle:checked + .marginnote {
  378. display: block;
  379. float: left;
  380. left: 1rem;
  381. clear: both;
  382. width: 95%;
  383. margin: 1rem 2.5%;
  384. vertical-align: baseline;
  385. position: relative;
  386. }
  387. label {
  388. cursor: pointer;
  389. }
  390. div.table-wrapper,
  391. table {
  392. width: 85%;
  393. }
  394. img {
  395. width: 100%;
  396. }
  397. }