elegant.css 13 KB

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