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.

589 lines
12 KiB

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