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.

741 lines
13 KiB

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