elegant.css 12 KB

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