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.

1181 lines
23 KiB

2 years ago
2 years ago
2 months ago
2 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 months ago
2 years ago
2 months ago
2 years ago
2 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 months ago
4 months ago
2 months ago
4 months ago
4 months ago
2 months ago
4 months ago
2 months ago
4 months ago
2 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 months ago
2 months ago
2 months ago
2 years ago
2 years ago
2 years ago
  1. /* Base16 Eighties Colorscheme by Chris Kempson (http://chriskempson.com) */
  2. // base colors {{{ //
  3. $base02: #515151;
  4. $base03: #747369;
  5. $base04: #a09f93;
  6. $base05: #d3d0c8;
  7. $base-red: #f2777a;
  8. $base-orange: #f99157;
  9. $base-yellow: #ffcc66;
  10. $base-green: #99cc99;
  11. $base-sky-blue: #66cccc;
  12. $base-blue: #6699cc;
  13. $base-violet: #cc99cc;
  14. $base-dark-orange: #d27b53;
  15. /* .base00 { color: #2d2d2d; }
  16. .base01 { color: #393939; }
  17. .base02 { color: #515151; }
  18. .base03 { color: #747369; }
  19. .base04 { color: #a09f93; }
  20. .base06 { color: #e8e6df; }
  21. .base07 { color: #f2f0ec; } */
  22. .base08 { color: $base-red; }
  23. .base09 { color: $base-orange; }
  24. .base0a { color: $base-yellow; }
  25. .base0b { color: $base-green; }
  26. .base0c { color: $base-sky-blue; }
  27. .base0d { color: $base-blue; }
  28. .base0e { color: $base-violet; }
  29. .base0f { color: $base-dark-orange; }
  30. // }}} base colors //
  31. // mixins {{{ //
  32. // $max-page-width: 52em;
  33. $max-page-width: 45em;
  34. $phone-width: 800px;
  35. @mixin side-padding-rem($n) {// {{{
  36. padding-left: $n * 1rem;
  37. padding-right: $n * 1rem;
  38. }// }}}
  39. @mixin side-margin-em($n) {// {{{
  40. margin-left: $n * 1em;
  41. margin-right: $n * 1em;
  42. }// }}}
  43. @mixin vert-padding-rem($n) {// {{{
  44. padding-top: $n * 1rem;
  45. padding-bottom: $n * 1rem;
  46. }// }}}
  47. @mixin vert-margin-rem($n) {// {{{
  48. margin-top: $n * 1rem;
  49. margin-bottom: $n * 1rem;
  50. }// }}}
  51. @mixin auto-center() {// {{{
  52. margin-left: auto;
  53. margin-right: auto;
  54. }// }}}
  55. @mixin article-body() {// {{{
  56. /* background-color: #e6e6fa; */
  57. background-color: #cbbeb5;
  58. color: #2d2d2d;
  59. @include side-padding-rem(8);
  60. @include vert-padding-rem(1);
  61. /* min-height: 50%; */
  62. /* min-height: 30em; */
  63. @media (max-width: $max-page-width) {
  64. @include side-padding-rem(2);
  65. }
  66. }// }}}
  67. @mixin a-color($color) {// {{{
  68. a {
  69. color: $color;
  70. &:visited {
  71. color: $color;
  72. }
  73. &:active {
  74. color: $color;
  75. }
  76. }
  77. }// }}}
  78. // }}} mixins //
  79. // general elements {{{ //
  80. // $background-color: #2d2d2d;
  81. // $color: #f2f0ec;
  82. $background-color: white;
  83. $color: black;
  84. body {
  85. margin: 0;
  86. background-color: $background-color;
  87. color: $color;
  88. // line-height: 1.5;
  89. line-height: 1.57;
  90. // font-size: 100%;
  91. // font-size: 15px;
  92. font-size: 17px;
  93. // font-size: 20px;
  94. // font-size: 22px;
  95. /* font-family: 'Source Code Pro', monospace; */
  96. // font-family: 'Hack', monospace;
  97. // body {
  98. // font-family: 'Times New Roman', serif;
  99. font-family: "Computer Modern Serif";
  100. // }
  101. display: flex;
  102. flex-direction: column;
  103. min-height: 100vh;
  104. @include a-color($base-sky-blue);
  105. }
  106. .container {
  107. max-width: $max-page-width;
  108. margin-left: auto;
  109. margin-right: auto;
  110. flex: 1;
  111. @media (max-width: $max-page-width) {
  112. width: 100%;
  113. }
  114. }
  115. div {
  116. .right {
  117. float:right;
  118. }
  119. .clearfix {
  120. overflow: auto;
  121. }
  122. }
  123. article {
  124. .single {
  125. section {
  126. @include article-body();
  127. }
  128. }
  129. }
  130. .article-list {
  131. article {
  132. @include article-body();
  133. }
  134. }
  135. header {
  136. margin-top: 1.5rem;
  137. margin-bottom: 1rem;
  138. @media (max-width: $max-page-width) {
  139. margin-top: 0;
  140. @include side-padding-rem(2);
  141. }
  142. }
  143. footer {
  144. // base {{{ //
  145. @include a-color(#747369);
  146. // background-color: #393939;
  147. // max-width: $max-page-width;
  148. margin-top: 2rem;
  149. $vertical-margin: .2em;
  150. text-align: center;
  151. // font-size: 0.8em;
  152. font-size: .85em;
  153. color: #747369;
  154. // bottom: 0;
  155. // position: absolute;
  156. // width: 100%;
  157. // }}} base //
  158. .container {// {{{
  159. // max-width: $max-page-width;
  160. // min-width: $max-page-width;
  161. @include auto-center();
  162. // @include vert-padding-rem(.1);
  163. @include side-padding-rem(0);
  164. #footer-row {
  165. // background-color: #393939;
  166. }
  167. #footer-content {
  168. $side-padding: 2.5em;
  169. @include vert-padding-rem(.35);
  170. border-style: solid;
  171. border-width: 1px 0 0 0;
  172. border-color: rgba(81, 81, 81, .75);
  173. #copyright {
  174. // padding-left: .85em;
  175. padding-left: $side-padding;
  176. position: relative;
  177. top: 2px;
  178. @include a-color(#747369);
  179. }
  180. #social-icons {
  181. position: relative;
  182. padding-right: $side-padding;
  183. // padding-right: .9em;
  184. img {
  185. // height: 1.5em;
  186. height: 3em;
  187. @include vert-margin-rem(.2);
  188. padding-left: .5em;
  189. opacity: .6;
  190. &:hover {
  191. opacity: 1;
  192. }
  193. }
  194. }
  195. }
  196. }// }}}
  197. @media (max-width: $max-page-width) {
  198. margin-top: 0;
  199. margin-bottom: 0;
  200. }
  201. @media (max-width: $phone-width) {
  202. font-size: 0.8em;
  203. }
  204. }
  205. /* Typography */
  206. @for $i from 1 to 6 {
  207. h#{$i} {
  208. font-weight: bold;
  209. line-height: 1.25;
  210. margin-top: 1em;
  211. margin-bottom: .5em;
  212. }
  213. }
  214. p {
  215. margin-top: 0;
  216. margin-bottom: 1rem;
  217. }
  218. // h1 {
  219. // font-size: 2rem;
  220. // @media (max-width: $phone-width) {
  221. // font-size: 1.75rem;
  222. // }
  223. // }
  224. // h2 {
  225. // font-size: 1.5rem;
  226. // @media (max-width: $phone-width) {
  227. // font-size: 1.4rem;
  228. // }
  229. // }
  230. h3 { font-size: 1.25rem }
  231. // h4 { font-size: 1rem }
  232. h5 { font-size: .875rem }
  233. h6 { font-size: .75rem }
  234. pre, code {
  235. font-family: inherit;
  236. font-size: inherit;
  237. }
  238. // }}} general elements //
  239. header {// {{{
  240. a {
  241. .path .path:visited {
  242. color: #6699cc;
  243. }
  244. }
  245. span {
  246. caret {
  247. color: #f2f0ec;
  248. }
  249. }
  250. }// }}}
  251. .page-not-found {// {{{
  252. h1 {
  253. text-align: center;
  254. font-size: 5em;
  255. }
  256. h2 {
  257. text-align: center;
  258. font-size: 3em;
  259. color: $base04;
  260. margin-bottom: 4rem;
  261. }
  262. @media (max-width: $max-page-width) {
  263. h1 {
  264. font-size: 3em;
  265. }
  266. h2 {
  267. font-size: 2em;
  268. }
  269. }
  270. }// }}}
  271. #homepage {// {{{
  272. #about {
  273. font-size: 1.1rem;
  274. h2 {
  275. margin-top: 1.25rem;
  276. // font-size: 2rem;
  277. font-size: 1.9rem;
  278. color: $base-yellow;
  279. text-align: center;
  280. // @media (max-width: $max-page-width) {
  281. // @include side-padding-rem(2);
  282. // }
  283. }
  284. .me-equation {
  285. margin-top: 3em;
  286. text-align: center;
  287. display: flex;
  288. // display: grid;
  289. // grid-template-columns: repeat(3, 2fr 1fr) 2fr;
  290. justify-content: center; /* align horizontal */
  291. align-items: center; /* align vertical */
  292. .equation-part {
  293. // width: 33%;
  294. display: flex;
  295. flex: 1;
  296. justify-content: center; /* align horizontal */
  297. align-items: center; /* align vertical */
  298. a {
  299. text-decoration: none;
  300. width: 70%;
  301. }
  302. img {
  303. // width: 7em;
  304. width: 70%;
  305. // width: 15vw;
  306. // min-width: 25%;
  307. // height: 25%;
  308. height: 100%;
  309. // height: auto;
  310. // height: 20vw;
  311. // object-fit: contain;
  312. // flex-basis: 20%;
  313. // flex: 2 2 0;
  314. // border-radius: 1.5em;
  315. border-radius: 1.1em;
  316. display: inline;
  317. &#gnu {
  318. // background-color: $base04;
  319. // background-color: $base05;
  320. }
  321. }
  322. p {
  323. // font-size: 3rem;
  324. font-size: 3vw;
  325. // width: 20%;
  326. // flex: 1;
  327. // display: inline;
  328. display: inline-block;
  329. @include side-padding-rem(0.2);
  330. }
  331. }
  332. // @media (max-width: 800px) {// {{{
  333. @media (max-width: $phone-width) {
  334. // flex-direction: column;
  335. flex-wrap: wrap;
  336. margin-top: 2em;
  337. justify-content: space-around; /* align horizontal */
  338. // height: 100vh;
  339. // height: 50vh;
  340. .equation-part {
  341. // min-width: 50vw;
  342. // display: inline-block;
  343. // min-width: 50%;
  344. min-width: 33%;
  345. // max-height: 25vh;
  346. // flex-direction: column;
  347. img {
  348. // display: block;
  349. // width: 50%;
  350. flex: 1.5;
  351. // flex: 1;
  352. // height: 50%;
  353. // max-height: 30%;
  354. // max-height: 25vh;
  355. &#hexatar {
  356. // max-width: 70%;
  357. max-width: 20%;
  358. // max-height: 15vh;
  359. // margin-top: 2rem;
  360. margin-top: 1.75rem;
  361. }
  362. }
  363. p {
  364. // font-size: 3rem;
  365. font-size: 6vw;
  366. // width: 20%;
  367. flex: 1;
  368. // @include side-padding-rem(0.2);
  369. }
  370. &#uoft-part {
  371. justify-content: flex-end;
  372. }
  373. }
  374. }
  375. // @media (max-width: $phone-width) {
  376. // margin-top: 2em;
  377. // display: block;
  378. // p {
  379. // display: block;
  380. // @include vert-padding-rem(0.1);
  381. // margin-bottom: 0rem;
  382. // }
  383. // }
  384. }
  385. @media (max-width: $phone-width) {
  386. // font-size: 1.1em;
  387. font-size: .9em;
  388. h1 {
  389. // font-size: 1.75rem;
  390. font-size: 1.4rem;
  391. }
  392. }// }}}
  393. }
  394. @media (max-width: $max-page-width) {
  395. margin-bottom: 2rem;
  396. }
  397. }
  398. /* .homepage section.categories,
  399. .homepage section.tags {
  400. padding-left: 2rem;
  401. padding-right: 2rem;
  402. }
  403. .homepage .category,
  404. .homepage .category a,
  405. .homepage .tag,
  406. .homepage .tag a {
  407. color: #cc99cc;
  408. }
  409. .homepage .tag {
  410. margin-right: 2em;
  411. } */// }}}
  412. #print-icon {// {{{
  413. float: right;
  414. display: none;
  415. img {
  416. height: 1.75em;
  417. position: relative;
  418. top: 1em;
  419. }
  420. }// }}}
  421. #contact-info {// {{{
  422. @include side-margin-em(0);
  423. // @include vert-padding-rem(0.5);
  424. // @include a-color($base-sky-blue);
  425. // min-width: $max-page-width;
  426. @media (min-width: 1200px) {
  427. .container{
  428. min-width: $max-page-width;
  429. }
  430. }
  431. a {// {{{
  432. color: #4287cd;
  433. text-decoration: none;
  434. &:hover {
  435. text-decoration: none;
  436. }
  437. }// }}}
  438. // font-size: .9em;
  439. font-size: .8em;
  440. .row {
  441. // flex-grow: 1;
  442. // color: $base05;
  443. color: #4287cd;
  444. img {
  445. height: 1em;
  446. // @media (max-width: $phone-width) {
  447. // height: 1.5em;
  448. // }
  449. }
  450. div[class^="col"] {
  451. @include side-padding-rem(0);
  452. // text-align: center;
  453. }
  454. }
  455. .url-info {
  456. font-size: 1em;
  457. margin-left: 5px;
  458. // position: relative;
  459. // left: -8px;
  460. // @media (max-width: $phone-width) {
  461. // // display: none;
  462. // // font-size: 10px;
  463. // font-size: .8em;
  464. // }
  465. }
  466. }// }}}
  467. #resume {// {{{
  468. a {// {{{
  469. // text-decoration: none;
  470. // color: $base-blue;
  471. color: #4287cd;
  472. // color: blue;
  473. text-decoration: underline;
  474. &:hover {
  475. text-decoration: underline;
  476. }
  477. }// }}}
  478. h1 {// {{{
  479. // color: $base-orange;
  480. color: black;
  481. // margin-top: 1.3rem;
  482. margin-top: 1rem;
  483. // font-size: 1.2em;
  484. font-size: 1.3em;
  485. // @media (max-width: $phone-width) {
  486. // margin-top: .75rem;
  487. // }
  488. }// }}}
  489. h2 {// {{{
  490. color: $base-orange;
  491. margin-top: .5rem;
  492. font-size: 1em;
  493. // @media (max-width: $phone-width) {
  494. // font-size: 1.2em;
  495. // margin-top: .75rem;
  496. // }
  497. }// }}}
  498. h4 {// {{{
  499. color: $base-yellow;
  500. margin-top: .5rem;
  501. font-size: 1.2em;
  502. // @media (max-width: $phone-width) {
  503. // font-size: 1.2em;
  504. // margin-top: .75rem;
  505. // }
  506. }// }}}
  507. .date {// {{{
  508. float: right;
  509. color: $base03;
  510. // @media (max-width: $phone-width) {
  511. // padding-top: 0em;
  512. // }
  513. }// }}}
  514. .section-header {
  515. margin-top: 1em;
  516. margin-bottom: 0.4em;
  517. }
  518. ul {
  519. margin-bottom: 5px;
  520. }
  521. .work-experience {
  522. margin-bottom: 5px;
  523. }
  524. #projects {// {{{
  525. // // h1 {
  526. // // margin-bottom: 3px;
  527. // // }
  528. .project {// {{{
  529. @include vert-padding-rem(.2);
  530. h2 {
  531. color: $base-sky-blue;
  532. display: inline;
  533. font-size: 1.1em;
  534. }
  535. img {
  536. height: 1.2em;
  537. }
  538. .project-header {
  539. // margin-bottom: .6em;
  540. // margin-bottom: .1em;
  541. margin-bottom: 5px;
  542. }
  543. .project-title {
  544. // color: $base-blue;
  545. color: black;
  546. display: inline;
  547. }
  548. .project-link {
  549. &:link {
  550. text-decoration: none;
  551. }
  552. &:hover {
  553. text-decoration: none;
  554. }
  555. }
  556. .down-triangle {
  557. // fill: blue;
  558. height: 1.2em;
  559. position: relative;
  560. top: -3px;
  561. left: -3px;
  562. }
  563. .btn {// {{{
  564. display: inline;
  565. background-color: transparent;
  566. margin-bottom: 5px;
  567. padding-left: 7px;
  568. &:focus, &:active {
  569. outline: none !important;
  570. box-shadow: none;
  571. }
  572. }// }}}
  573. // }}}
  574. // [id^="details-"] {
  575. // margin-top: .5em;
  576. // }
  577. }
  578. }// }}}
  579. .company {
  580. // color: #fe4646;
  581. color: black;
  582. font-weight: bold;
  583. font-size: 1.2em;
  584. margin-bottom: 5px;
  585. }
  586. .position {
  587. // color: black;
  588. // color: $base-sky-blue;
  589. // color: $base-blue;
  590. color: black;
  591. font-weight: bold;
  592. // font-style: italic;
  593. // font-size: 1.1em;
  594. font-size: 1em;
  595. // margin-bottom: 5px;
  596. margin-bottom: 15px;
  597. }
  598. .languages {
  599. // font-style: italic;
  600. // font-size: .9em;
  601. }
  602. .institution {
  603. // color: $base-yellow;
  604. // color: $base-dark-orange;
  605. // color: $base-blue;
  606. color: black;
  607. font-weight: bold;
  608. font-size: 1.1em;
  609. margin-bottom: 5px;
  610. }
  611. .title {
  612. font-style: italic;
  613. }
  614. #education {// {{{
  615. .date {
  616. padding-top: 0;
  617. }
  618. }// }}}
  619. // @media (max-width: $phone-width) {
  620. // font-size: 14px;
  621. // // font-size: 1em;
  622. // }
  623. &.letter {
  624. margin-top: 2em;
  625. line-height: 1.5em;
  626. img {
  627. height: 4.5em;
  628. }
  629. h2 {
  630. color: $base-red;
  631. margin-top: 0em;
  632. margin-bottom: .4em;
  633. }
  634. p {
  635. margin-bottom: 1em;
  636. }
  637. .no-line-spacing {
  638. line-height: .5em;
  639. margin-bottom: 1.75em;
  640. p {
  641. margin-bottom: 1em;
  642. }
  643. }
  644. }
  645. }// }}}
  646. #server {// {{{
  647. .body {
  648. @include vert-padding-rem(.5);
  649. }
  650. h1 {
  651. margin-bottom: .25em;
  652. }
  653. // table {
  654. // margin-top: 1.75em;
  655. // }
  656. th, td {
  657. @include vert-padding-rem(.4);
  658. @include side-padding-rem(.5);
  659. border: 1px solid rgba(160, 159, 147, .5);
  660. }
  661. th {
  662. color: $base-orange;
  663. text-align: center;
  664. font-size: 1.3em;
  665. }
  666. td {
  667. font-size: .9em;
  668. }
  669. .description {
  670. font-size: .85em;
  671. }
  672. .status {
  673. text-align: center;
  674. img {
  675. height: 2em;
  676. }
  677. }
  678. #time-info {
  679. padding-top: 1em;
  680. font-size: .75em;
  681. font-style: italic;
  682. color: $base03;
  683. }
  684. }// }}}
  685. // TODO: converted up to here
  686. // hero {{{ //
  687. h1.site-title {// {{{
  688. text-align: center;
  689. // font-size: 4.2em;
  690. // font-size: 3.2em;
  691. font-size: 2.5em;
  692. // color: #66cccc;
  693. color: $base05;
  694. // margin-top: 1rem;
  695. // margin-bottom: 0.75rem;
  696. @include vert-margin-rem(.75);
  697. // @include a-color($base-sky-blue);
  698. a {
  699. color: black;
  700. // text-decoration: none;
  701. text-decoration: underline;
  702. text-decoration-thickness: 2px;
  703. text-underline-offset: 5px;
  704. }
  705. // @media (max-width: $phone-width) {
  706. // font-size: 3em;
  707. // }
  708. // @media (max-width: $phone-width) {
  709. // font-size: 3.5em;
  710. // @include vert-margin-rem(.3);
  711. // // font-size: 2.5em;
  712. // // font-size: 2em;
  713. // .surrounding {
  714. // display: none;
  715. // }
  716. // }
  717. }// }}}
  718. .hero-logo img {
  719. margin-top: 0.5rem;
  720. width: 100%;
  721. // display: none;
  722. // width: $max-page-width;
  723. }
  724. .nav-bar {// {{{
  725. margin-left: .5em;
  726. // margin-bottom: 1em;
  727. // margin-top: .75em;
  728. @include vert-padding-rem(.5);
  729. .caret {
  730. color: #f2f0ec;
  731. margin-right: .75rem;
  732. }
  733. .nav-bar-links {
  734. display: inline;
  735. .nav-bar-link {
  736. padding-right: .5em;
  737. }
  738. }
  739. @media (max-width: $phone-width) {
  740. // font-size: .9em;
  741. font-size: .8em;
  742. }
  743. }// }}}
  744. .hero-tagline{// {{{
  745. margin-top: .3em;
  746. font-size: .8rem;
  747. // font-style: italic;
  748. text-align: center;
  749. .icon {
  750. width: 1.25rem;
  751. }
  752. }// }}}
  753. // }}} hero //
  754. // article-list {{{ //
  755. .article-list h1.list-title {
  756. font-size: 3em;
  757. color: #ffcc66;
  758. }
  759. .article-list article {
  760. padding-top: 4rem;
  761. padding-bottom: 4rem;
  762. margin-bottom: 4rem;
  763. }
  764. .article-list article h2.headline,
  765. .article-list article h2.headline a {
  766. margin-top: 0;
  767. color: #6699cc;
  768. }
  769. .article-list article .meta {
  770. margin-bottom: 1rem;
  771. }
  772. .article-list article .meta .key {
  773. color: #747369;
  774. }
  775. .article-list article .meta .val,
  776. .article-list article .meta .val a {
  777. color: #cc99cc;
  778. }
  779. .article-list article section.summary a { color: #d27b53; }
  780. // }}} article-list //
  781. // article.single {{{ //
  782. article.single {
  783. .meta {
  784. font-size: 0.9em;
  785. text-align: right;
  786. margin-top: .5rem;
  787. margin-bottom: .5rem;
  788. .key {
  789. color: #747369;
  790. }
  791. .val {
  792. color: #cc99cc;
  793. a {
  794. color: #cc99cc;
  795. }
  796. }
  797. }
  798. .body {
  799. padding-top: 1rem;
  800. padding-bottom: 3rem;
  801. }
  802. @media (max-width: $max-page-width) {
  803. .meta {
  804. padding-left: 2rem;
  805. padding-right: 2rem;
  806. }
  807. .body {
  808. padding-top: .5rem;
  809. padding-bottom: 1rem;
  810. }
  811. }
  812. }
  813. article.single h1.headline {
  814. margin-top: 0;
  815. font-size: 3em;
  816. color: #ffcc66;
  817. }
  818. @media (max-width: $max-page-width) {
  819. article.single h1.headline {
  820. font-size: 2em;
  821. padding-left: 2rem;
  822. padding-right: 2rem;
  823. }
  824. }
  825. /* Highlight Colors */
  826. article.single section.body h1 { color: #6699cc; }
  827. article.single section.body h2 { color: #99cc99; }
  828. article.single section.body h3 { color: #f99157; }
  829. article.single section.body h4 { color: #f2777a; }
  830. article.single section.body h5 { color: #515151; }
  831. article.single section.body h6 { color: #747369; }
  832. // article.single section.body a,a:visited { color: #a06700; }
  833. // article.single section.body a,a:visited { color: $base-sky-blue; }
  834. // article.single section.body a,a:visited { color: $base-sky-blue; }
  835. /* Article Elements */
  836. article.single * {
  837. max-width: 100%;
  838. }
  839. article.single pre {
  840. margin-top: 0;
  841. margin-bottom: 1rem;
  842. // overflow-x: auto;
  843. border-radius: 3px;
  844. padding: 2rem;
  845. }
  846. article.single p code {
  847. padding: 0.2em 0.5em;
  848. border-radius: 3px;
  849. background: #747369;
  850. color: #f2f0ec;
  851. }
  852. article.single figure, article.single div.highlight {
  853. box-sizing: border-box;
  854. max-width: 52rem;
  855. width: 52rem;
  856. margin-bottom: 1rem;
  857. padding: 1em;
  858. background-color: #393939;
  859. }
  860. @media (max-width: $max-page-width) {
  861. article.single figure, article.single div.highlight {
  862. width: 100%;
  863. margin-left: 0;
  864. margin-right: 0;
  865. border-radius: 3px;
  866. }
  867. }
  868. article.single figure img {
  869. max-width: 100%;
  870. width: 100%;
  871. border-radius: 3px;
  872. }
  873. article.single figure figcaption {
  874. margin-top: 1rem;
  875. }
  876. article.single figure figcaption h4 {
  877. margin-top: 0;
  878. text-align: center;
  879. font-style: italic;
  880. font-weight: normal;
  881. color: #f2f0ec;
  882. }
  883. article.single table {
  884. border-collapse: separate;
  885. border-spacing: 0;
  886. max-width: 100%;
  887. width: 100%;
  888. }
  889. article.single th,
  890. article.single td {
  891. padding: .25rem 1rem;
  892. line-height: inherit;
  893. border-bottom-width: 1px;
  894. border-bottom-style: solid;
  895. border-bottom-color: $base04;
  896. }
  897. article.single tr:last-child td {
  898. border-bottom: 0;
  899. }
  900. article.single th {
  901. text-align: left;
  902. font-weight: bold;
  903. vertical-align: bottom;
  904. }
  905. article.single td { vertical-align: top }
  906. article.single blockquote {
  907. margin-left: 2rem;
  908. margin-right: 3rem;
  909. padding-left: 1rem;
  910. border-left: 5px solid #66cccc;
  911. }
  912. article.single hr {
  913. border: 0;
  914. border-bottom-style: solid;
  915. border-bottom-width: 1px;
  916. border-bottom-color: $base04;
  917. }
  918. // }}} article.single //
  919. // Pygments {{{ //
  920. pre { background: #2d2d2d; color: #f2f0ec }
  921. .highlight .hll { background-color: #515151 }
  922. .highlight .c { color: #747369 } /* Comment */
  923. .highlight .err { color: #f2777a } /* Error */
  924. .highlight .k { color: #cc99cc } /* Keyword */
  925. .highlight .l { color: #f99157 } /* Literal */
  926. .highlight .n { color: #f2f0ec } /* Name */
  927. .highlight .o { color: #66cccc } /* Operator */
  928. .highlight .p { color: #f2f0ec } /* Punctuation */
  929. .highlight .cm { color: #747369 } /* Comment.Multiline */
  930. .highlight .cp { color: #747369 } /* Comment.Preproc */
  931. .highlight .c1 { color: #747369 } /* Comment.Single */
  932. .highlight .cs { color: #747369 } /* Comment.Special */
  933. .highlight .gd { color: #f2777a } /* Generic.Deleted */
  934. .highlight .ge { font-style: italic } /* Generic.Emph */
  935. .highlight .gh { color: #f2f0ec; font-weight: bold } /* Generic.Heading */
  936. .highlight .gi { color: #99cc99 } /* Generic.Inserted */
  937. .highlight .gp { color: #747369; font-weight: bold } /* Generic.Prompt */
  938. .highlight .gs { font-weight: bold } /* Generic.Strong */
  939. .highlight .gu { color: #66cccc; font-weight: bold } /* Generic.Subheading */
  940. .highlight .kc { color: #cc99cc } /* Keyword.Constant */
  941. .highlight .kd { color: #cc99cc } /* Keyword.Declaration */
  942. .highlight .kn { color: #66cccc } /* Keyword.Namespace */
  943. .highlight .kp { color: #cc99cc } /* Keyword.Pseudo */
  944. .highlight .kr { color: #cc99cc } /* Keyword.Reserved */
  945. .highlight .kt { color: #ffcc66 } /* Keyword.Type */
  946. .highlight .ld { color: #99cc99 } /* Literal.Date */
  947. .highlight .m { color: #f99157 } /* Literal.Number */
  948. .highlight .s { color: #99cc99 } /* Literal.String */
  949. .highlight .na { color: #6699cc } /* Name.Attribute */
  950. .highlight .nb { color: #f2f0ec } /* Name.Builtin */
  951. .highlight .nc { color: #ffcc66 } /* Name.Class */
  952. .highlight .no { color: #f2777a } /* Name.Constant */
  953. .highlight .nd { color: #66cccc } /* Name.Decorator */
  954. .highlight .ni { color: #f2f0ec } /* Name.Entity */
  955. .highlight .ne { color: #f2777a } /* Name.Exception */
  956. .highlight .nf { color: #6699cc } /* Name.Function */
  957. .highlight .nl { color: #f2f0ec } /* Name.Label */
  958. .highlight .nn { color: #ffcc66 } /* Name.Namespace */
  959. .highlight .nx { color: #6699cc } /* Name.Other */
  960. .highlight .py { color: #f2f0ec } /* Name.Property */
  961. .highlight .nt { color: #66cccc } /* Name.Tag */
  962. .highlight .nv { color: #f2777a } /* Name.Variable */
  963. .highlight .ow { color: #66cccc } /* Operator.Word */
  964. .highlight .w { color: #f2f0ec } /* Text.Whitespace */
  965. .highlight .mf { color: #f99157 } /* Literal.Number.Float */
  966. .highlight .mh { color: #f99157 } /* Literal.Number.Hex */
  967. .highlight .mi { color: #f99157 } /* Literal.Number.Integer */
  968. .highlight .mo { color: #f99157 } /* Literal.Number.Oct */
  969. .highlight .sb { color: #99cc99 } /* Literal.String.Backtick */
  970. .highlight .sc { color: #f2f0ec } /* Literal.String.Char */
  971. .highlight .sd { color: #747369 } /* Literal.String.Doc */
  972. .highlight .s2 { color: #99cc99 } /* Literal.String.Double */
  973. .highlight .se { color: #f99157 } /* Literal.String.Escape */
  974. .highlight .sh { color: #99cc99 } /* Literal.String.Heredoc */
  975. .highlight .si { color: #f99157 } /* Literal.String.Interpol */
  976. .highlight .sx { color: #99cc99 } /* Literal.String.Other */
  977. .highlight .sr { color: #99cc99 } /* Literal.String.Regex */
  978. .highlight .s1 { color: #99cc99 } /* Literal.String.Single */
  979. .highlight .ss { color: #99cc99 } /* Literal.String.Symbol */
  980. .highlight .bp { color: #f2f0ec } /* Name.Builtin.Pseudo */
  981. .highlight .vc { color: #f2777a } /* Name.Variable.Class */
  982. .highlight .vg { color: #f2777a } /* Name.Variable.Global */
  983. .highlight .vi { color: #f2777a } /* Name.Variable.Instance */
  984. .highlight .il { color: #f99157 } /* Literal.Number.Integer.Long */
  985. /*# sourceMappingURL=style.css.map */
  986. // }}} Pygments //