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.

563 lines
12 KiB

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