elegant.css 13 KB

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