my blog lives here now
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.

596 lines
9.2 KiB

2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
  1. $purple: #4834d4;
  2. $orange: #ffbe76;
  3. $blonde: #f5ddbc;
  4. $light-purple: #faf0fa;
  5. $yugo: #ea8472;
  6. $pink_glamour: #ff7979;
  7. $carmine_pink: #eb4d4b;
  8. $header: $orange;
  9. $header-height: 50px;
  10. $max-width: 80ch;
  11. .mathpar, .math-paragraph {
  12. display: flex;
  13. flex-direction: row;
  14. flex-wrap: wrap;
  15. justify-content: space-around;
  16. align-items: center;
  17. > figure {
  18. width: auto;
  19. }
  20. }
  21. a#mastodon {
  22. display: none;
  23. }
  24. html, body {
  25. min-height: 100%;
  26. height: 100%;
  27. margin: 0;
  28. background-color: white;
  29. font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
  30. }
  31. body {
  32. display: flex;
  33. flex-direction: column;
  34. counter-reset: theorem figure;
  35. }
  36. div#header {
  37. background-color: $header;
  38. height: $header-height;
  39. display: flex;
  40. flex-direction: row;
  41. align-items: stretch;
  42. justify-content: space-between;
  43. flex-wrap: nowrap;
  44. overflow-x: auto;
  45. div#logo {
  46. margin-left: .5em;
  47. line-height: $header-height;
  48. padding-left: .5em;
  49. padding-right: .5em;
  50. font-size: 18pt;
  51. a {
  52. color: black;
  53. text-decoration: none;
  54. }
  55. transition: background-color .2s ease-in-out;
  56. }
  57. div#logo:hover {
  58. background-color: darken($header, 10%);
  59. }
  60. div#navigation {
  61. margin-right: .5em;
  62. display: flex;
  63. flex-direction: row;
  64. align-items: stretch;
  65. align-self: flex-end;
  66. justify-content: flex-end;
  67. line-height: $header-height;
  68. a {
  69. color: black;
  70. text-decoration: none;
  71. margin-left: .5em;
  72. margin-right: .5em;
  73. }
  74. div.nav-button {
  75. height: 100%;
  76. transition: background-color .2s ease-in-out;
  77. }
  78. div.nav-button:hover {
  79. background-color: darken($header, 10%);
  80. }
  81. }
  82. }
  83. div#content, div.post-list-synopsys {
  84. max-width: $max-width + 4ch;
  85. margin: 0px auto 0px auto;
  86. flex: 1 0 auto;
  87. padding: 2ch;
  88. span.katex, span.together {
  89. display: inline-block;
  90. }
  91. span.together {
  92. white-space: nowrap;
  93. }
  94. p {
  95. code {
  96. display: inline-block;
  97. }
  98. span.qed {
  99. float: right;
  100. }
  101. span.theorem ::after {
  102. counter-increment: theorem;
  103. content: " " counter(theorem);
  104. }
  105. span.theorem, span.paragraph-marker {
  106. font-style: italic;
  107. }
  108. span.word {
  109. display: inline-block;
  110. }
  111. }
  112. p.image {
  113. text-align: center !important;
  114. }
  115. h1 {
  116. max-width: 120ch;
  117. }
  118. > article {
  119. > blockquote {
  120. width: 85%;
  121. margin: auto;
  122. border-left: 12px solid $purple;
  123. border-right: 3px dashed $purple;
  124. border-top: 3px dashed $purple;
  125. border-bottom: 3px dashed $purple;
  126. padding: 2ch;
  127. }
  128. > div.code-container {
  129. // width: 80%;
  130. // margin: auto;
  131. pre {
  132. padding: 0px 1em;
  133. width: 80%;
  134. margin: auto;
  135. }
  136. > span {
  137. display: inline;
  138. }
  139. }
  140. }
  141. div.code-container {
  142. padding-top: 5px;
  143. background-color: $light-purple;
  144. border-radius: 5px;
  145. border: 1px solid darken($light-purple, 10%);
  146. overflow-x: auto;
  147. > div.code-tag {
  148. background-color: darken($light-purple, 10%);
  149. overflow: hidden;
  150. line-height: 80%;
  151. font-size: 12pt;
  152. margin-top: 5px;
  153. width: 100%;
  154. span {
  155. padding: 0.5em 1em 0.25em 1em;
  156. border-top-left-radius: 10px;
  157. box-shadow: 1px 1px darken($light-purple, 20%);
  158. // display: none;
  159. float: right;
  160. }
  161. }
  162. pre {
  163. overflow-x: auto;
  164. }
  165. div.sourceCode {
  166. padding: 0px .5em;
  167. }
  168. }
  169. div.code-container.custom-tag {
  170. > span::after {
  171. display: none;
  172. }
  173. }
  174. div.code-container.continues {
  175. > span {
  176. display: none;
  177. }
  178. }
  179. div.warning {
  180. &:before {
  181. content: "Heads up!";
  182. display: block;
  183. font-size: 16pt;
  184. }
  185. margin: 16px auto;
  186. width: 85%;
  187. border-left: 12px solid $carmine_pink;
  188. border-right: 3px dashed $carmine_pink;
  189. border-top: 3px dashed $carmine_pink;
  190. border-bottom: 3px dashed $carmine_pink;
  191. padding: 2ch;
  192. &>:first-child {
  193. margin-top: 0.5em;
  194. }
  195. &>:last-child {
  196. margin-bottom: 0px;
  197. }
  198. }
  199. div.text-image {
  200. display: flex;
  201. margin-bottom: -18px;
  202. > figure {
  203. min-width: 25px;
  204. padding-left: 2em;
  205. }
  206. }
  207. * {
  208. max-width: 100%;
  209. }
  210. details {
  211. summary {
  212. margin-left: 1em;
  213. font-size: 14pt;
  214. padding: .2em 1em;
  215. }
  216. border-radius: 5px;
  217. border: 1px solid $purple;
  218. padding: .2em 1em;
  219. background-color: white;
  220. margin-top: 0.5em;
  221. margin-bottom: 0.5em;
  222. transition: font-size 0.3s ease-in-out, background-color 0.3s ease-in-out;
  223. transform: rotate3d(0, 0, 0, 0);
  224. }
  225. details[open] {
  226. font-size: 14pt;
  227. }
  228. .special-thanks {
  229. display: flex;
  230. flex-direction: column;
  231. align-items: center;
  232. justify-content: space-around;
  233. p {
  234. font-size: 21pt;
  235. margin-top: .5em;
  236. margin-bottom: 0px;
  237. }
  238. ul {
  239. list-style: none;
  240. li {
  241. margin: .5em 0px;
  242. border-radius: 10px;
  243. border: 1px solid $purple;
  244. background-color: $light-purple;
  245. padding: 1em;
  246. a {
  247. text-decoration: underline;
  248. }
  249. transition: all 0.2s ease-in-out;
  250. }
  251. li:hover {
  252. border-radius: 5px;
  253. transform: scale(1.01);
  254. background-color: lighten($light-purple, 5%);
  255. }
  256. }
  257. }
  258. .eqn-list {
  259. list-style: none;
  260. direction: rtl;
  261. counter-reset: equation;
  262. li {
  263. counter-increment: equation;
  264. span.katex-display {
  265. margin: 2px;
  266. }
  267. * {
  268. direction: ltr;
  269. }
  270. }
  271. li::marker {
  272. content: "(" counter(equation) ")";
  273. font-family: KaTeX_Main, Times New Roman, serif;
  274. }
  275. }
  276. font-size: 14pt;
  277. line-height: 1.4;
  278. span.katex-display {
  279. overflow-x: auto;
  280. overflow-y: clip;
  281. }
  282. }
  283. .footnote-back {
  284. margin-left: 0.5em;
  285. }
  286. div.info, span#reading-length {
  287. padding-left: 1em;
  288. font-style: italic;
  289. }
  290. span#reading-length::before {
  291. content: "Word count: "
  292. }
  293. div#footer {
  294. display: flex;
  295. align-items: center;
  296. justify-content: space-between;
  297. padding-left: 1em;
  298. padding-right: 1em;
  299. background-color: $light-purple;
  300. height: 50px;
  301. }
  302. .definition {
  303. text-decoration: dotted underline;
  304. }
  305. .post-list {
  306. list-style: none;
  307. padding: 0px;
  308. width: 90%;
  309. margin: auto;
  310. div.post-list-item {
  311. margin-top: .2em;
  312. margin-bottom: .2em;
  313. padding: 1em;
  314. border-radius: 10px;
  315. background-color: $light-purple;
  316. div.post-list-header {
  317. display: flex;
  318. justify-content: space-between;
  319. flex-wrap: wrap;
  320. align-items: flex-end;
  321. a {
  322. font-size: 14pt;
  323. padding-right: 2em;
  324. }
  325. }
  326. font-size: 11pt;
  327. }
  328. }
  329. table {
  330. margin: auto;
  331. border-collapse: collapse;
  332. td, th {
  333. border: 1px solid $purple;
  334. text-align: center;
  335. padding: 0px 1em 0px 1em;
  336. > * {
  337. vertical-align: middle;
  338. }
  339. }
  340. td.image {
  341. padding: 0px;
  342. img {
  343. margin-top: auto;
  344. }
  345. }
  346. }
  347. figure {
  348. width: 100%;
  349. margin: auto;
  350. display: flex;
  351. flex-direction: column;
  352. align-items: center;
  353. justify-content: space-around;
  354. div {
  355. width: 100%;
  356. overflow-x: auto;
  357. }
  358. > p {
  359. margin-bottom: 0px;
  360. }
  361. figcaption {
  362. font-size: 14pt;
  363. display: inline-block;
  364. > p {
  365. margin-top: 0px;
  366. margin-bottom: 0px;
  367. }
  368. }
  369. // figcaption::before {
  370. // counter-increment: figure;
  371. // content: "Figure " counter(figure) ". ";
  372. // display: inline;
  373. // }
  374. }
  375. @media only screen and (max-width: $max-width) {
  376. div#content {
  377. margin-left: 1px;
  378. margin-right: 1px;
  379. padding: 1ch;
  380. div.text-image {
  381. display: block;
  382. > figure {
  383. padding-left: 0px;
  384. }
  385. }
  386. figure figcaption {
  387. max-width: 85%;
  388. margin: auto;
  389. p {
  390. font-style: italic;
  391. }
  392. }
  393. ul {
  394. padding-left: 20px;
  395. }
  396. p {
  397. hyphens: auto;
  398. span.katex {
  399. display: inline;
  400. }
  401. }
  402. }
  403. .mathpar {
  404. overflow-x: auto;
  405. justify-content: space-evenly;
  406. > * {
  407. margin-left: .2em;
  408. margin-right: .2em;
  409. flex-shrink: 0;
  410. flex-grow: 0;
  411. }
  412. }
  413. header {
  414. nav div {
  415. &>:nth-child(3) {
  416. display: none;
  417. }
  418. }
  419. }
  420. }
  421. // Contact page
  422. .contact-list {
  423. display: flex;
  424. flex-direction: row;
  425. flex-wrap: wrap;
  426. justify-content: space-around;
  427. align-items: center;
  428. .contact-card {
  429. margin: 0px .5em;
  430. border: 1px solid $purple;
  431. border-radius: 10px;
  432. background-color: $blonde;
  433. padding: 0px 1em;
  434. .username, .username * {
  435. font-size: 21pt;
  436. color: $purple;
  437. }
  438. p {
  439. display: flex;
  440. align-items: center;
  441. justify-content: space-evenly;
  442. max-width: 40ch !important;
  443. }
  444. transition: all 0.2s ease-in-out;
  445. }
  446. .contact-card:hover {
  447. margin: 0px .55em;
  448. background-color: darken($blonde, 10%);
  449. border-radius: 5px;
  450. transform: scale(1.01);
  451. }
  452. }
  453. span.math.inline {
  454. display: inline-block;
  455. }
  456. @font-face {
  457. font-family: 'Fantasque Sans Mono';
  458. src: url('fonts/FantasqueSansMono-Regular.woff2') format('woff2');
  459. font-weight: 400;
  460. font-style: normal;
  461. }