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.

1258 lines
24 KiB

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