elegant.css 12 KB

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