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.

666 lines
13 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: 600px;
  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. font-size: 1.25rem;
  214. h1 {
  215. margin-top: 1.25rem;
  216. font-size: 2rem;
  217. color: $base-yellow;
  218. text-align: center;
  219. // @media (max-width: $max-page-width) {
  220. // @include side-padding-rem(2);
  221. // }
  222. }
  223. // me-equation {{{ //
  224. .me-equation {
  225. margin-top: 3em;
  226. text-align: center;
  227. display: flex;
  228. justify-content: center; /* align horizontal */
  229. align-items: center; /* align vertical */
  230. img {
  231. width: 8em;
  232. border-radius: 2em;
  233. display: inline;
  234. &#gnu {
  235. background-color: $base04;
  236. // background-color: $base05;
  237. }
  238. }
  239. p {
  240. font-size: 4rem;
  241. display: inline;
  242. @include side-padding-rem(1);
  243. }
  244. @media (max-width: $phone-width) {
  245. margin-top: 2em;
  246. display: block;
  247. p {
  248. display: block;
  249. @include vert-padding-rem(0.1);
  250. margin-bottom: 0rem;
  251. }
  252. }
  253. }
  254. // }}} me-equation //
  255. @media (max-width: $phone-width) {
  256. font-size: 1.1em;
  257. h1 {
  258. font-size: 1.75rem;
  259. }
  260. }
  261. }
  262. @media (max-width: $max-page-width) {
  263. margin-bottom: 2rem;
  264. }
  265. }
  266. /* .homepage section.categories,
  267. .homepage section.tags {
  268. padding-left: 2rem;
  269. padding-right: 2rem;
  270. }
  271. .homepage .category,
  272. .homepage .category a,
  273. .homepage .tag,
  274. .homepage .tag a {
  275. color: #cc99cc;
  276. }
  277. .homepage .tag {
  278. margin-right: 2em;
  279. } */
  280. // }}} homepage //
  281. // TODO: converted up to here
  282. // hero {{{ //
  283. h1.site-title {
  284. text-align: center;
  285. /* font-size: 3.5em; */
  286. font-size: 4.8em;
  287. // color: #66cccc;
  288. color: $base05;
  289. margin-top: 0.5em;
  290. margin-bottom: 0.2em;
  291. @media (max-width: $max-page-width) {
  292. font-size: 3em;
  293. }
  294. @media (max-width: $phone-width) {
  295. font-size: 2.25em;
  296. }
  297. }
  298. .hero-logo img {
  299. width: 100%;
  300. }
  301. .nav-bar {
  302. margin-left: .5em;
  303. margin-bottom: 1em;
  304. @media (max-width: $phone-width) {
  305. font-size: .9em;
  306. }
  307. }
  308. .hero-tagline{
  309. margin-top: .3em;
  310. font-size: .8rem;
  311. // font-style: italic;
  312. text-align: center;
  313. .icon {
  314. width: 1.25rem;
  315. }
  316. }
  317. // }}} hero //
  318. // article-list {{{ //
  319. .article-list h1.list-title {
  320. font-size: 3em;
  321. color: #ffcc66;
  322. }
  323. .article-list article {
  324. padding-top: 4rem;
  325. padding-bottom: 4rem;
  326. margin-bottom: 4rem;
  327. }
  328. .article-list article h2.headline,
  329. .article-list article h2.headline a {
  330. margin-top: 0;
  331. color: #6699cc;
  332. }
  333. .article-list article .meta {
  334. margin-bottom: 1rem;
  335. }
  336. .article-list article .meta .key {
  337. color: #747369;
  338. }
  339. .article-list article .meta .val,
  340. .article-list article .meta .val a {
  341. color: #cc99cc;
  342. }
  343. .article-list article section.summary a { color: #d27b53; }
  344. // }}} article-list //
  345. // article.single {{{ //
  346. article.single .meta {
  347. font-size: 0.9em;
  348. text-align: right;
  349. }
  350. article.single .meta .key {
  351. color: #747369;
  352. }
  353. article.single .meta .val, article.single .meta .val a {
  354. color: #cc99cc;
  355. }
  356. @media (max-width: $max-page-width) {
  357. article.single .meta {
  358. padding-left: 2rem;
  359. padding-right: 2rem;
  360. }
  361. }
  362. article.single h1.headline {
  363. margin-top: 0;
  364. font-size: 3em;
  365. color: #ffcc66;
  366. }
  367. @media (max-width: $max-page-width) {
  368. article.single h1.headline {
  369. padding-left: 2rem;
  370. padding-right: 2rem;
  371. }
  372. }
  373. article.single section.body {
  374. padding-top: 4rem;
  375. padding-bottom: 3rem;
  376. }
  377. @media (max-width: $max-page-width) {
  378. article.single section.body {
  379. padding-top: 2rem;
  380. padding-bottom: 1rem;
  381. }
  382. }
  383. /* Highlight Colors */
  384. article.single section.body h1 { color: #6699cc; }
  385. article.single section.body h2 { color: #99cc99; }
  386. article.single section.body h3 { color: #f99157; }
  387. article.single section.body h4 { color: #f2777a; }
  388. article.single section.body h5 { color: #515151; }
  389. article.single section.body h6 { color: #747369; }
  390. article.single section.body a,a:visited { color: #a06700; }
  391. /* Article Elements */
  392. article.single * {
  393. max-width: 100%;
  394. }
  395. article.single pre {
  396. margin-top: 0;
  397. margin-bottom: 1rem;
  398. overflow-x: scroll;
  399. border-radius: 3px;
  400. padding: 2rem;
  401. }
  402. article.single p code {
  403. padding: 0.2em 0.5em;
  404. border-radius: 3px;
  405. background: #747369;
  406. color: #f2f0ec;
  407. }
  408. article.single figure, article.single div.highlight {
  409. box-sizing: border-box;
  410. max-width: 52rem;
  411. width: 52rem;
  412. margin-left: -8rem;
  413. margin-right: -8rem;
  414. margin-bottom: 1rem;
  415. padding: 1em;
  416. background-color: #393939;
  417. }
  418. @media (max-width: $max-page-width) {
  419. article.single figure, article.single div.highlight {
  420. width: 100%;
  421. margin-left: 0;
  422. margin-right: 0;
  423. border-radius: 3px;
  424. }
  425. }
  426. article.single figure img {
  427. max-width: 100%;
  428. width: 100%;
  429. border-radius: 3px;
  430. }
  431. article.single figure figcaption {
  432. margin-top: 1rem;
  433. }
  434. article.single figure figcaption h4 {
  435. margin-top: 0;
  436. text-align: center;
  437. font-style: italic;
  438. font-weight: normal;
  439. color: #f2f0ec;
  440. }
  441. article.single table {
  442. border-collapse: separate;
  443. border-spacing: 0;
  444. max-width: 100%;
  445. width: 100%;
  446. }
  447. article.single th,
  448. article.single td {
  449. padding: .25rem 1rem;
  450. line-height: inherit;
  451. border-bottom-width: 1px;
  452. border-bottom-style: solid;
  453. border-bottom-color: $base04;
  454. }
  455. article.single tr:last-child td {
  456. border-bottom: 0;
  457. }
  458. article.single th {
  459. text-align: left;
  460. font-weight: bold;
  461. vertical-align: bottom;
  462. }
  463. article.single td { vertical-align: top }
  464. article.single blockquote {
  465. margin-left: 2rem;
  466. margin-right: 3rem;
  467. padding-left: 1rem;
  468. border-left: 5px solid #66cccc;
  469. }
  470. article.single hr {
  471. border: 0;
  472. border-bottom-style: solid;
  473. border-bottom-width: 1px;
  474. border-bottom-color: $base04;
  475. }
  476. // }}} article.single //
  477. // Pygments {{{ //
  478. pre { background: #2d2d2d; color: #f2f0ec }
  479. .highlight .hll { background-color: #515151 }
  480. .highlight .c { color: #747369 } /* Comment */
  481. .highlight .err { color: #f2777a } /* Error */
  482. .highlight .k { color: #cc99cc } /* Keyword */
  483. .highlight .l { color: #f99157 } /* Literal */
  484. .highlight .n { color: #f2f0ec } /* Name */
  485. .highlight .o { color: #66cccc } /* Operator */
  486. .highlight .p { color: #f2f0ec } /* Punctuation */
  487. .highlight .cm { color: #747369 } /* Comment.Multiline */
  488. .highlight .cp { color: #747369 } /* Comment.Preproc */
  489. .highlight .c1 { color: #747369 } /* Comment.Single */
  490. .highlight .cs { color: #747369 } /* Comment.Special */
  491. .highlight .gd { color: #f2777a } /* Generic.Deleted */
  492. .highlight .ge { font-style: italic } /* Generic.Emph */
  493. .highlight .gh { color: #f2f0ec; font-weight: bold } /* Generic.Heading */
  494. .highlight .gi { color: #99cc99 } /* Generic.Inserted */
  495. .highlight .gp { color: #747369; font-weight: bold } /* Generic.Prompt */
  496. .highlight .gs { font-weight: bold } /* Generic.Strong */
  497. .highlight .gu { color: #66cccc; font-weight: bold } /* Generic.Subheading */
  498. .highlight .kc { color: #cc99cc } /* Keyword.Constant */
  499. .highlight .kd { color: #cc99cc } /* Keyword.Declaration */
  500. .highlight .kn { color: #66cccc } /* Keyword.Namespace */
  501. .highlight .kp { color: #cc99cc } /* Keyword.Pseudo */
  502. .highlight .kr { color: #cc99cc } /* Keyword.Reserved */
  503. .highlight .kt { color: #ffcc66 } /* Keyword.Type */
  504. .highlight .ld { color: #99cc99 } /* Literal.Date */
  505. .highlight .m { color: #f99157 } /* Literal.Number */
  506. .highlight .s { color: #99cc99 } /* Literal.String */
  507. .highlight .na { color: #6699cc } /* Name.Attribute */
  508. .highlight .nb { color: #f2f0ec } /* Name.Builtin */
  509. .highlight .nc { color: #ffcc66 } /* Name.Class */
  510. .highlight .no { color: #f2777a } /* Name.Constant */
  511. .highlight .nd { color: #66cccc } /* Name.Decorator */
  512. .highlight .ni { color: #f2f0ec } /* Name.Entity */
  513. .highlight .ne { color: #f2777a } /* Name.Exception */
  514. .highlight .nf { color: #6699cc } /* Name.Function */
  515. .highlight .nl { color: #f2f0ec } /* Name.Label */
  516. .highlight .nn { color: #ffcc66 } /* Name.Namespace */
  517. .highlight .nx { color: #6699cc } /* Name.Other */
  518. .highlight .py { color: #f2f0ec } /* Name.Property */
  519. .highlight .nt { color: #66cccc } /* Name.Tag */
  520. .highlight .nv { color: #f2777a } /* Name.Variable */
  521. .highlight .ow { color: #66cccc } /* Operator.Word */
  522. .highlight .w { color: #f2f0ec } /* Text.Whitespace */
  523. .highlight .mf { color: #f99157 } /* Literal.Number.Float */
  524. .highlight .mh { color: #f99157 } /* Literal.Number.Hex */
  525. .highlight .mi { color: #f99157 } /* Literal.Number.Integer */
  526. .highlight .mo { color: #f99157 } /* Literal.Number.Oct */
  527. .highlight .sb { color: #99cc99 } /* Literal.String.Backtick */
  528. .highlight .sc { color: #f2f0ec } /* Literal.String.Char */
  529. .highlight .sd { color: #747369 } /* Literal.String.Doc */
  530. .highlight .s2 { color: #99cc99 } /* Literal.String.Double */
  531. .highlight .se { color: #f99157 } /* Literal.String.Escape */
  532. .highlight .sh { color: #99cc99 } /* Literal.String.Heredoc */
  533. .highlight .si { color: #f99157 } /* Literal.String.Interpol */
  534. .highlight .sx { color: #99cc99 } /* Literal.String.Other */
  535. .highlight .sr { color: #99cc99 } /* Literal.String.Regex */
  536. .highlight .s1 { color: #99cc99 } /* Literal.String.Single */
  537. .highlight .ss { color: #99cc99 } /* Literal.String.Symbol */
  538. .highlight .bp { color: #f2f0ec } /* Name.Builtin.Pseudo */
  539. .highlight .vc { color: #f2777a } /* Name.Variable.Class */
  540. .highlight .vg { color: #f2777a } /* Name.Variable.Global */
  541. .highlight .vi { color: #f2777a } /* Name.Variable.Instance */
  542. .highlight .il { color: #f99157 } /* Literal.Number.Integer.Long */
  543. /*# sourceMappingURL=style.css.map */
  544. // }}} Pygments //