elegant.css 12 KB

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