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.

469 lines
7.3 KiB

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