Mobile-responsive personal website, generated using Hugo. https://kevin-mok.com/
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.

764 lines
16 KiB

  1. /* Base16 Eighties Colorscheme by Chris Kempson (http://chriskempson.com) */
  2. // base colors {{{ //
  3. $base04: #a09f93;
  4. $base05: #d3d0c8;
  5. $base-red: #f2777a;
  6. $base-orange: #f99157;
  7. $base-yellow: #ffcc66;
  8. $base-green: #99cc99;
  9. $base-sky-blue: #66cccc;
  10. $base-blue: #6699cc;
  11. $base-violet: #cc99cc;
  12. $base-dark-orange: #d27b53;
  13. /* .base00 { color: #2d2d2d; }
  14. .base01 { color: #393939; }
  15. .base02 { color: #515151; }
  16. .base03 { color: #747369; }
  17. .base04 { color: #a09f93; }
  18. .base06 { color: #e8e6df; }
  19. .base07 { color: #f2f0ec; } */
  20. .base08 { color: $base-red; }
  21. .base09 { color: $base-orange; }
  22. .base0a { color: $base-yellow; }
  23. .base0b { color: $base-green; }
  24. .base0c { color: $base-sky-blue; }
  25. .base0d { color: $base-blue; }
  26. .base0e { color: $base-violet; }
  27. .base0f { color: $base-dark-orange; }
  28. // }}} base colors //
  29. // mixins {{{ //
  30. $max-page-width: 52em;
  31. $phone-width: 800px;
  32. @mixin side-padding-rem($n) {
  33. padding-left: $n * 1rem;
  34. padding-right: $n * 1rem;
  35. }
  36. @mixin vert-padding-rem($n) {
  37. padding-top: $n * 1rem;
  38. padding-bottom: $n * 1rem;
  39. }
  40. @mixin auto-center() {
  41. margin-left: auto;
  42. margin-right: auto;
  43. }
  44. @mixin article-body() {
  45. /* background-color: #e6e6fa; */
  46. background-color: #cbbeb5;
  47. color: #2d2d2d;
  48. @include side-padding-rem(8);
  49. @include vert-padding-rem(1);
  50. /* min-height: 50%; */
  51. /* min-height: 30em; */
  52. @media (max-width: $max-page-width) {
  53. @include side-padding-rem(2);
  54. }
  55. }
  56. @mixin a-color($color) {
  57. a {
  58. color: $color;
  59. &:visited {
  60. color: $color;
  61. }
  62. &:active {
  63. color: $color;
  64. }
  65. }
  66. }
  67. // }}} mixins //
  68. // general elements {{{ //
  69. body {
  70. margin: 0;
  71. background-color: #2d2d2d;
  72. color: #f2f0ec;
  73. line-height: 1.5;
  74. font-size: 100%;
  75. /* font-family: 'Source Code Pro', monospace; */
  76. font-family: 'Hack', monospace;
  77. display: flex;
  78. flex-direction: column;
  79. min-height: 100vh;
  80. @include a-color($base-sky-blue);
  81. }
  82. .container {
  83. max-width: $max-page-width;
  84. margin-left: auto;
  85. margin-right: auto;
  86. flex: 1;
  87. .copyright {
  88. @include a-color(#747369);
  89. }
  90. @media (max-width: $max-page-width) {
  91. width: 100%;
  92. }
  93. }
  94. div {
  95. .right {
  96. float:right;
  97. }
  98. .clearfix {
  99. overflow: auto;
  100. }
  101. }
  102. article {
  103. .single {
  104. section {
  105. @include article-body();
  106. }
  107. }
  108. }
  109. .article-list {
  110. article {
  111. @include article-body();
  112. }
  113. }
  114. header {
  115. margin-top: 1.5rem;
  116. margin-bottom: 1rem;
  117. @media (max-width: $max-page-width) {
  118. margin-top: 0;
  119. @include side-padding-rem(2);
  120. }
  121. }
  122. footer {
  123. margin-top: 2rem;
  124. margin-bottom: 1rem;
  125. text-align: center;
  126. font-size: 0.9em;
  127. color: #747369;
  128. // bottom: 0;
  129. // position: absolute;
  130. // width: 100%;
  131. .container {
  132. background-color: #393939;
  133. max-width: 62em;
  134. @include auto-center();
  135. @include vert-padding-rem(.1);
  136. }
  137. @media (max-width: $max-page-width) {
  138. margin-top: 0;
  139. margin-bottom: 0;
  140. }
  141. @media (max-width: $phone-width) {
  142. font-size: 0.8em;
  143. }
  144. }
  145. /* Typography */
  146. @for $i from 1 to 6 {
  147. h#{$i} {
  148. font-weight: bold;
  149. line-height: 1.25;
  150. margin-top: 1em;
  151. margin-bottom: .5em;
  152. }
  153. }
  154. p {
  155. margin-top: 0;
  156. margin-bottom: 1rem;
  157. }
  158. h1 { font-size: 2rem }
  159. h2 { font-size: 1.5rem }
  160. h3 { font-size: 1.25rem }
  161. h4 { font-size: 1rem }
  162. h5 { font-size: .875rem }
  163. h6 { font-size: .75rem }
  164. pre, code {
  165. font-family: inherit;
  166. font-size: inherit;
  167. }
  168. // }}} general elements //
  169. // header {{{ //
  170. header {
  171. a {
  172. .path .path:visited {
  173. color: #6699cc;
  174. }
  175. }
  176. span {
  177. caret {
  178. color: #f2f0ec;
  179. }
  180. }
  181. }
  182. // }}} header //
  183. // footer {{{ //
  184. footer {
  185. @include a-color(#747369);
  186. }
  187. // }}} footer //
  188. // 404 {{{ //
  189. .page-not-found {
  190. h1 {
  191. text-align: center;
  192. font-size: 5em;
  193. }
  194. h2 {
  195. text-align: center;
  196. font-size: 3em;
  197. color: $base04;
  198. margin-bottom: 4rem;
  199. }
  200. @media (max-width: $max-page-width) {
  201. h1 {
  202. font-size: 3em;
  203. }
  204. h2 {
  205. font-size: 2em;
  206. }
  207. }
  208. }
  209. // }}} 404 //
  210. // homepage {{{ //
  211. #homepage {
  212. // about {{{ //
  213. #about {
  214. font-size: 1.25rem;
  215. h1 {
  216. margin-top: 1.25rem;
  217. font-size: 2rem;
  218. color: $base-yellow;
  219. text-align: center;
  220. // @media (max-width: $max-page-width) {
  221. // @include side-padding-rem(2);
  222. // }
  223. }
  224. // me-equation {{{ //
  225. .me-equation {
  226. margin-top: 3em;
  227. text-align: center;
  228. display: flex;
  229. // display: grid;
  230. // grid-template-columns: repeat(3, 2fr 1fr) 2fr;
  231. justify-content: center; /* align horizontal */
  232. align-items: center; /* align vertical */
  233. .equation-part {
  234. // width: 33%;
  235. display: flex;
  236. flex: 1;
  237. justify-content: center; /* align horizontal */
  238. align-items: center; /* align vertical */
  239. a {
  240. text-decoration: none;
  241. width: 70%;
  242. }
  243. img {
  244. // width: 7em;
  245. width: 70%;
  246. // width: 15vw;
  247. // min-width: 25%;
  248. // height: 25%;
  249. height: 100%;
  250. // height: auto;
  251. // height: 20vw;
  252. // object-fit: contain;
  253. // flex-basis: 20%;
  254. // flex: 2 2 0;
  255. // border-radius: 1.5em;
  256. border-radius: 1.1em;
  257. display: inline;
  258. &#gnu {
  259. background-color: $base04;
  260. // background-color: $base05;
  261. }
  262. }
  263. p {
  264. // font-size: 3rem;
  265. font-size: 3vw;
  266. // width: 20%;
  267. // flex: 1;
  268. // display: inline;
  269. display: inline-block;
  270. @include side-padding-rem(0.2);
  271. }
  272. }
  273. // media {{{ //
  274. // @media (max-width: $phone-width) {
  275. // margin-top: 2em;
  276. // display: block;
  277. // p {
  278. // display: block;
  279. // @include vert-padding-rem(0.1);
  280. // margin-bottom: 0rem;
  281. // }
  282. // }
  283. // @media (max-width: 800px) {
  284. @media (max-width: $phone-width) {
  285. // flex-direction: column;
  286. flex-wrap: wrap;
  287. margin-top: 2em;
  288. justify-content: space-around; /* align horizontal */
  289. // height: 100vh;
  290. // height: 50vh;
  291. .equation-part {
  292. // min-width: 50vw;
  293. // display: inline-block;
  294. // min-width: 50%;
  295. min-width: 33%;
  296. // max-height: 25vh;
  297. // flex-direction: column;
  298. img {
  299. // display: block;
  300. // width: 50%;
  301. flex: 1.5;
  302. // flex: 1;
  303. // height: 50%;
  304. // max-height: 30%;
  305. // max-height: 25vh;
  306. &#hexatar {
  307. // max-width: 70%;
  308. // max-width: 33%;
  309. max-width: 28%;
  310. // margin-top: 2rem;
  311. margin-top: 1.75rem;
  312. }
  313. }
  314. p {
  315. // font-size: 3rem;
  316. font-size: 6vw;
  317. // width: 20%;
  318. flex: 1;
  319. // @include side-padding-rem(0.2);
  320. }
  321. &#uoft-part {
  322. justify-content: flex-end;
  323. }
  324. }
  325. }
  326. // }}} media //
  327. }
  328. // }}} me-equation //
  329. @media (max-width: $phone-width) {
  330. // font-size: 1.1em;
  331. font-size: .9em;
  332. h1 {
  333. // font-size: 1.75rem;
  334. font-size: 1.4rem;
  335. }
  336. }
  337. }
  338. // }}} about //
  339. @media (max-width: $max-page-width) {
  340. margin-bottom: 2rem;
  341. }
  342. }
  343. /* .homepage section.categories,
  344. .homepage section.tags {
  345. padding-left: 2rem;
  346. padding-right: 2rem;
  347. }
  348. .homepage .category,
  349. .homepage .category a,
  350. .homepage .tag,
  351. .homepage .tag a {
  352. color: #cc99cc;
  353. }
  354. .homepage .tag {
  355. margin-right: 2em;
  356. } */
  357. // }}} homepage //
  358. // TODO: converted up to here
  359. // hero {{{ //
  360. h1.site-title {
  361. text-align: center;
  362. /* font-size: 3.5em; */
  363. font-size: 4.8em;
  364. // color: #66cccc;
  365. color: $base05;
  366. margin-top: 0.5em;
  367. margin-bottom: 0;
  368. @include a-color($base-sky-blue);
  369. a {
  370. text-decoration: none;
  371. }
  372. @media (max-width: $max-page-width) {
  373. font-size: 3em;
  374. }
  375. @media (max-width: $phone-width) {
  376. // font-size: 3em;
  377. // font-size: 2.5em;
  378. font-size: 2em;
  379. }
  380. }
  381. .hero-logo img {
  382. width: 100%;
  383. }
  384. .nav-bar {
  385. margin-left: .5em;
  386. // margin-bottom: 1em;
  387. // margin-top: .75em;
  388. @include vert-padding-rem(1);
  389. @media (max-width: $phone-width) {
  390. // font-size: .9em;
  391. font-size: .8em;
  392. }
  393. }
  394. .hero-tagline{
  395. margin-top: .3em;
  396. font-size: .8rem;
  397. // font-style: italic;
  398. text-align: center;
  399. .icon {
  400. width: 1.25rem;
  401. }
  402. }
  403. // }}} hero //
  404. // article-list {{{ //
  405. .article-list h1.list-title {
  406. font-size: 3em;
  407. color: #ffcc66;
  408. }
  409. .article-list article {
  410. padding-top: 4rem;
  411. padding-bottom: 4rem;
  412. margin-bottom: 4rem;
  413. }
  414. .article-list article h2.headline,
  415. .article-list article h2.headline a {
  416. margin-top: 0;
  417. color: #6699cc;
  418. }
  419. .article-list article .meta {
  420. margin-bottom: 1rem;
  421. }
  422. .article-list article .meta .key {
  423. color: #747369;
  424. }
  425. .article-list article .meta .val,
  426. .article-list article .meta .val a {
  427. color: #cc99cc;
  428. }
  429. .article-list article section.summary a { color: #d27b53; }
  430. // }}} article-list //
  431. // article.single {{{ //
  432. article.single .meta {
  433. font-size: 0.9em;
  434. text-align: right;
  435. }
  436. article.single .meta .key {
  437. color: #747369;
  438. }
  439. article.single .meta .val, article.single .meta .val a {
  440. color: #cc99cc;
  441. }
  442. @media (max-width: $max-page-width) {
  443. article.single .meta {
  444. padding-left: 2rem;
  445. padding-right: 2rem;
  446. }
  447. }
  448. article.single h1.headline {
  449. margin-top: 0;
  450. font-size: 3em;
  451. color: #ffcc66;
  452. }
  453. @media (max-width: $max-page-width) {
  454. article.single h1.headline {
  455. padding-left: 2rem;
  456. padding-right: 2rem;
  457. }
  458. }
  459. article.single section.body {
  460. padding-top: 4rem;
  461. padding-bottom: 3rem;
  462. }
  463. @media (max-width: $max-page-width) {
  464. article.single section.body {
  465. padding-top: 2rem;
  466. padding-bottom: 1rem;
  467. }
  468. }
  469. /* Highlight Colors */
  470. article.single section.body h1 { color: #6699cc; }
  471. article.single section.body h2 { color: #99cc99; }
  472. article.single section.body h3 { color: #f99157; }
  473. article.single section.body h4 { color: #f2777a; }
  474. article.single section.body h5 { color: #515151; }
  475. article.single section.body h6 { color: #747369; }
  476. article.single section.body a,a:visited { color: #a06700; }
  477. /* Article Elements */
  478. article.single * {
  479. max-width: 100%;
  480. }
  481. article.single pre {
  482. margin-top: 0;
  483. margin-bottom: 1rem;
  484. overflow-x: scroll;
  485. border-radius: 3px;
  486. padding: 2rem;
  487. }
  488. article.single p code {
  489. padding: 0.2em 0.5em;
  490. border-radius: 3px;
  491. background: #747369;
  492. color: #f2f0ec;
  493. }
  494. article.single figure, article.single div.highlight {
  495. box-sizing: border-box;
  496. max-width: 52rem;
  497. width: 52rem;
  498. margin-left: -8rem;
  499. margin-right: -8rem;
  500. margin-bottom: 1rem;
  501. padding: 1em;
  502. background-color: #393939;
  503. }
  504. @media (max-width: $max-page-width) {
  505. article.single figure, article.single div.highlight {
  506. width: 100%;
  507. margin-left: 0;
  508. margin-right: 0;
  509. border-radius: 3px;
  510. }
  511. }
  512. article.single figure img {
  513. max-width: 100%;
  514. width: 100%;
  515. border-radius: 3px;
  516. }
  517. article.single figure figcaption {
  518. margin-top: 1rem;
  519. }
  520. article.single figure figcaption h4 {
  521. margin-top: 0;
  522. text-align: center;
  523. font-style: italic;
  524. font-weight: normal;
  525. color: #f2f0ec;
  526. }
  527. article.single table {
  528. border-collapse: separate;
  529. border-spacing: 0;
  530. max-width: 100%;
  531. width: 100%;
  532. }
  533. article.single th,
  534. article.single td {
  535. padding: .25rem 1rem;
  536. line-height: inherit;
  537. border-bottom-width: 1px;
  538. border-bottom-style: solid;
  539. border-bottom-color: $base04;
  540. }
  541. article.single tr:last-child td {
  542. border-bottom: 0;
  543. }
  544. article.single th {
  545. text-align: left;
  546. font-weight: bold;
  547. vertical-align: bottom;
  548. }
  549. article.single td { vertical-align: top }
  550. article.single blockquote {
  551. margin-left: 2rem;
  552. margin-right: 3rem;
  553. padding-left: 1rem;
  554. border-left: 5px solid #66cccc;
  555. }
  556. article.single hr {
  557. border: 0;
  558. border-bottom-style: solid;
  559. border-bottom-width: 1px;
  560. border-bottom-color: $base04;
  561. }
  562. // }}} article.single //
  563. // Pygments {{{ //
  564. pre { background: #2d2d2d; color: #f2f0ec }
  565. .highlight .hll { background-color: #515151 }
  566. .highlight .c { color: #747369 } /* Comment */
  567. .highlight .err { color: #f2777a } /* Error */
  568. .highlight .k { color: #cc99cc } /* Keyword */
  569. .highlight .l { color: #f99157 } /* Literal */
  570. .highlight .n { color: #f2f0ec } /* Name */
  571. .highlight .o { color: #66cccc } /* Operator */
  572. .highlight .p { color: #f2f0ec } /* Punctuation */
  573. .highlight .cm { color: #747369 } /* Comment.Multiline */
  574. .highlight .cp { color: #747369 } /* Comment.Preproc */
  575. .highlight .c1 { color: #747369 } /* Comment.Single */
  576. .highlight .cs { color: #747369 } /* Comment.Special */
  577. .highlight .gd { color: #f2777a } /* Generic.Deleted */
  578. .highlight .ge { font-style: italic } /* Generic.Emph */
  579. .highlight .gh { color: #f2f0ec; font-weight: bold } /* Generic.Heading */
  580. .highlight .gi { color: #99cc99 } /* Generic.Inserted */
  581. .highlight .gp { color: #747369; font-weight: bold } /* Generic.Prompt */
  582. .highlight .gs { font-weight: bold } /* Generic.Strong */
  583. .highlight .gu { color: #66cccc; font-weight: bold } /* Generic.Subheading */
  584. .highlight .kc { color: #cc99cc } /* Keyword.Constant */
  585. .highlight .kd { color: #cc99cc } /* Keyword.Declaration */
  586. .highlight .kn { color: #66cccc } /* Keyword.Namespace */
  587. .highlight .kp { color: #cc99cc } /* Keyword.Pseudo */
  588. .highlight .kr { color: #cc99cc } /* Keyword.Reserved */
  589. .highlight .kt { color: #ffcc66 } /* Keyword.Type */
  590. .highlight .ld { color: #99cc99 } /* Literal.Date */
  591. .highlight .m { color: #f99157 } /* Literal.Number */
  592. .highlight .s { color: #99cc99 } /* Literal.String */
  593. .highlight .na { color: #6699cc } /* Name.Attribute */
  594. .highlight .nb { color: #f2f0ec } /* Name.Builtin */
  595. .highlight .nc { color: #ffcc66 } /* Name.Class */
  596. .highlight .no { color: #f2777a } /* Name.Constant */
  597. .highlight .nd { color: #66cccc } /* Name.Decorator */
  598. .highlight .ni { color: #f2f0ec } /* Name.Entity */
  599. .highlight .ne { color: #f2777a } /* Name.Exception */
  600. .highlight .nf { color: #6699cc } /* Name.Function */
  601. .highlight .nl { color: #f2f0ec } /* Name.Label */
  602. .highlight .nn { color: #ffcc66 } /* Name.Namespace */
  603. .highlight .nx { color: #6699cc } /* Name.Other */
  604. .highlight .py { color: #f2f0ec } /* Name.Property */
  605. .highlight .nt { color: #66cccc } /* Name.Tag */
  606. .highlight .nv { color: #f2777a } /* Name.Variable */
  607. .highlight .ow { color: #66cccc } /* Operator.Word */
  608. .highlight .w { color: #f2f0ec } /* Text.Whitespace */
  609. .highlight .mf { color: #f99157 } /* Literal.Number.Float */
  610. .highlight .mh { color: #f99157 } /* Literal.Number.Hex */
  611. .highlight .mi { color: #f99157 } /* Literal.Number.Integer */
  612. .highlight .mo { color: #f99157 } /* Literal.Number.Oct */
  613. .highlight .sb { color: #99cc99 } /* Literal.String.Backtick */
  614. .highlight .sc { color: #f2f0ec } /* Literal.String.Char */
  615. .highlight .sd { color: #747369 } /* Literal.String.Doc */
  616. .highlight .s2 { color: #99cc99 } /* Literal.String.Double */
  617. .highlight .se { color: #f99157 } /* Literal.String.Escape */
  618. .highlight .sh { color: #99cc99 } /* Literal.String.Heredoc */
  619. .highlight .si { color: #f99157 } /* Literal.String.Interpol */
  620. .highlight .sx { color: #99cc99 } /* Literal.String.Other */
  621. .highlight .sr { color: #99cc99 } /* Literal.String.Regex */
  622. .highlight .s1 { color: #99cc99 } /* Literal.String.Single */
  623. .highlight .ss { color: #99cc99 } /* Literal.String.Symbol */
  624. .highlight .bp { color: #f2f0ec } /* Name.Builtin.Pseudo */
  625. .highlight .vc { color: #f2777a } /* Name.Variable.Class */
  626. .highlight .vg { color: #f2777a } /* Name.Variable.Global */
  627. .highlight .vi { color: #f2777a } /* Name.Variable.Instance */
  628. .highlight .il { color: #f99157 } /* Literal.Number.Integer.Long */
  629. /*# sourceMappingURL=style.css.map */
  630. // }}} Pygments //