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.

535 lines
11 KiB

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