Build a beautiful and simple website in literally minutes. Demo at http://deanattali.com/beautiful-jekyll
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.

682 lines
13 KiB

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