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.

705 lines
12 KiB

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