elegant.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587
  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 {
  283. background-color: #00ACED;
  284. }
  285. i.fa-facebook:hover {
  286. background-color: #3B5998;
  287. }
  288. i.fa-google-plus: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 {
  298. background-color: #000;
  299. }
  300. i.fa-flickr:hover {
  301. background-color: #FF0084;
  302. }
  303. i.fa-youtube:hover {
  304. background-color: #BC272F;
  305. }
  306. i.fa-linkedin:hover {
  307. background-color: #107FB9;
  308. }
  309. i.fa-gittip:hover {
  310. background-color: #663300;
  311. }
  312. i.fa-rss:hover {
  313. background-color: #FF6600;
  314. }
  315. i.fa-bitbucket:hover {
  316. background-color: #205081;
  317. }
  318. i.fa-stack-exchange:hover {
  319. background-color: #3A7BC8;
  320. }
  321. .table-of-content .toc {
  322. font-size: .7em;
  323. }
  324. .last-updated a {
  325. color: #333;
  326. }
  327. .last-updated a:hover {
  328. text-decoration: none;
  329. }
  330. .article-content img {
  331. border: 2px solid #EEE;
  332. padding: 5px;
  333. }
  334. p#post-share-links {
  335. text-align: right;
  336. }
  337. /* Perma link in article */
  338. h1:hover > a.headerlink,
  339. h2:hover > a.headerlink,
  340. h3:hover > a.headerlink,
  341. h4:hover > a.headerlink,
  342. h5:hover > a.headerlink,
  343. h6:hover > a.headerlink,
  344. dt:hover > a.headerlink {
  345. text-decoration: none;
  346. visibility: visible;
  347. }
  348. a.headerlink {
  349. color: grey;
  350. padding-left: .5em;
  351. visibility: hidden;
  352. }
  353. /* Categories */
  354. .list-of-categories span {
  355. font-size: .7em;
  356. vertical-align: super;
  357. }
  358. a.list-of-categories {
  359. text-decoration: none;
  360. }
  361. ul.list-articles-category {
  362. list-style: none outside none;
  363. margin: 0 0 0 5px;
  364. }
  365. ul.list-articles-category li time {
  366. color: #8F8F8F;
  367. display: inline-block;
  368. font: .9em 'PT Sans', 'Helvetica Neue', Arial, Sans-Serif;
  369. width: 7em;
  370. }
  371. a.category-link {
  372. color: #333;
  373. }
  374. a.category-link:hover {
  375. text-decoration: none;
  376. }
  377. a.list-of-categories {
  378. font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, Sans-Serif;
  379. font-size: 1.1em;
  380. }
  381. a.list-of-categories:hover {
  382. background-color: #08c;
  383. border-radius: 4px;
  384. color: #FFF;
  385. }
  386. /* Archives */
  387. ul.list-all-articles {
  388. list-style: none;
  389. margin: 0;
  390. }
  391. ul.list-all-articles li {
  392. border-bottom: 1px dotted #000;
  393. font-family: 'Trebuchet MS', Trebuchet, 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, Sans-Serif;
  394. font-size: 1.1em;
  395. padding: .3em 0;
  396. overflow: auto;
  397. }
  398. ul.list-all-articles li time {
  399. color: #AAA;
  400. float: right;
  401. font-family: 'PT Sans', 'Helvetica Neue', Arial, Sans-Serif;
  402. font-size: .9em;
  403. }
  404. div.blog-archives h2 {
  405. float: left;
  406. position: relative;
  407. margin:0;
  408. }
  409. div.blog-archives article, div.recent-posts article {
  410. border-bottom: 1px dotted #AAA;
  411. }
  412. div.blog-archives article, div.recent-posts article {
  413. font-size: 1.1em;
  414. padding: .3em .2em;
  415. position: relative;
  416. overflow: auto;
  417. }
  418. div.blog-archives article {
  419. margin-left: 6em;
  420. }
  421. div.blog-archives article.last-entry-of-year {
  422. margin-bottom: 1em;
  423. }
  424. div.blog-archives time, div.recent-posts time {
  425. float: right;
  426. text-align: right;
  427. }
  428. div.blog-archives time, div.recent-posts time, div.recent-posts section {
  429. color: #8F8F8F;
  430. font: .9em 'PT Sans', 'Helvetica Neue', Arial, Sans-Serif;
  431. }
  432. div.recent-posts section a {
  433. color: inherit;
  434. padding-left: .3em;
  435. }
  436. div.recent-posts section a:hover {
  437. border-bottom: 1px dashed;
  438. text-decoration: none;
  439. }
  440. div.recent-posts time {
  441. font-size: inherit;
  442. }
  443. div.recent-posts-time {
  444. display: inline;
  445. }
  446. @media (max-width: 767px) {
  447. div.blog-archives h2 {
  448. float: none;
  449. }
  450. div.blog-archives article {
  451. margin-left: 0;
  452. padding-left: 0;
  453. }
  454. div.recent-posts time {
  455. float: none;
  456. }
  457. div.recent-posts-time {
  458. display: block;
  459. }
  460. ul.list-articles-category li time {
  461. width: 100%;
  462. }
  463. }
  464. /* MailChimp */
  465. #mc-embed-signup {
  466. font-family: inherit;
  467. font-size: inherit;
  468. margin: 10px 0;
  469. }
  470. #mc-embed-signup form {
  471. display: block;
  472. padding: 0;
  473. position: relative;
  474. text-align: left;
  475. }
  476. #mc-embed-signup input {
  477. -moz-appearance: none;
  478. -webkit-appearance: none;
  479. border: 1px solid #999;
  480. }
  481. #mc-embed-signup input:focus {
  482. border-color: #333;
  483. }
  484. #mc-embed-signup input.email {
  485. display: block;
  486. font-size: .9em;
  487. margin: 0 4% 10px 0;
  488. min-width: 130px;
  489. padding: 8px 0;
  490. text-indent: 5px;
  491. width: 100%;
  492. }
  493. #mc-embed-signup input.button {
  494. display: block;
  495. margin: 0 0 10px 0;
  496. min-width: 130px;
  497. width: 100%;
  498. }
  499. #mc-embed-signup input[type='email'] {
  500. height: 100%;
  501. }
  502. #mc-embed-signup .button {
  503. background-color: #EEE;
  504. border-radius: 4px;
  505. border: 1px solid #D3D3D3;
  506. clear: both;
  507. color: #000;
  508. cursor: pointer;
  509. display: inline-block;
  510. font-size: 1em;
  511. font-weight: normal;
  512. height: 32px;
  513. line-height: 32px;
  514. margin: 0 5px 10px 0;
  515. padding: 0;
  516. text-align: center;
  517. text-decoration: none;
  518. vertical-align: top;
  519. white-space: nowrap;
  520. width: auto;
  521. }
  522. #mc-embed-signup .button: hover {
  523. background-color: #DFDFDF;
  524. }
  525. #mc-embed-signup .clear {
  526. clear: none;
  527. display: inline;
  528. }
  529. /* Index page */
  530. #allposts {
  531. color: #999;
  532. float: right;
  533. font-size: 75%;
  534. font-weight: normal;
  535. }
  536. a#allposts:hover {
  537. color: #333;
  538. }
  539. .proj-desc {
  540. color: #999;
  541. font: .9em 'PT Sans', 'Helvetica Neue', Arial, Sans-Serif;
  542. }
  543. /* reST specific rules*/
  544. .literal {
  545. -moz-border-radius: 3px;
  546. -webkit-border-radius: 3px;
  547. background-color: #f7f7f9;
  548. border-radius: 3px;
  549. border: 1px solid #e1e1e8;
  550. color: #d14;
  551. font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
  552. font-size: 12px;
  553. padding: 2px 4px;
  554. white-space: nowrap;
  555. }
  556. /* Helper CSS classes */
  557. .amp {
  558. font-family: 'Warnock Pro', 'Goudy Old Style', 'Palatino', 'Book Antiqua', Serif;
  559. font-style: italic;
  560. }
  561. /* Use following classes to add floating images to your post */
  562. div.figure, .article-content img {
  563. text-align: center;
  564. }
  565. div.figure img {
  566. width: 100%;
  567. }
  568. div.figure p.caption {
  569. color: gray;
  570. font-size: .6em;
  571. margin: 0;
  572. }
  573. div.figure p.caption a {
  574. border: none;
  575. color: gray;
  576. }
  577. div.figure.align-right, .article-content img.align-right {
  578. float: right;
  579. margin: 1.5em 0 1.5em 1.5em;
  580. }
  581. div.figure.align-left, .article-content img.align-left {
  582. float: left;
  583. margin: 1.5em 1.5em 1.5em 0;
  584. }