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.

821 lines
16 KiB

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