main.css 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788
  1. ---
  2. layout: null
  3. ---
  4. @import url("pygment_highlights.css");
  5. /* --- General --- */
  6. body {
  7. font-family: 'Lora', 'Times New Roman', serif;
  8. font-size: 18px;
  9. color: #404040;
  10. position: relative;
  11. background-color: {{ site.page-col }};
  12. {% if site.page-img %}
  13. background-image: url({{ site.page-img | relative_url }});
  14. background-attachment: fixed;
  15. {% endif %}
  16. }
  17. p {
  18. line-height: 1.5;
  19. margin: 30px 0;
  20. }
  21. h1,h2,h3,h4,h5,h6 {
  22. font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  23. font-weight: 800;
  24. }
  25. a {
  26. color: {{ site.link-col }};
  27. }
  28. a:hover,
  29. a:focus {
  30. color: {{ site.hover-col }};
  31. }
  32. blockquote {
  33. color: #808080;
  34. font-style: italic;
  35. }
  36. blockquote p:first-child {
  37. margin-top: 0;
  38. }
  39. hr.small {
  40. max-width: 100px;
  41. margin: 15px auto;
  42. border-width: 4px;
  43. border-color: inherit;
  44. border-radius: 3px;
  45. }
  46. .main-content {
  47. padding-top: 80px;
  48. }
  49. @media only screen and (min-width: 768px) {
  50. .main-content {
  51. padding-top: 130px;
  52. }
  53. }
  54. .main-explain-area {
  55. font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  56. padding: 15px inherit;
  57. }
  58. .hideme {
  59. display: none;
  60. }
  61. ::-moz-selection {
  62. color: white;
  63. text-shadow: none;
  64. background-color: {{ site.hover-col }};
  65. }
  66. ::selection {
  67. color: white;
  68. text-shadow: none;
  69. background-color: {{ site.hover-col }};
  70. }
  71. img::selection {
  72. color: white;
  73. background: transparent;
  74. }
  75. img::-moz-selection {
  76. color: white;
  77. background: transparent;
  78. }
  79. img {
  80. max-width: 100%;
  81. }
  82. .disqus-comments {
  83. margin-top: 30px;
  84. }
  85. @media only screen and (min-width: 768px) {
  86. .disqus-comments {
  87. margin-top: 40px;
  88. }
  89. }
  90. .linked-section {
  91. padding-top: 60px;
  92. margin-top: -25px;
  93. }
  94. /* --- Navbar --- */
  95. .navbar-custom {
  96. background-color: {{ site.navbar-col }};
  97. border-bottom: 1px solid #EAEAEA;
  98. font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  99. {% if site.navbar-img %}
  100. background-image: url({{ site.navbar-img | relative_url }});
  101. background-attachment: fixed;
  102. {% endif %}
  103. }
  104. .navbar-custom .nav li a {
  105. text-transform: uppercase;
  106. font-size: 12px;
  107. letter-spacing: 1px;
  108. }
  109. .navbar-custom .navbar-brand,
  110. .navbar-custom .nav li a {
  111. font-weight: 800;
  112. color: {{ site.navbar-text-col }};
  113. }
  114. .navbar-custom .navbar-brand:hover,
  115. .navbar-custom .navbar-brand:focus ,
  116. .navbar-custom .nav li a:hover,
  117. .navbar-custom .nav li a:focus {
  118. color: {{ site.hover-col }};
  119. }
  120. .navbar-custom .navbar-brand-logo {
  121. padding-top: 0;
  122. -webkit-transition: padding .5s ease-in-out;
  123. -moz-transition: padding .5s ease-in-out;
  124. transition: padding .5s ease-in-out;
  125. }
  126. .navbar-custom .navbar-brand-logo img {
  127. height: 50px;
  128. -webkit-transition: height .5s ease-in-out;
  129. -moz-transition: height .5s ease-in-out;
  130. transition: height .5s ease-in-out;
  131. }
  132. .navbar-custom.top-nav-short .navbar-brand-logo {
  133. padding-top: 5px;
  134. }
  135. .navbar-custom.top-nav-short .navbar-brand-logo img {
  136. height: 40px;
  137. }
  138. @media only screen and (min-width: 768px) {
  139. .navbar-custom {
  140. padding: 20px 0;
  141. -webkit-transition: background .5s ease-in-out,padding .5s ease-in-out;
  142. -moz-transition: background .5s ease-in-out,padding .5s ease-in-out;
  143. transition: background .5s ease-in-out,padding .5s ease-in-out;
  144. }
  145. .navbar-custom.top-nav-short {
  146. padding: 0;
  147. }
  148. }
  149. .navbar-custom .avatar-container {
  150. position: absolute;
  151. left: 50%;
  152. width: 50px;
  153. margin-top: -25px;
  154. }
  155. .navbar-custom .avatar-container .avatar-img-border {
  156. width: 100%;
  157. border-radius: 50%;
  158. margin-left: -50%;
  159. display: inline-block;
  160. box-shadow: 0 0 8px rgba(0, 0, 0, .8);
  161. -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .8);
  162. -moz-box-shadow: 0 0 8px rgba(0, 0, 0, .8);
  163. }
  164. .navbar-custom .avatar-container .avatar-img {
  165. width: 100%;
  166. border-radius: 50%;
  167. display: block;
  168. }
  169. .navbar-custom.top-nav-expanded .avatar-container {
  170. display: none;
  171. }
  172. @media only screen and (min-width: 768px) {
  173. .navbar-custom .avatar-container {
  174. width: 100px;
  175. margin-top: -50px;
  176. }
  177. .navbar-custom .avatar-container .avatar-img-border {
  178. width: 100%;
  179. box-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
  180. -webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
  181. -moz-box-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
  182. }
  183. .navbar-custom .avatar-container .avatar-img {
  184. width: 100%;
  185. }
  186. }
  187. /* Multi-level navigation links */
  188. .navbar-custom .nav .navlinks-container {
  189. position: relative;
  190. }
  191. .navbar-custom .nav .navlinks-parent:after {
  192. content: " \25BC";
  193. }
  194. .navbar-custom .nav .navlinks-children {
  195. width: 100%;
  196. display: none;
  197. word-break: break-word;
  198. }
  199. .navbar-custom .nav .navlinks-container .navlinks-children a {
  200. display: block;
  201. padding: 10px;
  202. padding-left: 30px;
  203. background-color: {{ site.navbar-children-col }};
  204. text-decoration: none !important;
  205. border-width: 0 1px 1px 1px;
  206. font-weight: normal;
  207. }
  208. @media only screen and (max-width: 767px) {
  209. .navbar-custom .nav .navlinks-container.show-children {
  210. background: rgba(0, 0, 0, 0.2);
  211. }
  212. .navbar-custom .nav .navlinks-container.show-children .navlinks-children {
  213. display: block;
  214. }
  215. }
  216. @media only screen and (min-width: 768px) {
  217. .navbar-custom .nav .navlinks-container {
  218. text-align: center;
  219. }
  220. .navbar-custom .nav .navlinks-container:hover {
  221. background: rgba(0, 0, 0, 0.1);
  222. }
  223. .navbar-custom .nav .navlinks-container:hover .navlinks-children {
  224. display: block;
  225. }
  226. .navbar-custom .nav .navlinks-children {
  227. position: absolute;
  228. }
  229. .navbar-custom .nav .navlinks-container .navlinks-children a {
  230. padding-left: 10px;
  231. border: 1px solid #eaeaea;
  232. border-width: 0 1px 1px;
  233. }
  234. }
  235. /* --- Footer --- */
  236. footer {
  237. padding: 30px 0;
  238. border-top: 1px #EAEAEA solid;
  239. margin-top: 50px;
  240. font-size: 14px;
  241. background-color: {{ site.footer-col }};
  242. {% if site.footer-img %}
  243. background-image: url({{ site.footer-img | relative_url }});
  244. background-attachment: fixed;
  245. {% endif %}
  246. }
  247. footer p.text-muted {
  248. color: {{ site.footer-text-col }};
  249. }
  250. footer a {
  251. color: {{site.footer-link-col}};
  252. }
  253. footer .list-inline {
  254. margin: 0;
  255. padding: 0;
  256. }
  257. footer .copyright {
  258. font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  259. text-align: center;
  260. margin-bottom: 0;
  261. }
  262. footer .theme-by {
  263. text-align: center;
  264. margin: 10px 0 0;
  265. }
  266. @media only screen and (min-width: 768px) {
  267. footer {
  268. padding: 50px 0;
  269. }
  270. footer .footer-links {
  271. font-size: 18px;
  272. }
  273. footer .copyright {
  274. font-size: 16px;
  275. }
  276. }
  277. /* --- Post preview --- */
  278. .post-preview {
  279. padding: 20px 0;
  280. border-bottom: 1px solid #eee;
  281. }
  282. @media only screen and (min-width: 768px) {
  283. .post-preview {
  284. padding: 35px 0;
  285. }
  286. }
  287. .post-preview:last-child {
  288. border-bottom: 0;
  289. }
  290. .post-preview a {
  291. text-decoration: none;
  292. color: #404040;
  293. }
  294. .post-preview a:focus,
  295. .post-preview a:hover {
  296. text-decoration: none;
  297. color: {{ site.hover-col }};
  298. }
  299. .post-preview .post-title {
  300. font-size: 30px;
  301. margin-top: 0;
  302. }
  303. .post-preview .post-subtitle {
  304. margin: 0;
  305. font-weight: 300;
  306. margin-bottom: 10px;
  307. }
  308. .post-preview .post-meta,
  309. .post-heading .post-meta {
  310. color: #808080;
  311. font-size: 18px;
  312. font-style: italic;
  313. margin: 0 0 10px;
  314. }
  315. .post-preview .post-entry {
  316. font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  317. }
  318. .post-entry-container {
  319. display: inline-block;
  320. width: 100%;
  321. }
  322. .post-entry {
  323. width: 100%;
  324. }
  325. .post-image {
  326. float: right;
  327. height: 192px;
  328. width: 192px;
  329. margin-top: -35px;
  330. filter: grayscale(90%);
  331. }
  332. .post-image:hover {
  333. filter: grayscale(0%);
  334. }
  335. .post-image img {
  336. border-radius: 100px;
  337. height: 192px;
  338. width: 192px;
  339. }
  340. .post-preview .post-read-more {
  341. font-weight: 800;
  342. }
  343. @media only screen and (min-width: 768px) {
  344. .post-preview .post-title {
  345. font-size: 36px;
  346. }
  347. }
  348. /* --- Tags --- */
  349. .blog-tags {
  350. font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  351. color: #999;
  352. font-size: 15px;
  353. margin-bottom: 30px;
  354. }
  355. .blog-tags a {
  356. color: {{ site.link-col }};
  357. text-decoration: none;
  358. padding: 0px 5px;
  359. }
  360. .blog-tags a:hover {
  361. border-radius: 2px;
  362. color: {{ site.hover-col }};
  363. background-color: #EEE;
  364. }
  365. .post-preview .blog-tags {
  366. margin-top: 5px;
  367. margin-bottom: 0;
  368. }
  369. @media only screen and (min-width: 768px) {
  370. .post-preview .blog-tags {
  371. margin-top: 10px;
  372. }
  373. }
  374. @media only screen and (max-width: 500px) {
  375. .post-image, .post-image img {
  376. height: 100px;
  377. width: 100px;
  378. }
  379. .post-image {
  380. width: 100%;
  381. text-align: center;
  382. margin-top: 0;
  383. float: left;
  384. }
  385. }
  386. /* --- Post and page headers --- */
  387. .intro-header {
  388. margin: 80px 0 20px;
  389. position: relative;
  390. }
  391. .intro-header.big-img {
  392. background: no-repeat center center;
  393. -webkit-background-size: cover;
  394. -moz-background-size: cover;
  395. background-size: cover;
  396. -o-background-size: cover;
  397. margin-top: 51px; /* The small navbar is 50px tall + 1px border */
  398. margin-bottom: 35px;
  399. }
  400. .intro-header.big-img .big-img-transition {
  401. position: absolute;
  402. width: 100%;
  403. height: 100%;
  404. opacity: 0;
  405. background: no-repeat center center;
  406. -webkit-background-size: cover;
  407. -moz-background-size: cover;
  408. background-size: cover;
  409. -o-background-size: cover;
  410. -webkit-transition: opacity 1s linear;
  411. -moz-transition: opacity 1s linear;
  412. transition: opacity 1s linear;
  413. }
  414. .intro-header .page-heading {
  415. text-align: center;
  416. }
  417. .intro-header.big-img .page-heading,
  418. .intro-header.big-img .post-heading {
  419. padding: 100px 0;
  420. color: #FFF;
  421. text-shadow: 1px 1px 3px #000;
  422. }
  423. .intro-header .page-heading h1 {
  424. margin-top: 0;
  425. font-size: 50px;
  426. }
  427. .intro-header .post-heading h1 {
  428. margin-top: 0;
  429. font-size: 35px;
  430. }
  431. .intro-header .page-heading .page-subheading,
  432. .intro-header .post-heading .post-subheading {
  433. font-size: 27px;
  434. line-height: 1.1;
  435. display: block;
  436. font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  437. font-weight: 300;
  438. margin: 10px 0 0;
  439. }
  440. .intro-header .post-heading .post-subheading {
  441. margin-bottom: 20px;
  442. }
  443. .intro-header.big-img .page-heading .page-subheading,
  444. .intro-header.big-img .post-heading .post-subheading {
  445. font-weight: 400;
  446. }
  447. .intro-header.big-img .page-heading hr {
  448. box-shadow: 1px 1px 3px #000;
  449. -webkit-box-shadow: 1px 1px 3px #000;
  450. -moz-box-shadow: 1px 1px 3px #000;
  451. }
  452. .intro-header.big-img .post-heading .post-meta {
  453. color: #EEE;
  454. }
  455. .intro-header.big-img .img-desc {
  456. background: rgba(30, 30, 30, 0.6);
  457. position: absolute;
  458. padding: 5px 10px;
  459. font-size: 11px;
  460. color: #EEE;
  461. font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  462. right: 0;
  463. bottom: 0;
  464. display: none;
  465. }
  466. @media only screen and (min-width: 768px) {
  467. .intro-header {
  468. margin-top: 130px;
  469. }
  470. .intro-header.big-img {
  471. margin-top: 91px; /* Full navbar is small navbar + 20px padding on each side when expanded */
  472. }
  473. .intro-header.big-img .page-heading,
  474. .intro-header.big-img .post-heading {
  475. padding: 150px 0;
  476. }
  477. .intro-header .page-heading h1 {
  478. font-size: 80px;
  479. }
  480. .intro-header .post-heading h1 {
  481. font-size: 50px;
  482. }
  483. .intro-header.big-img .img-desc {
  484. font-size: 14px;
  485. }
  486. }
  487. .header-section.has-img .no-img {
  488. margin-top: 0;
  489. background-color: #FCFCFC;
  490. margin: 0 0 40px;
  491. padding: 20px 0;
  492. box-shadow: 0 0 5px #AAA;
  493. }
  494. /* Many phones are 320 or 360px, so make sure images are a proper aspect ratio in those cases */
  495. .header-section.has-img .intro-header.no-img {
  496. display: none;
  497. }
  498. @media only screen and (max-width: 365px) {
  499. .header-section.has-img .intro-header.no-img {
  500. display: block;
  501. }
  502. .intro-header.big-img {
  503. width: 100%;
  504. height: 220px;
  505. }
  506. .intro-header.big-img .page-heading,
  507. .intro-header.big-img .post-heading {
  508. display: none;
  509. }
  510. .header-section.has-img .big-img {
  511. margin-bottom: 0;
  512. }
  513. }
  514. @media only screen and (max-width: 325px) {
  515. .intro-header.big-img {
  516. height: 200px;
  517. }
  518. }
  519. .caption {
  520. text-align: center;
  521. font-size: 14px;
  522. padding: 10px;
  523. font-style: italic;
  524. margin: 0;
  525. display: block;
  526. border-bottom-right-radius: 5px;
  527. border-bottom-left-radius: 5px;
  528. }
  529. #header-gh-btns {
  530. margin-bottom: 15px;
  531. }
  532. @media only screen and (max-width: 500px) {
  533. #header-gh-btns > iframe {
  534. display: block;
  535. margin-bottom: 5px;
  536. }
  537. }
  538. /* --- Pager --- */
  539. .pager li a {
  540. font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  541. text-transform: uppercase;
  542. font-size: 14px;
  543. font-weight: 800;
  544. letter-spacing: 1px;
  545. padding: 10px 5px;
  546. background-color: #FFF;
  547. border-radius: 0;
  548. color: #404040;
  549. }
  550. @media only screen and (min-width: 768px) {
  551. .pager li a {
  552. padding: 15px 25px;
  553. }
  554. }
  555. .pager li a:hover,
  556. .pager li a:focus {
  557. color: #FFF;
  558. border: 1px solid {{ site.hover-col }};
  559. background-color: {{ site.hover-col }};
  560. }
  561. .pager {
  562. margin: 10px 0 0;
  563. }
  564. .pager.blog-pager {
  565. margin-top: 0;
  566. }
  567. @media only screen and (min-width: 768px) {
  568. .pager.blog-pager {
  569. margin-top: 10px;
  570. }
  571. }
  572. /* --- Tables --- */
  573. table {
  574. padding: 0;
  575. }
  576. table tr {
  577. border-top: 1px solid #cccccc;
  578. background-color: #ffffff;
  579. margin: 0;
  580. padding: 0;
  581. }
  582. table tr:nth-child(2n) {
  583. background-color: #f8f8f8;
  584. }
  585. table tr th {
  586. font-weight: bold;
  587. border: 1px solid #cccccc;
  588. text-align: left;
  589. margin: 0;
  590. padding: 6px 13px;
  591. }
  592. table tr td {
  593. border: 1px solid #cccccc;
  594. text-align: left;
  595. margin: 0;
  596. padding: 6px 13px;
  597. }
  598. table tr th :first-child,
  599. table tr td :first-child {
  600. margin-top: 0;
  601. }
  602. table tr th :last-child,
  603. table tr td :last-child {
  604. margin-bottom: 0;
  605. }
  606. /* --- Code blocks --- */
  607. pre {
  608. font-size: 16px;
  609. line-height: 1.5em;
  610. }
  611. .highlight pre {
  612. border: none;
  613. background: none;
  614. margin: 0;
  615. }
  616. .highlight > pre {
  617. background-image: linear-gradient(
  618. rgba(0,0,0,0.06), rgba(0,0,0,0.06) 1.5em, rgba(0,0,0,0.03) 1.5em, rgba(0,0,0,0.03) 3em);
  619. background-size: auto 3em;
  620. background-position-y: 10px;
  621. border: 1px solid rgba(0,0,0,0.1);
  622. border-left: 7px solid #444;
  623. }
  624. .highlight > pre:not([class~="highlight"]) { /* code block with line number */
  625. padding: 0;
  626. }
  627. .highlight table, .highlight tr, .highlight td { /* to be removed after fixing table styles */
  628. border: none;
  629. background: none;
  630. padding: 0;
  631. margin: 0;
  632. }
  633. .highlight pre.lineno {
  634. color: rgba(0,0,0,0.3);
  635. border-radius: 0;
  636. border-right: 2px solid #444;
  637. }
  638. /* Make line numbers unselectable: excludes line numbers from copy-paste user ops */
  639. .lineno {
  640. -webkit-user-select: none;
  641. -moz-user-select: none;
  642. -ms-user-select: none;
  643. user-select: none;
  644. }
  645. .lineno::selection, .lineno::-moz-selection {
  646. background: none;
  647. }
  648. /* --- Social media sharing section --- */
  649. #social-share-section {
  650. margin-bottom: 30px;
  651. }
  652. /* --- Notification boxes --- */
  653. .box-note, .box-warning, .box-error, .box-success {
  654. padding: 15px 15px 15px 10px;
  655. margin: 20px 20px 20px 5px;
  656. border: 1px solid #eee;
  657. border-left-width: 5px;
  658. border-radius: 5px 3px 3px 5px;
  659. }
  660. .box-note {
  661. background-color: #eee;
  662. border-left-color: #2980b9;
  663. }
  664. .box-warning {
  665. background-color: #fdf5d4;
  666. border-left-color: #f1c40f;
  667. }
  668. .box-error {
  669. background-color: #f4dddb;
  670. border-left-color: #c0392b;
  671. }
  672. .box-success {
  673. background-color: #98FB98;
  674. border-left-color: #3CB371;
  675. }
  676. /* Fix table border github gist snippets */
  677. .gist, .gist-file table tr {
  678. border: unset;
  679. }
  680. .gist, .gist-file table tr td {
  681. border: unset;
  682. }
  683. /* Fix .navbar-toggle */
  684. .navbar-default button.navbar-toggle:focus,
  685. .navbar-default button.navbar-toggle:hover {
  686. background-color: initial;
  687. }
  688. .navbar-default button.navbar-toggle[aria-expanded="true"] {
  689. background-color: rgba(0, 0, 0, 0.2);
  690. }
  691. /* Tags page */
  692. .tag-btn {
  693. margin: 5px;
  694. }
  695. #full-tags-list {
  696. font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  697. }
  698. #full-tags-list .tag-entry {
  699. margin: 0 0 15px 25px;
  700. }
  701. #full-tags-list .tag-entry a {
  702. font-size: 20px;
  703. }
  704. #full-tags-list .tag-entry .entry-date {
  705. color: #808080;
  706. font-style: italic;
  707. font-size: 16px;
  708. }