elegant.css 13 KB

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