elegant.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605
  1. /* Base */
  2. h1,
  3. h2,
  4. h3,
  5. h4,
  6. h5,
  7. h6 {
  8. font-family: Baskerville, Garamond, Georgia, 'DejaVu Serif', 'Times New Roman', Times, Serif;
  9. font-weight: normal;
  10. }
  11. h1 small, h1 a, h1 a:hover,
  12. h2 small, h2 a, h2 a:hover,
  13. h3 small, h3 a, h3 a:hover,
  14. h4 small, h4 a, h4 a:hover,
  15. h5 small, h5 a, h5 a:hover,
  16. h6 small, h6 a, h6 a:hover {
  17. color: inherit;
  18. text-decoration: none;
  19. }
  20. a {
  21. color: #3875d7;
  22. }
  23. hr {
  24. border-width: 3px;
  25. }
  26. /* site title */
  27. .site-name {
  28. font-family: 'Monaco', 'Inconsolata', 'Andale Mono', 'Lucida Console', 'Bitstream Vera Sans Mono', 'Courier New', Courier, Monospace;
  29. }
  30. /* Top navigation menu */
  31. .top-menu li a {
  32. font-weight: bold;
  33. }
  34. /* Sticky footer styles
  35. -------------------------------------------------- */
  36. /* from http://getbootstrap.com/examples/sticky-footer/ */
  37. html {
  38. position: relative;
  39. min-height: 100%;
  40. }
  41. body {
  42. /* Margin bottom by footer height */
  43. margin-bottom: 60px;
  44. }
  45. .footer {
  46. /* background-color: #f5f5f5; */
  47. bottom: 0;
  48. /* Set the fixed height of the footer here */
  49. height: 60px;
  50. position: absolute;
  51. width: 100%;
  52. }
  53. #footer {
  54. border-top: 1px solid rgba(0, 0, 0, .2);
  55. font: .8em Calibri, Tahoma, Arial, Sans-Serif;
  56. }
  57. ul.footer-content {
  58. display: table;
  59. list-style: none;
  60. margin: 20px 0;
  61. width: 100%;
  62. }
  63. ul.footer-content li {
  64. display: table-cell;
  65. height: 100%;
  66. vertical-align: middle;
  67. }
  68. .elegant-power {
  69. text-align: right;
  70. }
  71. .elegant-license {
  72. text-align: left;
  73. }
  74. .elegant-subtitle {
  75. text-align: left;
  76. }
  77. /* comment */
  78. #comment-message,
  79. #post-share-links:not(a) {
  80. color: #6F6F6F;
  81. text-shadow: 1px 1px 3px rgba(50, 50, 50, 0.15);
  82. }
  83. #post-share-links a{
  84. text-shadow: 0 0;
  85. }
  86. .disqus-comment-count {
  87. font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, Sans-Serif;
  88. font-size: .9em;
  89. }
  90. #disqus_thread {
  91. padding-left: 10px;
  92. padding-right: 10px;
  93. }
  94. /* Syntax Highlight */
  95. table {
  96. table-layout: fixed;
  97. width: 100%;
  98. }
  99. td {
  100. vertical-align: top;
  101. }
  102. @media (max-width:979px) {
  103. .linenos {
  104. display:none !important;
  105. }
  106. }
  107. .linenos {
  108. width: 30px;
  109. }
  110. .linenos div pre {
  111. text-align: right;
  112. overflow: hidden;
  113. }
  114. pre {
  115. overflow: auto;
  116. white-space: pre;
  117. word-break: normal;
  118. word-wrap: normal;
  119. }
  120. td.code .highlight pre {
  121. border-radius: 0 3px 3px 0;
  122. }
  123. td.code {
  124. width: 100%;
  125. }
  126. .linenodiv pre {
  127. background-color: #eee8d5;
  128. border-radius: 3px 0 0 3px;
  129. color: #657b83;
  130. }
  131. div.highlight {
  132. margin-bottom: 20px;
  133. }
  134. /* Tags */
  135. .list-of-tags {
  136. font-family: 'Helvetica Neue', Helvetica, Arial, Sans-Serif;
  137. list-style: none;
  138. margin: 0;
  139. overflow: hidden;
  140. }
  141. .list-of-tags li {
  142. float: left;
  143. line-height: 28px;
  144. margin: 0;
  145. }
  146. .list-of-tags a {
  147. background: #EEE;
  148. border-radius: 3px;
  149. color: #222;
  150. margin: 2px;
  151. padding: 3px 6px;
  152. text-decoration: none;
  153. }
  154. .list-of-tags a span {
  155. font-size: .8em;
  156. vertical-align: super;
  157. }
  158. .tags-in-article li {
  159. float: none;
  160. line-height: 28px;
  161. }
  162. .tag-title {
  163. font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, Sans-Serif;
  164. }
  165. .articles-in-tag li {
  166. font: 1.1em/1.6em 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, Sans-Serif;
  167. }
  168. /* Article */
  169. article p:not(#list-of-translations):not(#post-share-links) a,
  170. article ol a,
  171. blockquote a,
  172. article div.article-content ul:not(.articles-timeline):not(.related-posts-list) a {
  173. border-bottom: thin dashed #A9A9A9;
  174. color: #000;
  175. }
  176. article p a:hover,
  177. article ol a:hover,
  178. article div.article-content ul:not(.articles-timeline) a:hover {
  179. border-bottom: none;
  180. text-decoration: none;
  181. text-shadow: none;
  182. }
  183. .article-content, div.recent-posts p {
  184. font: 1.2em/1.6em 'PT Serif', Georgia, 'Times New Roman', Times, Serif;
  185. text-align: justify;
  186. }
  187. .article-content {
  188. max-width: 50em;
  189. }
  190. .article-content p, div.recent-posts p {
  191. font-size: inherit;
  192. font-variant: normal;
  193. line-height: 1.6em;
  194. text-transform: none;
  195. }
  196. .article-content p {
  197. margin: 20px 0;
  198. }
  199. .article-content blockquote {
  200. border-left: 0;
  201. margin: 20px 0 0 2em;
  202. padding: 0 0 0 20px;
  203. }
  204. .article-content blockquote:before {
  205. color: #646464;
  206. content: '\f10d';
  207. font: 18px FontAwesome;
  208. font-style: normal;
  209. font-weight: normal;
  210. margin-left: -2em;
  211. text-decoration: inherit;
  212. position:absolute;
  213. }
  214. .article-content blockquote {
  215. font-family: 'Helvetica Neue', Helvetica, Arial, Sans-Serif;
  216. font-size: inherit;
  217. font-variant: normal;
  218. line-height: 1.7em;
  219. text-transform: none;
  220. font-weight: 300;
  221. position:relative;
  222. }
  223. .article-content ul:not(.related-posts-list):not(.articles-timeline) {
  224. font-size: inherit;
  225. list-style-type: disc;
  226. }
  227. .article-content ul.related-posts-list {
  228. list-style-type: square;
  229. }
  230. .article-content ol {
  231. font-size: inherit;
  232. list-style-type: decimal;
  233. }
  234. .article-content li {
  235. line-height: 1.7em;
  236. list-style-position: outside;
  237. margin: 1px 0 1px 20px;
  238. }
  239. .article-content dl {
  240. font-size: inherit;
  241. list-style-position: outside;
  242. list-style-type: decimal;
  243. margin: 20px 0 20px 20px;
  244. }
  245. .article-content dd {
  246. line-height: 1.7em;
  247. margin: 1px 0 1px 20px;
  248. padding: 3px 0;
  249. }
  250. .article-content dt {
  251. font-size: inherit;
  252. }
  253. .page-header {
  254. border-bottom: 1px solid #8f8686;
  255. color: #8B0000;
  256. margin: 10px 10px 20px;
  257. padding: 5px;
  258. }
  259. .page-header h1 {
  260. font-size: 3em;
  261. font-weight: normal;
  262. }
  263. ul.articles-timeline {
  264. list-style: none;
  265. margin: 0;
  266. padding-bottom: 30px;
  267. }
  268. ul.articles-timeline .next-article {
  269. float: right;
  270. margin: 0;
  271. }
  272. ul.articles-timeline .previous-article {
  273. float: left;
  274. margin: 0;
  275. }
  276. i.sidebar-social-links {
  277. border-radius: 20%;
  278. border: solid transparent 1px;
  279. color: #A2A2A2;
  280. font-size: 1.3em;
  281. margin: 0;
  282. padding: 1px;
  283. text-align: center;
  284. text-decoration: none;
  285. width: 12%;
  286. }
  287. i.sidebar-social-links:hover {
  288. background-color: #A2A2A2;
  289. color: #fff;
  290. }
  291. i.fa-twitter:hover, i.fa-twitter-square:hover {
  292. background-color: #00ACED;
  293. }
  294. i.fa-facebook:hover, i.fa-facebook-square:hover {
  295. background-color: #3B5998;
  296. }
  297. i.fa-google-plus:hover, i.fa-google-plus-square:hover {
  298. background-color: #D34836;
  299. }
  300. i.fa-adn:hover {
  301. background-color: #49484D;
  302. }
  303. i.fa-envelope:hover {
  304. background-color: #5E9EDA;
  305. }
  306. i.fa-github:hover, i.fa-github-square:hover, i.fa-github-alt:hover {
  307. background-color: #000;
  308. }
  309. i.fa-flickr:hover {
  310. background-color: #FF0084;
  311. }
  312. i.fa-youtube:hover, i.fa-youtube-square:hover, i.fa-youtube-play:hover {
  313. background-color: #BC272F;
  314. }
  315. i.fa-linkedin:hover, i.fa-linkedin-square:hover {
  316. background-color: #107FB9;
  317. }
  318. i.fa-gittip:hover {
  319. background-color: #663300;
  320. }
  321. i.fa-rss:hover, i.fa-rss-square:hover {
  322. background-color: #FF6600;
  323. }
  324. i.fa-bitbucket:hover, i.fa-bitbucket-square:hover {
  325. background-color: #205081;
  326. }
  327. i.fa-stack-exchange:hover {
  328. background-color: #3A7BC8;
  329. }
  330. ul.multi-parts-list a {
  331. color: black;
  332. }
  333. ul.multi-parts-list a:hover {
  334. text-decoration: none;
  335. }
  336. ul.multi-parts-list li.active-part {
  337. font-style: italic;
  338. }
  339. .table-of-content .toc {
  340. font-size: .7em;
  341. }
  342. .last-updated a {
  343. color: #333;
  344. }
  345. .last-updated a:hover {
  346. text-decoration: none;
  347. }
  348. .article-content img {
  349. border: 2px solid #EEE;
  350. padding: 5px;
  351. }
  352. p#post-share-links {
  353. text-align: right;
  354. }
  355. /* Perma link in article */
  356. h1:hover > a.headerlink,
  357. h2:hover > a.headerlink,
  358. h3:hover > a.headerlink,
  359. h4:hover > a.headerlink,
  360. h5:hover > a.headerlink,
  361. h6:hover > a.headerlink,
  362. dt:hover > a.headerlink {
  363. text-decoration: none;
  364. visibility: visible;
  365. }
  366. a.headerlink {
  367. color: grey;
  368. padding-left: .5em;
  369. visibility: hidden;
  370. }
  371. /* Categories */
  372. .list-of-categories span {
  373. font-size: .7em;
  374. vertical-align: super;
  375. }
  376. a.list-of-categories {
  377. text-decoration: none;
  378. }
  379. ul.list-articles-category {
  380. list-style: none outside none;
  381. margin: 0 0 0 5px;
  382. }
  383. ul.list-articles-category li time {
  384. color: #8F8F8F;
  385. display: inline-block;
  386. font: .9em 'PT Sans', 'Helvetica Neue', Arial, Sans-Serif;
  387. width: 7em;
  388. }
  389. a.category-link {
  390. color: #333;
  391. }
  392. a.category-link:hover {
  393. text-decoration: none;
  394. }
  395. a.list-of-categories {
  396. font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, Sans-Serif;
  397. font-size: 1.1em;
  398. }
  399. a.list-of-categories:hover {
  400. background-color: #08c;
  401. border-radius: 4px;
  402. color: #FFF;
  403. }
  404. /* Archives */
  405. ul.list-all-articles {
  406. list-style: none;
  407. margin: 0;
  408. }
  409. ul.list-all-articles li {
  410. border-bottom: 1px dotted #000;
  411. font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, Sans-Serif;
  412. font-size: 1.1em;
  413. padding: .3em 0;
  414. overflow: auto;
  415. }
  416. ul.list-all-articles li time {
  417. color: #AAA;
  418. float: right;
  419. font-family: 'PT Sans', 'Helvetica Neue', Arial, Sans-Serif;
  420. font-size: .9em;
  421. }
  422. div.blog-archives h2 {
  423. float: left;
  424. position: relative;
  425. margin:0;
  426. }
  427. div.blog-archives article, div.recent-posts article {
  428. border-bottom: 1px dotted #AAA;
  429. }
  430. div.blog-archives article, div.recent-posts article {
  431. font-size: 1.1em;
  432. padding: .3em .2em;
  433. position: relative;
  434. overflow: auto;
  435. }
  436. div.blog-archives article {
  437. margin-left: 6em;
  438. }
  439. div.blog-archives article.last-entry-of-year {
  440. margin-bottom: 1em;
  441. }
  442. div.blog-archives time, div.recent-posts time {
  443. float: right;
  444. text-align: right;
  445. }
  446. div.blog-archives time, div.recent-posts time, div.recent-posts section {
  447. color: #8F8F8F;
  448. font: .9em 'PT Sans', 'Helvetica Neue', Arial, Sans-Serif;
  449. }
  450. div.recent-posts section a {
  451. color: inherit;
  452. padding-left: .3em;
  453. }
  454. div.recent-posts section a:hover {
  455. border-bottom: 1px dashed;
  456. text-decoration: none;
  457. }
  458. div.recent-posts time {
  459. font-size: inherit;
  460. }
  461. div.recent-posts-time {
  462. display: inline;
  463. }
  464. @media (max-width: 767px) {
  465. div.blog-archives h2 {
  466. float: none;
  467. }
  468. div.blog-archives article {
  469. margin-left: 0;
  470. padding-left: 0;
  471. }
  472. div.recent-posts time {
  473. float: none;
  474. }
  475. div.recent-posts-time {
  476. display: block;
  477. }
  478. ul.list-articles-category li time {
  479. width: 100%;
  480. }
  481. }
  482. /* MailChimp */
  483. #mc-embed-signup {
  484. font-family: inherit;
  485. font-size: inherit;
  486. margin: 10px 0;
  487. }
  488. #mc-embed-signup form {
  489. display: block;
  490. padding: 0;
  491. position: relative;
  492. text-align: left;
  493. }
  494. #mc-embed-signup input {
  495. -moz-appearance: none;
  496. -webkit-appearance: none;
  497. border: 1px solid #999;
  498. }
  499. #mc-embed-signup input:focus {
  500. border-color: #333;
  501. }
  502. #mc-embed-signup input.email {
  503. display: block;
  504. font-size: .9em;
  505. margin: 0 4% 10px 0;
  506. min-width: 130px;
  507. padding: 8px 0;
  508. text-indent: 5px;
  509. width: 100%;
  510. }
  511. #mc-embed-signup input.button {
  512. display: block;
  513. margin: 0 0 10px 0;
  514. min-width: 130px;
  515. width: 100%;
  516. }
  517. #mc-embed-signup input[type='email'] {
  518. height: 100%;
  519. }
  520. #mc-embed-signup .button {
  521. background-color: #EEE;
  522. border-radius: 4px;
  523. border: 1px solid #D3D3D3;
  524. clear: both;
  525. color: #000;
  526. cursor: pointer;
  527. display: inline-block;
  528. font-size: 1em;
  529. font-weight: normal;
  530. height: 32px;
  531. line-height: 32px;
  532. margin: 0 5px 10px 0;
  533. padding: 0;
  534. text-align: center;
  535. text-decoration: none;
  536. vertical-align: top;
  537. white-space: nowrap;
  538. width: auto;
  539. }
  540. #mc-embed-signup .button: hover {
  541. background-color: #DFDFDF;
  542. }
  543. #mc-embed-signup .clear {
  544. clear: none;
  545. display: inline;
  546. }
  547. /* Index page */
  548. #allposts {
  549. color: #999;
  550. float: right;
  551. font-size: 75%;
  552. font-weight: normal;
  553. }
  554. a#allposts:hover {
  555. color: #333;
  556. }
  557. .proj-desc {
  558. color: #999;
  559. font: .9em 'PT Sans', 'Helvetica Neue', Arial, Sans-Serif;
  560. }
  561. /* reST specific rules*/
  562. .literal {
  563. -moz-border-radius: 3px;
  564. -webkit-border-radius: 3px;
  565. background-color: #f7f7f9;
  566. border-radius: 3px;
  567. border: 1px solid #e1e1e8;
  568. color: #d14;
  569. font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
  570. font-size: 12px;
  571. padding: 2px 4px;
  572. white-space: nowrap;
  573. }
  574. /* Helper CSS classes */
  575. .amp {
  576. font-family: 'Warnock Pro', 'Goudy Old Style', 'Palatino', 'Book Antiqua', Serif;
  577. font-style: italic;
  578. }
  579. /* Use following classes to add floating images to your post */
  580. div.figure, .article-content img {
  581. text-align: center;
  582. }
  583. div.figure img {
  584. width: 100%;
  585. }
  586. div.figure p.caption {
  587. color: gray;
  588. font-size: .6em;
  589. margin: 0;
  590. }
  591. div.figure p.caption a {
  592. border: none;
  593. color: gray;
  594. }
  595. div.figure.align-right, .article-content img.align-right {
  596. float: right;
  597. margin-left: 1.5em;
  598. }
  599. div.figure.align-left, .article-content img.align-left {
  600. float: left;
  601. margin-right: 1.5em;
  602. }