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.

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