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.

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