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.

840 lines
17 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. .date {
  378. float: right;
  379. color: $base03;
  380. }
  381. .project {
  382. @include vert-padding-rem(.2);
  383. h2 {
  384. color: $base-sky-blue;
  385. display: inline;
  386. }
  387. img {
  388. height: 1.2em;
  389. }
  390. .project-link {
  391. &:hover {
  392. text-decoration: none;
  393. }
  394. }
  395. .btn {
  396. display: inline;
  397. background-color: transparent;
  398. margin-bottom: 5px;
  399. padding-left: 7px;
  400. &:focus, &:active {
  401. outline: none !important;
  402. box-shadow: none;
  403. }
  404. }
  405. // [id^="details-"] {
  406. // margin-top: .5em;
  407. // }
  408. }
  409. }// }}}
  410. // TODO: converted up to here
  411. // hero {{{ //
  412. h1.site-title {// {{{
  413. text-align: center;
  414. /* font-size: 3.5em; */
  415. font-size: 4.8em;
  416. // color: #66cccc;
  417. color: $base05;
  418. margin-top: 1rem;
  419. margin-bottom: 0.5rem;
  420. @include a-color($base-sky-blue);
  421. a {
  422. text-decoration: none;
  423. }
  424. // @media (max-width: $max-page-width) {
  425. // font-size: 3em;
  426. // }
  427. // @media (max-width: $phone-width) {
  428. // // font-size: 3em;
  429. // // font-size: 2.5em;
  430. // font-size: 2em;
  431. // }
  432. }// }}}
  433. .hero-logo img {
  434. margin-top: 0.5rem;
  435. width: 100%;
  436. }
  437. .nav-bar {// {{{
  438. margin-left: .5em;
  439. // margin-bottom: 1em;
  440. // margin-top: .75em;
  441. @include vert-padding-rem(.5);
  442. .caret {
  443. color: #f2f0ec;
  444. margin-right: .75rem;
  445. }
  446. .nav-bar-links {
  447. display: inline;
  448. .nav-bar-link {
  449. padding-right: .5em;
  450. }
  451. }
  452. @media (max-width: $phone-width) {
  453. // font-size: .9em;
  454. font-size: .8em;
  455. }
  456. }// }}}
  457. .hero-tagline{// {{{
  458. margin-top: .3em;
  459. font-size: .8rem;
  460. // font-style: italic;
  461. text-align: center;
  462. .icon {
  463. width: 1.25rem;
  464. }
  465. }// }}}
  466. // }}} hero //
  467. // article-list {{{ //
  468. .article-list h1.list-title {
  469. font-size: 3em;
  470. color: #ffcc66;
  471. }
  472. .article-list article {
  473. padding-top: 4rem;
  474. padding-bottom: 4rem;
  475. margin-bottom: 4rem;
  476. }
  477. .article-list article h2.headline,
  478. .article-list article h2.headline a {
  479. margin-top: 0;
  480. color: #6699cc;
  481. }
  482. .article-list article .meta {
  483. margin-bottom: 1rem;
  484. }
  485. .article-list article .meta .key {
  486. color: #747369;
  487. }
  488. .article-list article .meta .val,
  489. .article-list article .meta .val a {
  490. color: #cc99cc;
  491. }
  492. .article-list article section.summary a { color: #d27b53; }
  493. // }}} article-list //
  494. // article.single {{{ //
  495. article.single {
  496. .meta {
  497. font-size: 0.9em;
  498. text-align: right;
  499. margin-top: .5rem;
  500. margin-bottom: .5rem;
  501. .key {
  502. color: #747369;
  503. }
  504. .val {
  505. color: #cc99cc;
  506. a {
  507. color: #cc99cc;
  508. }
  509. }
  510. }
  511. .body {
  512. padding-top: 1rem;
  513. padding-bottom: 3rem;
  514. }
  515. @media (max-width: $max-page-width) {
  516. .meta {
  517. padding-left: 2rem;
  518. padding-right: 2rem;
  519. }
  520. .body {
  521. padding-top: .5rem;
  522. padding-bottom: 1rem;
  523. }
  524. }
  525. }
  526. article.single h1.headline {
  527. margin-top: 0;
  528. font-size: 3em;
  529. color: #ffcc66;
  530. }
  531. @media (max-width: $max-page-width) {
  532. article.single h1.headline {
  533. padding-left: 2rem;
  534. padding-right: 2rem;
  535. }
  536. }
  537. /* Highlight Colors */
  538. article.single section.body h1 { color: #6699cc; }
  539. article.single section.body h2 { color: #99cc99; }
  540. article.single section.body h3 { color: #f99157; }
  541. article.single section.body h4 { color: #f2777a; }
  542. article.single section.body h5 { color: #515151; }
  543. article.single section.body h6 { color: #747369; }
  544. article.single section.body a,a:visited { color: #a06700; }
  545. /* Article Elements */
  546. article.single * {
  547. max-width: 100%;
  548. }
  549. article.single pre {
  550. margin-top: 0;
  551. margin-bottom: 1rem;
  552. // overflow-x: auto;
  553. border-radius: 3px;
  554. padding: 2rem;
  555. }
  556. article.single p code {
  557. padding: 0.2em 0.5em;
  558. border-radius: 3px;
  559. background: #747369;
  560. color: #f2f0ec;
  561. }
  562. article.single figure, article.single div.highlight {
  563. box-sizing: border-box;
  564. max-width: 52rem;
  565. width: 52rem;
  566. margin-bottom: 1rem;
  567. padding: 1em;
  568. background-color: #393939;
  569. }
  570. @media (max-width: $max-page-width) {
  571. article.single figure, article.single div.highlight {
  572. width: 100%;
  573. margin-left: 0;
  574. margin-right: 0;
  575. border-radius: 3px;
  576. }
  577. }
  578. article.single figure img {
  579. max-width: 100%;
  580. width: 100%;
  581. border-radius: 3px;
  582. }
  583. article.single figure figcaption {
  584. margin-top: 1rem;
  585. }
  586. article.single figure figcaption h4 {
  587. margin-top: 0;
  588. text-align: center;
  589. font-style: italic;
  590. font-weight: normal;
  591. color: #f2f0ec;
  592. }
  593. article.single table {
  594. border-collapse: separate;
  595. border-spacing: 0;
  596. max-width: 100%;
  597. width: 100%;
  598. }
  599. article.single th,
  600. article.single td {
  601. padding: .25rem 1rem;
  602. line-height: inherit;
  603. border-bottom-width: 1px;
  604. border-bottom-style: solid;
  605. border-bottom-color: $base04;
  606. }
  607. article.single tr:last-child td {
  608. border-bottom: 0;
  609. }
  610. article.single th {
  611. text-align: left;
  612. font-weight: bold;
  613. vertical-align: bottom;
  614. }
  615. article.single td { vertical-align: top }
  616. article.single blockquote {
  617. margin-left: 2rem;
  618. margin-right: 3rem;
  619. padding-left: 1rem;
  620. border-left: 5px solid #66cccc;
  621. }
  622. article.single hr {
  623. border: 0;
  624. border-bottom-style: solid;
  625. border-bottom-width: 1px;
  626. border-bottom-color: $base04;
  627. }
  628. // }}} article.single //
  629. // Pygments {{{ //
  630. pre { background: #2d2d2d; color: #f2f0ec }
  631. .highlight .hll { background-color: #515151 }
  632. .highlight .c { color: #747369 } /* Comment */
  633. .highlight .err { color: #f2777a } /* Error */
  634. .highlight .k { color: #cc99cc } /* Keyword */
  635. .highlight .l { color: #f99157 } /* Literal */
  636. .highlight .n { color: #f2f0ec } /* Name */
  637. .highlight .o { color: #66cccc } /* Operator */
  638. .highlight .p { color: #f2f0ec } /* Punctuation */
  639. .highlight .cm { color: #747369 } /* Comment.Multiline */
  640. .highlight .cp { color: #747369 } /* Comment.Preproc */
  641. .highlight .c1 { color: #747369 } /* Comment.Single */
  642. .highlight .cs { color: #747369 } /* Comment.Special */
  643. .highlight .gd { color: #f2777a } /* Generic.Deleted */
  644. .highlight .ge { font-style: italic } /* Generic.Emph */
  645. .highlight .gh { color: #f2f0ec; font-weight: bold } /* Generic.Heading */
  646. .highlight .gi { color: #99cc99 } /* Generic.Inserted */
  647. .highlight .gp { color: #747369; font-weight: bold } /* Generic.Prompt */
  648. .highlight .gs { font-weight: bold } /* Generic.Strong */
  649. .highlight .gu { color: #66cccc; font-weight: bold } /* Generic.Subheading */
  650. .highlight .kc { color: #cc99cc } /* Keyword.Constant */
  651. .highlight .kd { color: #cc99cc } /* Keyword.Declaration */
  652. .highlight .kn { color: #66cccc } /* Keyword.Namespace */
  653. .highlight .kp { color: #cc99cc } /* Keyword.Pseudo */
  654. .highlight .kr { color: #cc99cc } /* Keyword.Reserved */
  655. .highlight .kt { color: #ffcc66 } /* Keyword.Type */
  656. .highlight .ld { color: #99cc99 } /* Literal.Date */
  657. .highlight .m { color: #f99157 } /* Literal.Number */
  658. .highlight .s { color: #99cc99 } /* Literal.String */
  659. .highlight .na { color: #6699cc } /* Name.Attribute */
  660. .highlight .nb { color: #f2f0ec } /* Name.Builtin */
  661. .highlight .nc { color: #ffcc66 } /* Name.Class */
  662. .highlight .no { color: #f2777a } /* Name.Constant */
  663. .highlight .nd { color: #66cccc } /* Name.Decorator */
  664. .highlight .ni { color: #f2f0ec } /* Name.Entity */
  665. .highlight .ne { color: #f2777a } /* Name.Exception */
  666. .highlight .nf { color: #6699cc } /* Name.Function */
  667. .highlight .nl { color: #f2f0ec } /* Name.Label */
  668. .highlight .nn { color: #ffcc66 } /* Name.Namespace */
  669. .highlight .nx { color: #6699cc } /* Name.Other */
  670. .highlight .py { color: #f2f0ec } /* Name.Property */
  671. .highlight .nt { color: #66cccc } /* Name.Tag */
  672. .highlight .nv { color: #f2777a } /* Name.Variable */
  673. .highlight .ow { color: #66cccc } /* Operator.Word */
  674. .highlight .w { color: #f2f0ec } /* Text.Whitespace */
  675. .highlight .mf { color: #f99157 } /* Literal.Number.Float */
  676. .highlight .mh { color: #f99157 } /* Literal.Number.Hex */
  677. .highlight .mi { color: #f99157 } /* Literal.Number.Integer */
  678. .highlight .mo { color: #f99157 } /* Literal.Number.Oct */
  679. .highlight .sb { color: #99cc99 } /* Literal.String.Backtick */
  680. .highlight .sc { color: #f2f0ec } /* Literal.String.Char */
  681. .highlight .sd { color: #747369 } /* Literal.String.Doc */
  682. .highlight .s2 { color: #99cc99 } /* Literal.String.Double */
  683. .highlight .se { color: #f99157 } /* Literal.String.Escape */
  684. .highlight .sh { color: #99cc99 } /* Literal.String.Heredoc */
  685. .highlight .si { color: #f99157 } /* Literal.String.Interpol */
  686. .highlight .sx { color: #99cc99 } /* Literal.String.Other */
  687. .highlight .sr { color: #99cc99 } /* Literal.String.Regex */
  688. .highlight .s1 { color: #99cc99 } /* Literal.String.Single */
  689. .highlight .ss { color: #99cc99 } /* Literal.String.Symbol */
  690. .highlight .bp { color: #f2f0ec } /* Name.Builtin.Pseudo */
  691. .highlight .vc { color: #f2777a } /* Name.Variable.Class */
  692. .highlight .vg { color: #f2777a } /* Name.Variable.Global */
  693. .highlight .vi { color: #f2777a } /* Name.Variable.Instance */
  694. .highlight .il { color: #f99157 } /* Literal.Number.Integer.Long */
  695. /*# sourceMappingURL=style.css.map */
  696. // }}} Pygments //