elegant.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610
  1. /* Base */
  2. /* #push.height = -#content-sans-footer.margin-bottom = #footer.margin-top + ul.footer-content */
  3. body,
  4. html {
  5. height: 100%;
  6. }
  7. #content-sans-footer {
  8. min-height: 100%;
  9. margin-bottom: -60px;
  10. }
  11. #push {
  12. height: 60px;
  13. }
  14. h1,
  15. h2,
  16. h3,
  17. h4,
  18. h5,
  19. h6 {
  20. font-family: Baskerville, Garamond, Georgia, 'DejaVu Serif', 'Times New Roman', Times, Serif;
  21. font-weight: normal;
  22. }
  23. h1 small, h1 a, h1 a:hover,
  24. h2 small, h2 a, h2 a:hover,
  25. h3 small, h3 a, h3 a:hover,
  26. h4 small, h4 a, h4 a:hover,
  27. h5 small, h5 a, h5 a:hover,
  28. h6 small, h6 a, h6 a:hover {
  29. color: inherit;
  30. text-decoration: none;
  31. }
  32. a {
  33. color: #3875d7;
  34. }
  35. hr {
  36. border-width: 3px;
  37. }
  38. /* site title */
  39. .site-name {
  40. font-family: 'Monaco', 'Inconsolata', 'Andale Mono', 'Lucida Console', 'Bitstream Vera Sans Mono', 'Courier New', Courier, Monospace;
  41. }
  42. /* Top navigation menu */
  43. .top-menu li a {
  44. font-weight: bold;
  45. }
  46. /* Footer */
  47. #footer {
  48. border-top: 1px solid rgba(0, 0, 0, .2);
  49. font: .8em Calibri, Tahoma, Arial, Sans-Serif;
  50. margin: 15px 0 0 0;
  51. padding: 0;
  52. }
  53. ul.footer-content {
  54. list-style: none;
  55. margin: -1px 0 0 0;
  56. padding: 2px 5px 0;
  57. display: table;
  58. height: 45px;
  59. width: 100%;
  60. -moz-box-sizing: border-box;
  61. -webkit-box-sizing: border-box;
  62. box-sizing: border-box;
  63. }
  64. ul.footer-content li {
  65. padding-left: 5px;
  66. display: table-cell;
  67. vertical-align: middle;
  68. height: 100%;
  69. }
  70. .elegant-power {
  71. text-align: right;
  72. }
  73. .elegant-license {
  74. text-align: left;
  75. }
  76. .elegant-subtitle {
  77. text-align: left;
  78. }
  79. /* comment */
  80. #comment-message,
  81. #post-share-links:not(a) {
  82. color: #6F6F6F;
  83. text-shadow: 1px 1px 3px rgba(50, 50, 50, 0.15);
  84. }
  85. #post-share-links a{
  86. text-shadow: 0 0;
  87. }
  88. .disqus-comment-count {
  89. font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, Sans-Serif;
  90. font-size: .9em;
  91. }
  92. #disqus_thread {
  93. padding-left: 10px;
  94. padding-right: 10px;
  95. }
  96. /* Syntax Highlight */
  97. table {
  98. table-layout: fixed;
  99. width: 100%;
  100. }
  101. td {
  102. vertical-align: top;
  103. }
  104. @media (max-width:979px) {
  105. .linenos {
  106. display:none !important;
  107. }
  108. }
  109. .linenos {
  110. width: 30px;
  111. }
  112. .linenos div pre {
  113. text-align: right;
  114. overflow: hidden;
  115. }
  116. pre {
  117. overflow: auto;
  118. white-space: pre;
  119. word-break: normal;
  120. word-wrap: normal;
  121. }
  122. .highlight pre {
  123. background-color: #fdf6e3;
  124. border-radius: 3px 3px 3px 3px;
  125. }
  126. td.code .highlight pre {
  127. border-radius: 0 3px 3px 0;
  128. }
  129. td.code {
  130. width: 100%;
  131. }
  132. .linenodiv pre {
  133. background-color: #eee8d5;
  134. border-radius: 3px 0 0 3px;
  135. color: #657b83;
  136. }
  137. div.highlight {
  138. margin-bottom: 20px;
  139. }
  140. /* Tags */
  141. .list-of-tags {
  142. font-family: 'Helvetica Neue', Helvetica, Arial, Sans-Serif;
  143. list-style: none;
  144. margin: 0;
  145. overflow: hidden;
  146. }
  147. .list-of-tags li {
  148. float: left;
  149. line-height: 28px;
  150. margin: 0;
  151. }
  152. .list-of-tags a {
  153. background: #EEE;
  154. border-radius: 3px;
  155. color: #222;
  156. margin: 2px;
  157. padding: 3px 6px;
  158. text-decoration: none;
  159. }
  160. .list-of-tags a span {
  161. font-size: .8em;
  162. vertical-align: super;
  163. }
  164. .tags-in-article li {
  165. float: none;
  166. line-height: 28px;
  167. }
  168. .tag-title {
  169. font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, Sans-Serif;
  170. }
  171. .articles-in-tag li {
  172. font: 1.1em/1.6em 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, Sans-Serif;
  173. }
  174. /* Article */
  175. article p:not(#list-of-translations):not(#post-share-links) a,
  176. article ol a,
  177. article div.article-content ul:not(.articles-timeline):not(.related-posts-list) a {
  178. border-bottom: thin dashed #A9A9A9;
  179. color: #000;
  180. }
  181. article p a:hover,
  182. article ol a:hover,
  183. article div.article-content ul:not(.articles-timeline) a:hover {
  184. border-bottom: none;
  185. text-decoration: none;
  186. text-shadow: none;
  187. }
  188. .article-content, div.recent-posts p {
  189. font: 1.2em/1.6em 'PT Serif', Georgia, 'Times New Roman', Times, Serif;
  190. text-align: justify;
  191. }
  192. .article-content {
  193. max-width: 50em;
  194. }
  195. .article-content p, div.recent-posts p {
  196. font-size: inherit;
  197. font-variant: normal;
  198. line-height: 1.6em;
  199. text-transform: none;
  200. }
  201. .article-content p {
  202. margin: 20px 0;
  203. }
  204. .article-content blockquote {
  205. border-left: 0;
  206. margin: 20px 0 0 2em;
  207. padding: 0 0 0 20px;
  208. }
  209. .article-content blockquote:before {
  210. color: #646464;
  211. content: '\f10d';
  212. font: 18px FontAwesome;
  213. font-style: normal;
  214. font-weight: normal;
  215. margin-left: -2em;
  216. text-decoration: inherit;
  217. position:absolute;
  218. }
  219. .article-content blockquote {
  220. font-family: 'Helvetica Neue', Helvetica, Arial, Sans-Serif;
  221. font-size: inherit;
  222. font-variant: normal;
  223. line-height: 1.7em;
  224. text-transform: none;
  225. font-weight: 300;
  226. position:relative;
  227. }
  228. .article-content ul:not(.related-posts-list):not(.articles-timeline) {
  229. font-size: inherit;
  230. list-style-type: disc;
  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. }