elegant.css 12 KB

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