elegant.css 13 KB

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