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.

647 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
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
8 years ago
9 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 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
8 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-preview .post-read-more {
  308. font-weight: 800;
  309. }
  310. @media only screen and (min-width: 768px) {
  311. .post-preview .post-title {
  312. font-size: 36px;
  313. }
  314. }
  315. /* --- Tags --- */
  316. .blog-tags {
  317. font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  318. color: #999;
  319. font-size: 15px;
  320. margin-bottom: 30px;
  321. }
  322. .blog-tags a {
  323. color: #008AFF;
  324. text-decoration: none;
  325. padding: 0px 5px;
  326. }
  327. .blog-tags a:hover {
  328. border-radius: 2px;
  329. color: #008AFF;
  330. background-color: #CCC;
  331. }
  332. .post-preview .blog-tags {
  333. margin-top: 5px;
  334. margin-bottom: 0;
  335. }
  336. @media only screen and (min-width: 768px) {
  337. .post-preview .blog-tags {
  338. margin-top: 10px;
  339. }
  340. }
  341. /* --- Post and page headers --- */
  342. .intro-header {
  343. margin: 80px 0 20px;
  344. position: relative;
  345. }
  346. .intro-header.big-img {
  347. background: no-repeat center center;
  348. -webkit-background-size: cover;
  349. -moz-background-size: cover;
  350. background-size: cover;
  351. -o-background-size: cover;
  352. margin-top: 51px; /* The small navbar is 50px tall + 1px border */
  353. margin-bottom: 35px;
  354. }
  355. .intro-header.big-img .big-img-transition {
  356. position: absolute;
  357. width: 100%;
  358. height: 100%;
  359. opacity: 0;
  360. background: no-repeat center center;
  361. -webkit-background-size: cover;
  362. -moz-background-size: cover;
  363. background-size: cover;
  364. -o-background-size: cover;
  365. -webkit-transition: opacity 1s linear;
  366. -moz-transition: opacity 1s linear;
  367. transition: opacity 1s linear;
  368. }
  369. .intro-header .page-heading {
  370. text-align: center;
  371. }
  372. .intro-header.big-img .page-heading,
  373. .intro-header.big-img .post-heading {
  374. padding: 100px 0;
  375. color: #FFF;
  376. text-shadow: 1px 1px 3px #000;
  377. }
  378. .intro-header .page-heading h1 {
  379. margin-top: 0;
  380. font-size: 50px;
  381. }
  382. .intro-header .post-heading h1 {
  383. margin-top: 0;
  384. font-size: 35px;
  385. }
  386. .intro-header .page-heading .page-subheading,
  387. .intro-header .post-heading .post-subheading {
  388. font-size: 27px;
  389. line-height: 1.1;
  390. display: block;
  391. font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  392. font-weight: 300;
  393. margin: 10px 0 0;
  394. }
  395. .intro-header .post-heading .post-subheading {
  396. margin-bottom: 20px;
  397. }
  398. .intro-header.big-img .page-heading .page-subheading,
  399. .intro-header.big-img .post-heading .post-subheading {
  400. font-weight: 400;
  401. }
  402. .intro-header.big-img .page-heading hr {
  403. box-shadow: 1px 1px 3px #000;
  404. -webkit-box-shadow: 1px 1px 3px #000;
  405. -moz-box-shadow: 1px 1px 3px #000;
  406. }
  407. .intro-header.big-img .post-heading .post-meta {
  408. color: #EEE;
  409. }
  410. .intro-header.big-img .img-desc {
  411. background: rgba(30, 30, 30, 0.6);
  412. position: absolute;
  413. padding: 5px 10px;
  414. font-size: 11px;
  415. color: #EEE;
  416. font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  417. right: 0;
  418. bottom: 0;
  419. display: none;
  420. }
  421. @media only screen and (min-width: 768px) {
  422. .intro-header {
  423. margin-top: 130px;
  424. }
  425. .intro-header.big-img {
  426. margin-top: 91px; /* Full navbar is small navbar + 20px padding on each side when expanded */
  427. }
  428. .intro-header.big-img .page-heading,
  429. .intro-header.big-img .post-heading {
  430. padding: 150px 0;
  431. }
  432. .intro-header .page-heading h1 {
  433. font-size: 80px;
  434. }
  435. .intro-header .post-heading h1 {
  436. font-size: 50px;
  437. }
  438. .intro-header.big-img .img-desc {
  439. font-size: 14px;
  440. }
  441. }
  442. .header-section.has-img .no-img {
  443. margin-top: 0;
  444. background: #FCFCFC;
  445. margin: 0 0 40px;
  446. padding: 20px 0;
  447. box-shadow: 0 0 5px #AAA;
  448. }
  449. /* Many phones are 320 or 360px, so make sure images are a proper aspect ratio in those cases */
  450. .header-section.has-img .intro-header.no-img {
  451. display: none;
  452. }
  453. @media only screen and (max-width: 365px) {
  454. .header-section.has-img .intro-header.no-img {
  455. display: block;
  456. }
  457. .intro-header.big-img {
  458. width: 100%;
  459. height: 220px;
  460. }
  461. .intro-header.big-img .page-heading,
  462. .intro-header.big-img .post-heading {
  463. display: none;
  464. }
  465. .header-section.has-img .big-img {
  466. margin-bottom: 0;
  467. }
  468. }
  469. @media only screen and (max-width: 325px) {
  470. .intro-header.big-img {
  471. height: 200px;
  472. }
  473. }
  474. .caption {
  475. text-align: center;
  476. font-size: 14px;
  477. padding: 10px;
  478. font-style: italic;
  479. margin: 0;
  480. display: block;
  481. border-bottom-right-radius: 5px;
  482. border-bottom-left-radius: 5px;
  483. }
  484. /* --- Pager --- */
  485. .pager li a {
  486. font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  487. text-transform: uppercase;
  488. font-size: 14px;
  489. font-weight: 800;
  490. letter-spacing: 1px;
  491. padding: 10px 5px;
  492. background: #FFF;
  493. border-radius: 0;
  494. color: #404040;
  495. }
  496. @media only screen and (min-width: 768px) {
  497. .pager li a {
  498. padding: 15px 25px;
  499. }
  500. }
  501. .pager li a:hover,
  502. .pager li a:focus {
  503. color: #FFF;
  504. background: #0085a1;
  505. border: 1px solid #0085a1;
  506. }
  507. .pager {
  508. margin: 10px 0 0;
  509. }
  510. .pager.blog-pager {
  511. margin-top: 0;
  512. }
  513. @media only screen and (min-width: 768px) {
  514. .pager.blog-pager {
  515. margin-top: 10px;
  516. }
  517. }
  518. /* --- Tables --- */
  519. table {
  520. padding: 0;
  521. }
  522. table tr {
  523. border-top: 1px solid #cccccc;
  524. background-color: #ffffff;
  525. margin: 0;
  526. padding: 0;
  527. }
  528. table tr:nth-child(2n) {
  529. background-color: #f8f8f8;
  530. }
  531. table tr th {
  532. font-weight: bold;
  533. border: 1px solid #cccccc;
  534. text-align: left;
  535. margin: 0;
  536. padding: 6px 13px;
  537. }
  538. table tr td {
  539. border: 1px solid #cccccc;
  540. text-align: left;
  541. margin: 0;
  542. padding: 6px 13px;
  543. }
  544. table tr th :first-child,
  545. table tr td :first-child {
  546. margin-top: 0;
  547. }
  548. table tr th :last-child,
  549. table tr td :last-child {
  550. margin-bottom: 0;
  551. }
  552. /* --- Code blocks --- */
  553. pre {
  554. font-size: 16px;
  555. line-height: 1.5em;
  556. }
  557. pre code {
  558. white-space: pre;
  559. }
  560. pre.highlight, .highlight > pre, td.code pre {
  561. background: #FAFAFA;
  562. background-image: linear-gradient(#F9F9F9 50%, #FDFDFD 50%);
  563. background-repeat: repeat;
  564. background-size: 3em 3em;
  565. background-position: 0px 10px;
  566. border-left: 7px solid #444;
  567. }
  568. code table, code table td, code table th, code table tbody, code table tr,
  569. td.gutter pre {
  570. padding: 0;
  571. border: none;
  572. background-color: #fff;
  573. }
  574. .highlight > pre {
  575. padding: 0;
  576. }
  577. td.code pre {
  578. border-width: 0 0 0 2px;
  579. border-style: solid;
  580. border-color: #444;
  581. border-radius: 0;
  582. }
  583. td.gutter {
  584. padding-top: 3px;
  585. }
  586. /* --- Social media sharing section --- */
  587. #social-share-section {
  588. margin-bottom: 30px;
  589. }