elegant.css 13 KB

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