latex.css 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426
  1. /*!
  2. * LaTeX.css (https://latex.now.sh/)
  3. *
  4. * Source: https://github.com/vincentdoerig/latex-css
  5. * Licensed under MIT (https://github.com/vincentdoerig/latex-css/blob/master/LICENSE)
  6. */
  7. @font-face {
  8. font-family: 'Latin Modern';
  9. font-style: normal;
  10. font-weight: normal;
  11. font-display: swap;
  12. src: url('/style/fonts/LM-regular.woff2') format('woff2'),
  13. url('/style/fonts/LM-regular.woff') format('woff'),
  14. url('/style/fonts/LM-regular.ttf') format('truetype');
  15. }
  16. @font-face {
  17. font-family: 'Latin Modern';
  18. font-style: italic;
  19. font-weight: normal;
  20. font-display: swap;
  21. src: url('/style/fonts/LM-italic.woff2') format('woff2'),
  22. url('/style/fonts/LM-italic.woff') format('woff'),
  23. url('/style/fonts/LM-italic.ttf') format('truetype');
  24. }
  25. @font-face {
  26. font-family: 'Latin Modern';
  27. font-style: normal;
  28. font-weight: bold;
  29. font-display: swap;
  30. src: url('/style/fonts/LM-bold.woff2') format('woff2'),
  31. url('/style/fonts/LM-bold.woff') format('woff'),
  32. url('/style/fonts/LM-bold.ttf') format('truetype');
  33. }
  34. @font-face {
  35. font-family: 'Latin Modern';
  36. font-style: italic;
  37. font-weight: bold;
  38. font-display: swap;
  39. src: url('/style/fonts/LM-bold-italic.woff2') format('woff2'),
  40. url('/style/fonts/LM-bold-italic.woff') format('woff'),
  41. url('/style/fonts/LM-bold-italic.ttf') format('truetype');
  42. }
  43. /* Box sizing rules */
  44. *,
  45. *::before,
  46. *::after {
  47. box-sizing: border-box;
  48. }
  49. /* Remove default margin */
  50. body,
  51. h1,
  52. h2,
  53. h3,
  54. h4,
  55. p,
  56. ul[class],
  57. ol[class],
  58. li,
  59. figure,
  60. figcaption,
  61. dl,
  62. dd {
  63. margin: 0;
  64. }
  65. /* Make default font-size 1rem and add smooth scrolling to anchors */
  66. html {
  67. font-size: 1.4rem;
  68. scroll-behavior: smooth;
  69. }
  70. body {
  71. font-family: 'Latin Modern', Georgia, Cambria, 'DejaVu Serif', 'Times New Roman', Times, serif;
  72. line-height: 1.4;
  73. max-width: 80ch;
  74. min-height: 100vh;
  75. overflow-x: hidden;
  76. margin: 0 auto;
  77. padding: 2rem 1.25rem;
  78. counter-reset: theorem;
  79. counter-reset: definition;
  80. color: hsl(0, 5%, 10%);
  81. background-color: hsl(210, 20%, 98%);
  82. text-rendering: optimizeLegibility;
  83. }
  84. /* Justify and hyphenate all paragraphs */
  85. p {
  86. text-align: justify;
  87. hyphens: auto;
  88. -webkit-hyphens: auto;
  89. -moz-hyphens: auto;
  90. margin-top: 1rem;
  91. }
  92. /* A elements that don't have a class get default styles */
  93. a:not([class]) {
  94. text-decoration-skip-ink: auto;
  95. }
  96. /* Make links red */
  97. a {
  98. text-decoration: none;
  99. color: #a00;
  100. }
  101. a:visited {
  102. text-decoration: none;
  103. color: #800;
  104. }
  105. a:focus {
  106. outline-offset: 2px;
  107. outline: 2px solid hsl(220, 90%, 52%);
  108. }
  109. /* Ueberschriften mit Links nur dezent einfärben */
  110. h1 a, h1 a:visited,
  111. h2 a, h2 a:visited,
  112. h3 a, h3 a:visited,
  113. h4 a, h4 a:visited,
  114. h5 a, h5 a:visited,
  115. h6 a, h6 a:visited {
  116. color: #555;
  117. }
  118. /* goto bar */
  119. div.menu form.search {
  120. font-size:75%;
  121. margin-top:2em;
  122. margin-bottom:3em;
  123. }
  124. div.menu span.gotobar a.local,
  125. div.menu span.gotobar a.local:visited {
  126. text-decoration: none;
  127. color: #1e133c87;
  128. margin-right:1.1em;
  129. font-weight: bold;
  130. }
  131. /* Make images easier to work with */
  132. img {
  133. max-width: 100%;
  134. display: block;
  135. }
  136. /* Inherit fonts for inputs and buttons */
  137. input,
  138. button,
  139. textarea,
  140. select {
  141. font: inherit;
  142. }
  143. /* Prevent textarea from overflowing */
  144. textarea {
  145. width: 100%;
  146. }
  147. /* Natural flow and rhythm in articles by default */
  148. article > * + * {
  149. margin-top: 1em;
  150. }
  151. /* Styles for inline code or code snippets */
  152. code,
  153. pre,
  154. kbd {
  155. font-family: Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
  156. monospace;
  157. font-size: 85%;
  158. }
  159. pre {
  160. padding: 1rem 1.4rem;
  161. max-width: 100%;
  162. overflow: auto;
  163. border-radius: 4px;
  164. background: hsl(210, 28%, 93%);
  165. }
  166. pre code {
  167. font-size: 95%;
  168. position: relative;
  169. }
  170. kbd {
  171. background: hsl(210, 5%, 100%);
  172. border: 1px solid hsl(210, 5%, 70%);
  173. border-radius: 2px;
  174. padding: 2px 4px;
  175. font-size: 75%;
  176. }
  177. /* Make table 100% width, add borders between rows */
  178. table {
  179. border-collapse: collapse;
  180. border-spacing: 0;
  181. width: 100%;
  182. max-width: 100%;
  183. }
  184. th,
  185. td {
  186. text-align: left;
  187. padding: 0.5rem;
  188. }
  189. td {
  190. border-bottom: 1px solid hsl(0, 0%, 85%);
  191. }
  192. thead th {
  193. border-bottom: 2px solid hsl(0, 0%, 70%);
  194. }
  195. tfoot th {
  196. border-top: 2px solid hsl(0, 0%, 70%);
  197. }
  198. /* Center align the title */
  199. h1:first-child {
  200. text-align: center;
  201. }
  202. /* Nested ordered list for ToC */
  203. nav ol {
  204. counter-reset: item;
  205. padding-left: 2rem;
  206. }
  207. nav li {
  208. display: block;
  209. }
  210. nav li:before {
  211. content: counters(item, '.') ' ';
  212. counter-increment: item;
  213. padding-right: 0.85rem;
  214. }
  215. /* Center definitions (most useful for display equations) */
  216. dl dd {
  217. text-align: center;
  218. }
  219. /* Theorem */
  220. .theorem {
  221. counter-increment: theorem;
  222. display: block;
  223. margin: 12px 0;
  224. font-style: italic;
  225. }
  226. .theorem::before {
  227. content: 'Satz ' counter(theorem) '. ';
  228. font-weight: bold;
  229. font-style: normal;
  230. }
  231. /* Lemma */
  232. .lemma {
  233. counter-increment: theorem;
  234. display: block;
  235. margin: 12px 0;
  236. font-style: italic;
  237. }
  238. .lemma::before {
  239. content: 'Lemma ' counter(theorem) '. ';
  240. font-weight: bold;
  241. font-style: normal;
  242. }
  243. /* Proof */
  244. .proof {
  245. display: block;
  246. margin: 12px 0;
  247. font-style: normal;
  248. position: relative;
  249. }
  250. .proof::before {
  251. content: 'Beweis. ' attr(title);
  252. font-style: italic;
  253. }
  254. .proof:after {
  255. content: '◾️';
  256. position: absolute;
  257. right: -12px;
  258. bottom: -2px;
  259. }
  260. /* Definition */
  261. .definition {
  262. counter-increment: definition;
  263. display: block;
  264. margin: 12px 0;
  265. font-style: normal;
  266. }
  267. .definition::before {
  268. content: 'Definition ' counter(definition) '. ';
  269. font-weight: bold;
  270. font-style: normal;
  271. }
  272. /* Center align author name, use small caps and add vertical spacing */
  273. .author {
  274. margin: 0.85rem 0;
  275. font-variant-caps: small-caps;
  276. text-align: center;
  277. }
  278. /* Make footnote text smaller and left align it (looks bad with long URLs) */
  279. .footnotes p {
  280. text-align: left;
  281. line-height: 1.5;
  282. font-size: 85%;
  283. margin-bottom: 0.4rem;
  284. }
  285. .footnotes {
  286. border-top: 1px solid hsl(0, 0%, 39%);
  287. }
  288. /* Center title and paragraph */
  289. .abstract,
  290. .abstract p {
  291. text-align: center;
  292. }
  293. .abstract {
  294. margin: 2.25rem 0;
  295. }
  296. /* Format the LaTeX symbol correctly (a higher up, e lower) */
  297. .latex span:nth-child(1) {
  298. text-transform: uppercase;
  299. font-size: 0.75em;
  300. vertical-align: 0.28em;
  301. margin-left: -0.48em;
  302. margin-right: -0.15em;
  303. line-height: 1ex;
  304. }
  305. .latex span:nth-child(2) {
  306. text-transform: uppercase;
  307. vertical-align: -0.5ex;
  308. margin-left: -0.1667em;
  309. margin-right: -0.125em;
  310. line-height: 1ex;
  311. }
  312. /* Heading typography */
  313. h1 {
  314. font-size: 2.5rem;
  315. line-height: 3.25rem;
  316. margin-bottom: 1.625rem;
  317. }
  318. h2 {
  319. font-size: 1.7rem;
  320. line-height: 2rem;
  321. margin-top: 3rem;
  322. }
  323. h3 {
  324. font-size: 1.4rem;
  325. margin-top: 2.5rem;
  326. }
  327. h4 {
  328. font-size: 1.2rem;
  329. margin-top: 2rem;
  330. }
  331. h5 {
  332. font-size: 1rem;
  333. margin-top: 1.8rem;
  334. }
  335. h6 {
  336. font-size: 1rem;
  337. font-style: italic;
  338. font-weight: normal;
  339. margin-top: 2.5rem;
  340. }
  341. h3,
  342. h4,
  343. h5,
  344. h6 {
  345. line-height: 1.625rem;
  346. }
  347. h1 + h2 {
  348. margin-top: 1.625rem;
  349. }
  350. h2 + h3,
  351. h3 + h4,
  352. h4 + h5 {
  353. margin-top: 0.8rem;
  354. }
  355. h5 + h6 {
  356. margin-top: -0.8rem;
  357. }
  358. h2,
  359. h3,
  360. h4,
  361. h5,
  362. h6 {
  363. margin-bottom: 0.8rem;
  364. }
  365. div.diff div.old {
  366. background-color: #FFFFAF;
  367. }
  368. div.diff div.new {
  369. background-color: #CFFFCF;
  370. }
  371. div.content blockquote {
  372. font-style: italic;
  373. }