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.

1174 lines
23 KiB

2 years ago
2 years ago
3 months ago
3 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 months ago
2 years ago
3 months ago
2 years ago
3 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 months ago
5 months ago
3 months ago
5 months ago
5 months ago
3 months ago
5 months ago
3 months ago
5 months ago
3 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 months ago
3 months ago
3 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. }
  547. .project-link {
  548. &:link {
  549. text-decoration: none;
  550. }
  551. &:hover {
  552. text-decoration: none;
  553. }
  554. }
  555. .down-triangle {
  556. // fill: blue;
  557. height: 1.2em;
  558. position: relative;
  559. top: -3px;
  560. left: -3px;
  561. }
  562. .btn {// {{{
  563. display: inline;
  564. background-color: transparent;
  565. margin-bottom: 5px;
  566. padding-left: 7px;
  567. &:focus, &:active {
  568. outline: none !important;
  569. box-shadow: none;
  570. }
  571. }// }}}
  572. // }}}
  573. // [id^="details-"] {
  574. // margin-top: .5em;
  575. // }
  576. }
  577. }// }}}
  578. .company {
  579. // color: #fe4646;
  580. color: black;
  581. font-weight: bold;
  582. font-size: 1.2em;
  583. margin-bottom: 5px;
  584. }
  585. .position {
  586. // color: black;
  587. // color: $base-sky-blue;
  588. // color: $base-blue;
  589. color: black;
  590. font-weight: bold;
  591. // font-style: italic;
  592. // font-size: 1.1em;
  593. font-size: 1em;
  594. // margin-bottom: 5px;
  595. margin-bottom: 15px;
  596. }
  597. .institution {
  598. // color: $base-yellow;
  599. // color: $base-dark-orange;
  600. // color: $base-blue;
  601. color: black;
  602. font-weight: bold;
  603. font-size: 1.1em;
  604. margin-bottom: 5px;
  605. }
  606. .title {
  607. font-style: italic;
  608. }
  609. #education {// {{{
  610. .date {
  611. padding-top: 0;
  612. }
  613. }// }}}
  614. // @media (max-width: $phone-width) {
  615. // font-size: 14px;
  616. // // font-size: 1em;
  617. // }
  618. &.letter {
  619. margin-top: 2em;
  620. line-height: 1.5em;
  621. img {
  622. height: 4.5em;
  623. }
  624. h2 {
  625. color: $base-red;
  626. margin-top: 0em;
  627. margin-bottom: .4em;
  628. }
  629. p {
  630. margin-bottom: 1em;
  631. }
  632. .no-line-spacing {
  633. line-height: .5em;
  634. margin-bottom: 1.75em;
  635. p {
  636. margin-bottom: 1em;
  637. }
  638. }
  639. }
  640. }// }}}
  641. #server {// {{{
  642. .body {
  643. @include vert-padding-rem(.5);
  644. }
  645. h1 {
  646. margin-bottom: .25em;
  647. }
  648. // table {
  649. // margin-top: 1.75em;
  650. // }
  651. th, td {
  652. @include vert-padding-rem(.4);
  653. @include side-padding-rem(.5);
  654. border: 1px solid rgba(160, 159, 147, .5);
  655. }
  656. th {
  657. color: $base-orange;
  658. text-align: center;
  659. font-size: 1.3em;
  660. }
  661. td {
  662. font-size: .9em;
  663. }
  664. .description {
  665. font-size: .85em;
  666. }
  667. .status {
  668. text-align: center;
  669. img {
  670. height: 2em;
  671. }
  672. }
  673. #time-info {
  674. padding-top: 1em;
  675. font-size: .75em;
  676. font-style: italic;
  677. color: $base03;
  678. }
  679. }// }}}
  680. // TODO: converted up to here
  681. // hero {{{ //
  682. h1.site-title {// {{{
  683. text-align: center;
  684. // font-size: 4.2em;
  685. // font-size: 3.2em;
  686. font-size: 2.5em;
  687. // color: #66cccc;
  688. color: $base05;
  689. // margin-top: 1rem;
  690. // margin-bottom: 0.75rem;
  691. @include vert-margin-rem(.75);
  692. // @include a-color($base-sky-blue);
  693. a {
  694. color: black;
  695. // text-decoration: none;
  696. text-decoration: underline;
  697. text-decoration-thickness: 2px;
  698. text-underline-offset: 5px;
  699. }
  700. // @media (max-width: $phone-width) {
  701. // font-size: 3em;
  702. // }
  703. // @media (max-width: $phone-width) {
  704. // font-size: 3.5em;
  705. // @include vert-margin-rem(.3);
  706. // // font-size: 2.5em;
  707. // // font-size: 2em;
  708. // .surrounding {
  709. // display: none;
  710. // }
  711. // }
  712. }// }}}
  713. .hero-logo img {
  714. margin-top: 0.5rem;
  715. width: 100%;
  716. // display: none;
  717. // width: $max-page-width;
  718. }
  719. .nav-bar {// {{{
  720. margin-left: .5em;
  721. // margin-bottom: 1em;
  722. // margin-top: .75em;
  723. @include vert-padding-rem(.5);
  724. .caret {
  725. color: #f2f0ec;
  726. margin-right: .75rem;
  727. }
  728. .nav-bar-links {
  729. display: inline;
  730. .nav-bar-link {
  731. padding-right: .5em;
  732. }
  733. }
  734. @media (max-width: $phone-width) {
  735. // font-size: .9em;
  736. font-size: .8em;
  737. }
  738. }// }}}
  739. .hero-tagline{// {{{
  740. margin-top: .3em;
  741. font-size: .8rem;
  742. // font-style: italic;
  743. text-align: center;
  744. .icon {
  745. width: 1.25rem;
  746. }
  747. }// }}}
  748. // }}} hero //
  749. // article-list {{{ //
  750. .article-list h1.list-title {
  751. font-size: 3em;
  752. color: #ffcc66;
  753. }
  754. .article-list article {
  755. padding-top: 4rem;
  756. padding-bottom: 4rem;
  757. margin-bottom: 4rem;
  758. }
  759. .article-list article h2.headline,
  760. .article-list article h2.headline a {
  761. margin-top: 0;
  762. color: #6699cc;
  763. }
  764. .article-list article .meta {
  765. margin-bottom: 1rem;
  766. }
  767. .article-list article .meta .key {
  768. color: #747369;
  769. }
  770. .article-list article .meta .val,
  771. .article-list article .meta .val a {
  772. color: #cc99cc;
  773. }
  774. .article-list article section.summary a { color: #d27b53; }
  775. // }}} article-list //
  776. // article.single {{{ //
  777. article.single {
  778. .meta {
  779. font-size: 0.9em;
  780. text-align: right;
  781. margin-top: .5rem;
  782. margin-bottom: .5rem;
  783. .key {
  784. color: #747369;
  785. }
  786. .val {
  787. color: #cc99cc;
  788. a {
  789. color: #cc99cc;
  790. }
  791. }
  792. }
  793. .body {
  794. padding-top: 1rem;
  795. padding-bottom: 3rem;
  796. }
  797. @media (max-width: $max-page-width) {
  798. .meta {
  799. padding-left: 2rem;
  800. padding-right: 2rem;
  801. }
  802. .body {
  803. padding-top: .5rem;
  804. padding-bottom: 1rem;
  805. }
  806. }
  807. }
  808. article.single h1.headline {
  809. margin-top: 0;
  810. font-size: 3em;
  811. color: #ffcc66;
  812. }
  813. @media (max-width: $max-page-width) {
  814. article.single h1.headline {
  815. font-size: 2em;
  816. padding-left: 2rem;
  817. padding-right: 2rem;
  818. }
  819. }
  820. /* Highlight Colors */
  821. article.single section.body h1 { color: #6699cc; }
  822. article.single section.body h2 { color: #99cc99; }
  823. article.single section.body h3 { color: #f99157; }
  824. article.single section.body h4 { color: #f2777a; }
  825. article.single section.body h5 { color: #515151; }
  826. article.single section.body h6 { color: #747369; }
  827. // article.single section.body a,a:visited { color: #a06700; }
  828. article.single section.body a,a:visited { color: $base-sky-blue; }
  829. /* Article Elements */
  830. article.single * {
  831. max-width: 100%;
  832. }
  833. article.single pre {
  834. margin-top: 0;
  835. margin-bottom: 1rem;
  836. // overflow-x: auto;
  837. border-radius: 3px;
  838. padding: 2rem;
  839. }
  840. article.single p code {
  841. padding: 0.2em 0.5em;
  842. border-radius: 3px;
  843. background: #747369;
  844. color: #f2f0ec;
  845. }
  846. article.single figure, article.single div.highlight {
  847. box-sizing: border-box;
  848. max-width: 52rem;
  849. width: 52rem;
  850. margin-bottom: 1rem;
  851. padding: 1em;
  852. background-color: #393939;
  853. }
  854. @media (max-width: $max-page-width) {
  855. article.single figure, article.single div.highlight {
  856. width: 100%;
  857. margin-left: 0;
  858. margin-right: 0;
  859. border-radius: 3px;
  860. }
  861. }
  862. article.single figure img {
  863. max-width: 100%;
  864. width: 100%;
  865. border-radius: 3px;
  866. }
  867. article.single figure figcaption {
  868. margin-top: 1rem;
  869. }
  870. article.single figure figcaption h4 {
  871. margin-top: 0;
  872. text-align: center;
  873. font-style: italic;
  874. font-weight: normal;
  875. color: #f2f0ec;
  876. }
  877. article.single table {
  878. border-collapse: separate;
  879. border-spacing: 0;
  880. max-width: 100%;
  881. width: 100%;
  882. }
  883. article.single th,
  884. article.single td {
  885. padding: .25rem 1rem;
  886. line-height: inherit;
  887. border-bottom-width: 1px;
  888. border-bottom-style: solid;
  889. border-bottom-color: $base04;
  890. }
  891. article.single tr:last-child td {
  892. border-bottom: 0;
  893. }
  894. article.single th {
  895. text-align: left;
  896. font-weight: bold;
  897. vertical-align: bottom;
  898. }
  899. article.single td { vertical-align: top }
  900. article.single blockquote {
  901. margin-left: 2rem;
  902. margin-right: 3rem;
  903. padding-left: 1rem;
  904. border-left: 5px solid #66cccc;
  905. }
  906. article.single hr {
  907. border: 0;
  908. border-bottom-style: solid;
  909. border-bottom-width: 1px;
  910. border-bottom-color: $base04;
  911. }
  912. // }}} article.single //
  913. // Pygments {{{ //
  914. pre { background: #2d2d2d; color: #f2f0ec }
  915. .highlight .hll { background-color: #515151 }
  916. .highlight .c { color: #747369 } /* Comment */
  917. .highlight .err { color: #f2777a } /* Error */
  918. .highlight .k { color: #cc99cc } /* Keyword */
  919. .highlight .l { color: #f99157 } /* Literal */
  920. .highlight .n { color: #f2f0ec } /* Name */
  921. .highlight .o { color: #66cccc } /* Operator */
  922. .highlight .p { color: #f2f0ec } /* Punctuation */
  923. .highlight .cm { color: #747369 } /* Comment.Multiline */
  924. .highlight .cp { color: #747369 } /* Comment.Preproc */
  925. .highlight .c1 { color: #747369 } /* Comment.Single */
  926. .highlight .cs { color: #747369 } /* Comment.Special */
  927. .highlight .gd { color: #f2777a } /* Generic.Deleted */
  928. .highlight .ge { font-style: italic } /* Generic.Emph */
  929. .highlight .gh { color: #f2f0ec; font-weight: bold } /* Generic.Heading */
  930. .highlight .gi { color: #99cc99 } /* Generic.Inserted */
  931. .highlight .gp { color: #747369; font-weight: bold } /* Generic.Prompt */
  932. .highlight .gs { font-weight: bold } /* Generic.Strong */
  933. .highlight .gu { color: #66cccc; font-weight: bold } /* Generic.Subheading */
  934. .highlight .kc { color: #cc99cc } /* Keyword.Constant */
  935. .highlight .kd { color: #cc99cc } /* Keyword.Declaration */
  936. .highlight .kn { color: #66cccc } /* Keyword.Namespace */
  937. .highlight .kp { color: #cc99cc } /* Keyword.Pseudo */
  938. .highlight .kr { color: #cc99cc } /* Keyword.Reserved */
  939. .highlight .kt { color: #ffcc66 } /* Keyword.Type */
  940. .highlight .ld { color: #99cc99 } /* Literal.Date */
  941. .highlight .m { color: #f99157 } /* Literal.Number */
  942. .highlight .s { color: #99cc99 } /* Literal.String */
  943. .highlight .na { color: #6699cc } /* Name.Attribute */
  944. .highlight .nb { color: #f2f0ec } /* Name.Builtin */
  945. .highlight .nc { color: #ffcc66 } /* Name.Class */
  946. .highlight .no { color: #f2777a } /* Name.Constant */
  947. .highlight .nd { color: #66cccc } /* Name.Decorator */
  948. .highlight .ni { color: #f2f0ec } /* Name.Entity */
  949. .highlight .ne { color: #f2777a } /* Name.Exception */
  950. .highlight .nf { color: #6699cc } /* Name.Function */
  951. .highlight .nl { color: #f2f0ec } /* Name.Label */
  952. .highlight .nn { color: #ffcc66 } /* Name.Namespace */
  953. .highlight .nx { color: #6699cc } /* Name.Other */
  954. .highlight .py { color: #f2f0ec } /* Name.Property */
  955. .highlight .nt { color: #66cccc } /* Name.Tag */
  956. .highlight .nv { color: #f2777a } /* Name.Variable */
  957. .highlight .ow { color: #66cccc } /* Operator.Word */
  958. .highlight .w { color: #f2f0ec } /* Text.Whitespace */
  959. .highlight .mf { color: #f99157 } /* Literal.Number.Float */
  960. .highlight .mh { color: #f99157 } /* Literal.Number.Hex */
  961. .highlight .mi { color: #f99157 } /* Literal.Number.Integer */
  962. .highlight .mo { color: #f99157 } /* Literal.Number.Oct */
  963. .highlight .sb { color: #99cc99 } /* Literal.String.Backtick */
  964. .highlight .sc { color: #f2f0ec } /* Literal.String.Char */
  965. .highlight .sd { color: #747369 } /* Literal.String.Doc */
  966. .highlight .s2 { color: #99cc99 } /* Literal.String.Double */
  967. .highlight .se { color: #f99157 } /* Literal.String.Escape */
  968. .highlight .sh { color: #99cc99 } /* Literal.String.Heredoc */
  969. .highlight .si { color: #f99157 } /* Literal.String.Interpol */
  970. .highlight .sx { color: #99cc99 } /* Literal.String.Other */
  971. .highlight .sr { color: #99cc99 } /* Literal.String.Regex */
  972. .highlight .s1 { color: #99cc99 } /* Literal.String.Single */
  973. .highlight .ss { color: #99cc99 } /* Literal.String.Symbol */
  974. .highlight .bp { color: #f2f0ec } /* Name.Builtin.Pseudo */
  975. .highlight .vc { color: #f2777a } /* Name.Variable.Class */
  976. .highlight .vg { color: #f2777a } /* Name.Variable.Global */
  977. .highlight .vi { color: #f2777a } /* Name.Variable.Instance */
  978. .highlight .il { color: #f99157 } /* Literal.Number.Integer.Long */
  979. /*# sourceMappingURL=style.css.map */
  980. // }}} Pygments //