mathstyles.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  1. /*
  2. @licstart The following is the entire license notice for the CSS code
  3. in this page.
  4. Copyright (C) 2015-2018 Emilia Blåsten emily@countermail.com
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU Affero General Public License as
  7. published by the Free Software Foundation, either version 3 of the
  8. License, or (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU Affero General Public License for more details.
  13. You should have received a copy of the GNU Affero General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. @licend The above is the entire license notice for the CSS code in
  16. this page.
  17. Contributions are welcome: https://notabug.org/emily/Lettus-CSS-MathJax
  18. */
  19. /*
  20. Latin Modern font
  21. */
  22. @font-face {
  23. font-family: "LModern";
  24. src: url("fonts/lmroman10-bold-webfont.woff");
  25. font-weight: bold;
  26. font-style: normal;
  27. }
  28. @font-face {
  29. font-family: "LModern";
  30. src: url("fonts/lmroman10-bolditalic-webfont.woff");
  31. font-weight: bold;
  32. font-style: italic;
  33. }
  34. @font-face {
  35. font-family: "LModern";
  36. src: url("fonts/lmroman10-italic-webfont.woff");
  37. font-weight: normal;
  38. font-style: italic;
  39. }
  40. @font-face {
  41. font-family: "LModern";
  42. src: url("fonts/lmroman10-regular-webfont.woff");
  43. font-weight: normal;
  44. font-style: normal;
  45. }
  46. @font-face {
  47. font-family: "LModern";
  48. src: url("fonts/lmromanslant10-bold-webfont.woff");
  49. font-weight: bold;
  50. font-style: oblique;
  51. }
  52. @font-face {
  53. font-family: "LModern";
  54. src: url("fonts/lmromanslant10-regular-webfont.woff");
  55. font-weight: normal;
  56. font-style: oblique;
  57. }
  58. @font-face {
  59. font-family: "LModern-SC";
  60. src: url("fonts/lmromancaps10-oblique-webfont.woff");
  61. font-weight: normal;
  62. font-style: oblique;
  63. }
  64. @font-face {
  65. font-family: "LModern-SC";
  66. src: url("fonts/lmromancaps10-regular-webfont.woff");
  67. font-weight: normal;
  68. font-style: normal;
  69. }
  70. /*
  71. STIX-Web Main font
  72. */
  73. /* Check http://www.metaltoad.com/blog/how-use-font-face-avoid-faux-italic-and-bold-browser-styles for more info */
  74. @font-face {
  75. font-family: "STIX-Main";
  76. src: url("https://cdn.mathjax.org/mathjax/2.6-latest/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Main-Regular.woff?rev=2.6.0") format("woff");
  77. // src: url("/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Main-Regular.woff?rev=2.6.0") format("woff");
  78. font-weight: normal;
  79. font-style: normal;
  80. }
  81. @font-face {
  82. font-family: "STIX-Main";
  83. src: url("https://cdn.mathjax.org/mathjax/2.6-latest/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Main-Bold.woff?rev=2.6.0") format("woff");
  84. // src: url("/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Main-Bold.woff?rev=2.6.0") format("woff");
  85. font-weight: bold;
  86. font-style: normal;
  87. }
  88. @font-face {
  89. font-family: "STIX-Main";
  90. src: url("https://cdn.mathjax.org/mathjax/2.6-latest/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Main-Italic.woff?rev=2.6.0") format("woff");
  91. // src: url("/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Main-Italic.woff?rev=2.6.0") format("woff");
  92. font-weight: normal;
  93. font-style: italic;
  94. }
  95. @font-face {
  96. font-family: "STIX-Main";
  97. src: url("https://cdn.mathjax.org/mathjax/2.6-latest/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Main-BoldItalic.woff?rev=2.6.0") format("woff");
  98. // src: url("/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Main-BoldItalic.woff?rev=2.6.0") format("woff");
  99. font-weight: bold;
  100. font-style: italic;
  101. }
  102. /*
  103. STIX-Web for latin (accent) characters
  104. */
  105. @font-face {
  106. font-family: "STIX-Latin";
  107. src: url("https://cdn.mathjax.org/mathjax/2.6-latest/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Latin-Regular.woff?rev=2.6.0") format("woff");
  108. // src: url("/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Latin-Regular.woff?rev=2.6.0") format("woff");
  109. font-weight: normal;
  110. font-style: normal;
  111. }
  112. @font-face {
  113. font-family: "STIX-Latin";
  114. src: url("https://cdn.mathjax.org/mathjax/2.6-latest/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Latin-Italic.woff?rev=2.6.0") format("woff");
  115. // src: url("/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Latin-Italic.woff?rev=2.6.0") format("woff");
  116. font-weight: normal;
  117. font-style: italic;
  118. }
  119. @font-face {
  120. font-family: "STIX-Latin";
  121. src: url("https://cdn.mathjax.org/mathjax/2.6-latest/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Latin-Bold.woff?rev=2.6.0") format("woff");
  122. // src: url("/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Latin-Bold.woff?rev=2.6.0") format("woff");
  123. font-weight: bold;
  124. font-style: normal;
  125. }
  126. @font-face {
  127. font-family: "STIX-Latin";
  128. src: url("https://cdn.mathjax.org/mathjax/2.6-latest/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Latin-BoldItalic.woff?rev=2.6.0") format("woff");
  129. // src: url("/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Latin-BoldItalic.woff?rev=2.6.0") format("woff");
  130. font-weight: bold;
  131. font-style: italic;
  132. }
  133. /*
  134. MathJax TeX font for non-accented characters
  135. */
  136. @font-face {
  137. font-family: "TeX-Main";
  138. src: url("https://cdn.mathjax.org/mathjax/2.6-latest/fonts/HTML-CSS/TeX/woff/MathJax_Main-Regular.woff?rev=2.6.0") format("woff");
  139. // src: url("/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Regular.woff?rev=2.6.0") format("woff");
  140. font-weight: normal;
  141. font-style: normal;
  142. }
  143. @font-face {
  144. font-family: "TeX-Main";
  145. src: url("https://cdn.mathjax.org/mathjax/2.6-latest/fonts/HTML-CSS/TeX/woff/MathJax_Main-Italic.woff?rev=2.6.0") format("woff");
  146. // src: url("/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Italic.woff?rev=2.6.0") format("woff");
  147. font-weight: normal;
  148. font-style: italic;
  149. }
  150. @font-face {
  151. font-family: "TeX-Main";
  152. src: url("https://cdn.mathjax.org/mathjax/2.6-latest/fonts/HTML-CSS/TeX/woff/MathJax_Main-Bold.woff?rev=2.6.0") format("woff");
  153. // src: url("/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Bold.woff?rev=2.6.0") format("woff");
  154. font-weight: bold;
  155. font-style: normal;
  156. }
  157. @font-face {
  158. font-family: "TeX-Main";
  159. src: url("https://cdn.mathjax.org/mathjax/2.6-latest/fonts/HTML-CSS/TeX/woff/MathJax_Math-BoldItalic.woff?rev=2.6.0") format("woff");
  160. // src: url("/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Math-BoldItalic.woff?rev=2.6.0") format("woff");
  161. font-weight: bold;
  162. font-style: italic;
  163. }
  164. /*
  165. Main text / margin / body appearance
  166. */
  167. .content {
  168. /* Position the content in the middle, at most 37em wide.
  169. For actual minimum margins, use padding in the container */
  170. margin: 2em auto;
  171. max-width: 37em;
  172. /* Font */
  173. // font-family: "STIX-Main", "STIX-Latin", serif;
  174. // font-family: "TeX-Main", "STIX-Latin", serif;
  175. font-family: "LModern", serif;
  176. font-size: 100%;
  177. /* Check "Use a Combination of Percent and Em" from http://www.w3schools.com/css/css_font.asp */
  178. /* Black text on white background */
  179. background: white;
  180. color: black;
  181. /* Hyphenation */
  182. -webkit-hyphens: auto;
  183. -moz-hyphens: auto;
  184. -ms-hyphens: auto;
  185. hyphens: auto;
  186. /* Justify the text on the right margin */
  187. text-align:justify;
  188. /* Line spacing */
  189. line-height: 1.2;
  190. }
  191. .footnotes {
  192. margin: 3em auto auto auto;
  193. border-top: 1px solid black;
  194. font-size: 80%;
  195. }
  196. .footnotes p {
  197. text-indent: 0em;
  198. }
  199. /*
  200. LINKS
  201. */
  202. a {
  203. /* Prevent browser link colouring */
  204. color: inherit;
  205. text-decoration: inherit;
  206. }
  207. a:link {
  208. border-bottom: 1px solid lightsalmon;
  209. }
  210. a:visited {
  211. border-bottom: lightgray;
  212. }
  213. /* Do not change the border-bottom for links to own document */
  214. a[href^="#"] {
  215. border-bottom: inherit;
  216. }
  217. /*
  218. LIST ETC
  219. */
  220. dt + dt, dd + dt {
  221. margin-top: 0.5em;
  222. }
  223. /*
  224. Print styling: don't break tables, quotes or pre-formatted,
  225. or after headings. Set html margin to 0, use page margin.
  226. THIS SECTION SHOULD BE WRITTEN AFTER ANY ITEM REDEFINED BELOW:
  227. */
  228. @media print {
  229. table, blockquote, pre, img, figure {
  230. page-break-inside: avoid;
  231. }
  232. h1, h2, h3, h4, h5, h6 {
  233. page-break-after: avoid;
  234. }
  235. /* don't print focusHere */
  236. #focusHere::before {
  237. display:none;
  238. }
  239. /* prevent pictures or others from exceeding the page */
  240. * {max-width: 100%;}
  241. body {
  242. margin:0;
  243. }
  244. @page {
  245. margin: 8.5em;
  246. margin-top: auto;
  247. margin-bottom: auto;
  248. }
  249. a:link {
  250. border-bottom: inherit;
  251. }
  252. a:visited {
  253. border-bottom: inherit;
  254. }
  255. }
  256. h1 {
  257. font-size: 1.6em;
  258. font-weight: normal;
  259. }
  260. h2 {
  261. font-size: 1.45em;
  262. font-weight: bold;
  263. }
  264. h3 {
  265. font-size: 1.2em;
  266. font-weight: bold;
  267. }
  268. h4 {
  269. font-size: 1.0em;
  270. font-weight: bold;
  271. }
  272. /*
  273. Indent all paragraphs except first ones in a succession
  274. and make first one in a proof, thm, etc. inline style.
  275. */
  276. p {
  277. margin: 0;
  278. text-indent: 0em;
  279. }
  280. p + p, p + #focusHere + p {
  281. text-indent: 2em;
  282. }
  283. span.theorem + p, span.theorem + #focusHere + p,
  284. span.lemma + p, span.lemma + #focusHere + p,
  285. span.corollary + p, span.corollary + #focusHere + p,
  286. span.proposition + p, span.proposition + #focusHere + p,
  287. span.conjecture + p, span.conjecture + #focusHere + p,
  288. span.definition + p, span.definition + #focusHere + p,
  289. span.remark + p, span.remark + #focusHere + p,
  290. span.motivation + p, span.motivation + #focusHere + p,
  291. span.proof + p, span.proof + #focusHere + p {
  292. display: inline;
  293. }
  294. /*
  295. Math environments like theorem, lemma, proof etc...
  296. */
  297. div.theorem, div.lemma, div.corollary, div.proposition, div.conjecture {
  298. display: block;
  299. margin: 0.75em 0;
  300. font-style: italic;
  301. }
  302. div.proof, div.definition, div.remark, div.motivation {
  303. display: block;
  304. margin: 0.75em 0;
  305. font-style: normal;
  306. }
  307. div.proof::after {
  308. content: "\25FC";
  309. display: block;
  310. text-align: right;
  311. }
  312. /*
  313. The little text saying "Theorem 2. ", "Conjecture 3. ", "Remark 7. "
  314. */
  315. span.theorem, span.lemma, span.corollary, span.proposition,
  316. span.conjecture, span.definition {
  317. font-weight: bold;
  318. font-style: normal;
  319. }
  320. span.remark, span.proof, span.motivation {
  321. font-weight: normal;
  322. font-style: italic;
  323. }
  324. span.theoremName {
  325. font-weight: normal;
  326. font-style: normal;
  327. }
  328. /*
  329. MathJax Typesetting background
  330. */
  331. #MJloading {
  332. position: fixed;
  333. left: 50%;
  334. top: 50%;
  335. transform: translate(-50%, -50%) rotate(-30deg);
  336. z-index: -1;
  337. overflow: visible;
  338. font-size: 3em;
  339. font-weight: bold;
  340. text-align: center;
  341. color: LightGray;
  342. }
  343. /*
  344. focusHere styling
  345. */
  346. #focusHere::before {
  347. content: "";
  348. display: inline-block;
  349. position: absolute;
  350. left: 0;
  351. width: 1em;
  352. height: 1em;
  353. border-radius: 0.5em;
  354. background: lightsalmon;
  355. }
  356. /*
  357. reference list styling
  358. */
  359. ul.referenceList {
  360. list-style-type: none;
  361. }
  362. /* reference [x] styling */
  363. .ref-nbr {}
  364. /* reference parts styling (author, title, etc.) */
  365. .ref-authors {font-family: "LModern-SC";}
  366. .ref-title {font-style: italic;}
  367. .ref-journal {}
  368. .ref-volume {}
  369. .ref-issue {font-weight: bold;}
  370. .ref-year {}
  371. .ref-pages {}
  372. /*
  373. animated span
  374. */
  375. #anim1 {
  376. color: lightsalmon;
  377. display: inline-block;
  378. animation-name: rotator;
  379. animation-duration: 3s;
  380. animation-timing-function: linear;
  381. animation-iteration-count: infinite;
  382. }
  383. @keyframes rotator {
  384. from {transform: rotate(0deg);}
  385. to {transform: rotate(360deg);}
  386. }