main.css 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649
  1. /**
  2. * Reset some basic elements
  3. */
  4. body, h1, h2, h3, h4, h5, h6,
  5. p, blockquote, pre, hr,
  6. dl, dd, ol, ul, figure {
  7. margin: 0;
  8. padding: 0;
  9. }
  10. /**
  11. * Basic styling
  12. */
  13. body {
  14. font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  15. color: #111;
  16. background-color: #fdfdfd;
  17. -webkit-text-size-adjust: 100%;
  18. -webkit-font-feature-settings: "kern" 1;
  19. -moz-font-feature-settings: "kern" 1;
  20. -o-font-feature-settings: "kern" 1;
  21. font-feature-settings: "kern" 1;
  22. font-kerning: normal;
  23. display: flex;
  24. min-height: 100vh;
  25. flex-direction: column;
  26. }
  27. /**
  28. * Set `margin-bottom` to maintain vertical rhythm
  29. */
  30. h1, h2, h3, h4, h5, h6,
  31. p, blockquote, pre,
  32. ul, ol, dl, figure,
  33. .highlight {
  34. margin-bottom: 15px;
  35. }
  36. /**
  37. * `main` element
  38. */
  39. main {
  40. display: block; /* Default value of `display` of `main` element is 'inline' in IE 11. */
  41. }
  42. /**
  43. * Images
  44. */
  45. img {
  46. max-width: 100%;
  47. vertical-align: middle;
  48. }
  49. /**
  50. * Figures
  51. */
  52. figure > img {
  53. display: block;
  54. }
  55. figcaption {
  56. font-size: 14px;
  57. }
  58. /**
  59. * Lists
  60. */
  61. ul, ol {
  62. margin-left: 30px;
  63. }
  64. li > ul,
  65. li > ol {
  66. margin-bottom: 0;
  67. }
  68. /**
  69. * Headings
  70. */
  71. h1, h2, h3, h4, h5, h6 {
  72. font-weight: 400;
  73. }
  74. /**
  75. * Links
  76. */
  77. a {
  78. color: #2a7ae2;
  79. text-decoration: none;
  80. }
  81. a:visited {
  82. color: #1756a9;
  83. }
  84. a:hover {
  85. color: #111;
  86. text-decoration: underline;
  87. }
  88. .social-media-list a:hover {
  89. text-decoration: none;
  90. }
  91. .social-media-list a:hover .username {
  92. text-decoration: underline;
  93. }
  94. /**
  95. * Blockquotes
  96. */
  97. blockquote {
  98. color: #828282;
  99. border-left: 4px solid #e8e8e8;
  100. padding-left: 15px;
  101. font-size: 18px;
  102. letter-spacing: -1px;
  103. font-style: italic;
  104. }
  105. blockquote > :last-child {
  106. margin-bottom: 0;
  107. }
  108. /**
  109. * Code formatting
  110. */
  111. pre,
  112. code {
  113. font-size: 15px;
  114. border: 1px solid #e8e8e8;
  115. border-radius: 3px;
  116. background-color: #eef;
  117. }
  118. code {
  119. padding: 1px 5px;
  120. }
  121. pre {
  122. padding: 8px 12px;
  123. overflow-x: auto;
  124. }
  125. pre > code {
  126. border: 0;
  127. padding-right: 0;
  128. padding-left: 0;
  129. }
  130. /**
  131. * Wrapper
  132. */
  133. .wrapper {
  134. max-width: -webkit-calc(800px - (30px * 2));
  135. max-width: calc(800px - (30px * 2));
  136. margin-right: auto;
  137. margin-left: auto;
  138. padding-right: 30px;
  139. padding-left: 30px;
  140. }
  141. @media screen and (max-width: 800px) {
  142. .wrapper {
  143. max-width: -webkit-calc(800px - (30px));
  144. max-width: calc(800px - (30px));
  145. padding-right: 15px;
  146. padding-left: 15px;
  147. }
  148. }
  149. /**
  150. * Clearfix
  151. */
  152. .footer-col-wrapper:after, .wrapper:after {
  153. content: "";
  154. display: table;
  155. clear: both;
  156. }
  157. /**
  158. * Icons
  159. */
  160. .svg-icon {
  161. width: 16px;
  162. height: 16px;
  163. display: inline-block;
  164. fill: #828282;
  165. padding-right: 5px;
  166. vertical-align: text-top;
  167. }
  168. .social-media-list li + li {
  169. padding-top: 5px;
  170. }
  171. /**
  172. * Tables
  173. */
  174. table {
  175. margin-bottom: 30px;
  176. width: 100%;
  177. text-align: left;
  178. color: #3f3f3f;
  179. border-collapse: collapse;
  180. border: 1px solid #e8e8e8;
  181. }
  182. table tr:nth-child(even) {
  183. background-color: #f7f7f7;
  184. }
  185. table th, table td {
  186. padding: 10px 15px;
  187. }
  188. table th {
  189. background-color: #f0f0f0;
  190. border: 1px solid #dedede;
  191. border-bottom-color: #c9c9c9;
  192. }
  193. table td {
  194. border: 1px solid #e8e8e8;
  195. }
  196. /**
  197. * Site header
  198. */
  199. .site-header {
  200. border-top: 5px solid #424242;
  201. border-bottom: 1px solid #e8e8e8;
  202. min-height: 55.95px;
  203. position: relative;
  204. }
  205. .site-title {
  206. font-size: 26px;
  207. font-weight: 300;
  208. line-height: 54px;
  209. letter-spacing: -1px;
  210. margin-bottom: 0;
  211. float: left;
  212. }
  213. .site-title, .site-title:visited {
  214. color: #424242;
  215. }
  216. .site-nav {
  217. float: right;
  218. line-height: 54px;
  219. }
  220. .site-nav .nav-trigger {
  221. display: none;
  222. }
  223. .site-nav .menu-icon {
  224. display: none;
  225. }
  226. .site-nav .page-link {
  227. color: #111;
  228. line-height: 1.5;
  229. }
  230. .site-nav .page-link:not(:last-child) {
  231. margin-right: 20px;
  232. }
  233. @media screen and (max-width: 600px) {
  234. .site-nav {
  235. position: absolute;
  236. top: 9px;
  237. right: 15px;
  238. background-color: #fdfdfd;
  239. border: 1px solid #e8e8e8;
  240. border-radius: 5px;
  241. text-align: right;
  242. }
  243. .site-nav label[for=nav-trigger] {
  244. display: block;
  245. float: right;
  246. width: 36px;
  247. height: 36px;
  248. z-index: 2;
  249. cursor: pointer;
  250. }
  251. .site-nav .menu-icon {
  252. display: block;
  253. float: right;
  254. width: 36px;
  255. height: 26px;
  256. line-height: 0;
  257. padding-top: 10px;
  258. text-align: center;
  259. }
  260. .site-nav .menu-icon > svg {
  261. fill: #424242;
  262. }
  263. .site-nav input ~ .trigger {
  264. clear: both;
  265. display: none;
  266. }
  267. .site-nav input:checked ~ .trigger {
  268. display: block;
  269. padding-bottom: 5px;
  270. }
  271. .site-nav .page-link {
  272. display: block;
  273. padding: 5px 10px;
  274. margin-left: 20px;
  275. }
  276. .site-nav .page-link:not(:last-child) {
  277. margin-right: 0;
  278. }
  279. }
  280. /**
  281. * Site footer
  282. */
  283. .site-footer {
  284. border-top: 1px solid #e8e8e8;
  285. padding: 30px 0;
  286. }
  287. .footer-heading {
  288. font-size: 18px;
  289. margin-bottom: 15px;
  290. }
  291. .contact-list,
  292. .social-media-list {
  293. list-style: none;
  294. margin-left: 0;
  295. }
  296. .footer-col-wrapper {
  297. font-size: 15px;
  298. color: #828282;
  299. margin-left: -15px;
  300. }
  301. .footer-col {
  302. float: left;
  303. margin-bottom: 15px;
  304. padding-left: 15px;
  305. }
  306. .footer-col-1 {
  307. width: -webkit-calc(35% - (30px / 2));
  308. width: calc(35% - (30px / 2));
  309. }
  310. .footer-col-2 {
  311. width: -webkit-calc(20% - (30px / 2));
  312. width: calc(20% - (30px / 2));
  313. }
  314. .footer-col-3 {
  315. width: -webkit-calc(45% - (30px / 2));
  316. width: calc(45% - (30px / 2));
  317. }
  318. @media screen and (max-width: 800px) {
  319. .footer-col-1,
  320. .footer-col-2 {
  321. width: -webkit-calc(50% - (30px / 2));
  322. width: calc(50% - (30px / 2));
  323. }
  324. .footer-col-3 {
  325. width: -webkit-calc(100% - (30px / 2));
  326. width: calc(100% - (30px / 2));
  327. }
  328. }
  329. @media screen and (max-width: 600px) {
  330. .footer-col {
  331. float: none;
  332. width: -webkit-calc(100% - (30px / 2));
  333. width: calc(100% - (30px / 2));
  334. }
  335. }
  336. /**
  337. * Page content
  338. */
  339. .page-content {
  340. padding: 30px 0;
  341. flex: 1;
  342. }
  343. .page-heading {
  344. font-size: 32px;
  345. }
  346. .post-list-heading {
  347. font-size: 28px;
  348. }
  349. .post-list {
  350. margin-left: 0;
  351. list-style: none;
  352. }
  353. .post-list > li {
  354. margin-bottom: 30px;
  355. }
  356. .post-meta {
  357. font-size: 14px;
  358. color: #828282;
  359. }
  360. .post-link {
  361. display: block;
  362. font-size: 24px;
  363. }
  364. /**
  365. * Posts
  366. */
  367. .post-header {
  368. margin-bottom: 30px;
  369. }
  370. .post-title {
  371. font-size: 42px;
  372. letter-spacing: -1px;
  373. line-height: 1;
  374. }
  375. @media screen and (max-width: 800px) {
  376. .post-title {
  377. font-size: 36px;
  378. }
  379. }
  380. .post-content {
  381. margin-bottom: 30px;
  382. }
  383. .post-content h2 {
  384. font-size: 32px;
  385. }
  386. @media screen and (max-width: 800px) {
  387. .post-content h2 {
  388. font-size: 28px;
  389. }
  390. }
  391. .post-content h3 {
  392. font-size: 26px;
  393. }
  394. @media screen and (max-width: 800px) {
  395. .post-content h3 {
  396. font-size: 22px;
  397. }
  398. }
  399. .post-content h4 {
  400. font-size: 20px;
  401. }
  402. @media screen and (max-width: 800px) {
  403. .post-content h4 {
  404. font-size: 18px;
  405. }
  406. }
  407. /**
  408. * Syntax highlighting styles
  409. */
  410. .highlight {
  411. background: #fff;
  412. }
  413. .highlighter-rouge .highlight {
  414. background: #eef;
  415. }
  416. .highlight .c {
  417. color: #998;
  418. font-style: italic;
  419. }
  420. .highlight .err {
  421. color: #a61717;
  422. background-color: #e3d2d2;
  423. }
  424. .highlight .k {
  425. font-weight: bold;
  426. }
  427. .highlight .o {
  428. font-weight: bold;
  429. }
  430. .highlight .cm {
  431. color: #998;
  432. font-style: italic;
  433. }
  434. .highlight .cp {
  435. color: #999;
  436. font-weight: bold;
  437. }
  438. .highlight .c1 {
  439. color: #998;
  440. font-style: italic;
  441. }
  442. .highlight .cs {
  443. color: #999;
  444. font-weight: bold;
  445. font-style: italic;
  446. }
  447. .highlight .gd {
  448. color: #000;
  449. background-color: #fdd;
  450. }
  451. .highlight .gd .x {
  452. color: #000;
  453. background-color: #faa;
  454. }
  455. .highlight .ge {
  456. font-style: italic;
  457. }
  458. .highlight .gr {
  459. color: #a00;
  460. }
  461. .highlight .gh {
  462. color: #999;
  463. }
  464. .highlight .gi {
  465. color: #000;
  466. background-color: #dfd;
  467. }
  468. .highlight .gi .x {
  469. color: #000;
  470. background-color: #afa;
  471. }
  472. .highlight .go {
  473. color: #888;
  474. }
  475. .highlight .gp {
  476. color: #555;
  477. }
  478. .highlight .gs {
  479. font-weight: bold;
  480. }
  481. .highlight .gu {
  482. color: #aaa;
  483. }
  484. .highlight .gt {
  485. color: #a00;
  486. }
  487. .highlight .kc {
  488. font-weight: bold;
  489. }
  490. .highlight .kd {
  491. font-weight: bold;
  492. }
  493. .highlight .kp {
  494. font-weight: bold;
  495. }
  496. .highlight .kr {
  497. font-weight: bold;
  498. }
  499. .highlight .kt {
  500. color: #458;
  501. font-weight: bold;
  502. }
  503. .highlight .m {
  504. color: #099;
  505. }
  506. .highlight .s {
  507. color: #d14;
  508. }
  509. .highlight .na {
  510. color: #008080;
  511. }
  512. .highlight .nb {
  513. color: #0086B3;
  514. }
  515. .highlight .nc {
  516. color: #458;
  517. font-weight: bold;
  518. }
  519. .highlight .no {
  520. color: #008080;
  521. }
  522. .highlight .ni {
  523. color: #800080;
  524. }
  525. .highlight .ne {
  526. color: #900;
  527. font-weight: bold;
  528. }
  529. .highlight .nf {
  530. color: #900;
  531. font-weight: bold;
  532. }
  533. .highlight .nn {
  534. color: #555;
  535. }
  536. .highlight .nt {
  537. color: #000080;
  538. }
  539. .highlight .nv {
  540. color: #008080;
  541. }
  542. .highlight .ow {
  543. font-weight: bold;
  544. }
  545. .highlight .w {
  546. color: #bbb;
  547. }
  548. .highlight .mf {
  549. color: #099;
  550. }
  551. .highlight .mh {
  552. color: #099;
  553. }
  554. .highlight .mi {
  555. color: #099;
  556. }
  557. .highlight .mo {
  558. color: #099;
  559. }
  560. .highlight .sb {
  561. color: #d14;
  562. }
  563. .highlight .sc {
  564. color: #d14;
  565. }
  566. .highlight .sd {
  567. color: #d14;
  568. }
  569. .highlight .s2 {
  570. color: #d14;
  571. }
  572. .highlight .se {
  573. color: #d14;
  574. }
  575. .highlight .sh {
  576. color: #d14;
  577. }
  578. .highlight .si {
  579. color: #d14;
  580. }
  581. .highlight .sx {
  582. color: #d14;
  583. }
  584. .highlight .sr {
  585. color: #009926;
  586. }
  587. .highlight .s1 {
  588. color: #d14;
  589. }
  590. .highlight .ss {
  591. color: #990073;
  592. }
  593. .highlight .bp {
  594. color: #999;
  595. }
  596. .highlight .vc {
  597. color: #008080;
  598. }
  599. .highlight .vg {
  600. color: #008080;
  601. }
  602. .highlight .vi {
  603. color: #008080;
  604. }
  605. .highlight .il {
  606. color: #099;
  607. }
  608. /*# sourceMappingURL=main.css.map */