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.

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