elegant.css 14 KB

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