main.css 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996
  1. /* --- General --- */
  2. body {
  3. font-family: 'Lora', 'Times New Roman', serif;
  4. font-size: 18px;
  5. color: #404040;
  6. position: relative;
  7. background: #FFF;
  8. display: flex;
  9. flex-flow: column;
  10. height: 100vh;
  11. }
  12. @media (prefers-color-scheme: dark) {
  13. body {
  14. background: black;
  15. color: white;
  16. }
  17. }
  18. .container[role=main] {
  19. margin-bottom:50px;
  20. flex: 1 0 auto;
  21. }
  22. @media only screen and (max-width: 767px) {
  23. .container[role=main] {
  24. margin-left: 0;
  25. margin-right: 0;
  26. }
  27. }
  28. p {
  29. line-height: 1.5;
  30. margin: 6px 0;
  31. }
  32. p + p {
  33. margin: 24px 0 6px 0;
  34. }
  35. p a {
  36. /* text-decoration: underline */
  37. color: #008AFF;
  38. }
  39. @media (prefers-color-scheme: dark) {
  40. p a {
  41. color: #50afff;
  42. }
  43. }
  44. h1,h2,h3,h4,h5,h6 {
  45. font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  46. font-weight: 800;
  47. }
  48. a {
  49. color: #008AFF;
  50. }
  51. @media (prefers-color-scheme: dark) {
  52. a {
  53. color: #50afff;
  54. }
  55. }
  56. a:hover,
  57. a:focus {
  58. color: #0085a1;
  59. }
  60. blockquote {
  61. color: #808080;
  62. font-style: italic;
  63. }
  64. blockquote p:first-child {
  65. margin-top: 0;
  66. }
  67. @media (prefers-color-scheme: dark) {
  68. blockquote {
  69. border-left: 5px solid #444;
  70. }
  71. }
  72. hr.small {
  73. max-width: 100px;
  74. margin: 15px auto;
  75. border-width: 4px;
  76. border-color: inherit;
  77. border-radius: 3px;
  78. }
  79. .main-content {
  80. padding-top: 80px;
  81. }
  82. @media only screen and (min-width: 768px) {
  83. .main-content {
  84. padding-top: 130px;
  85. }
  86. }
  87. .main-explain-area {
  88. font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  89. padding: 15px inherit;
  90. }
  91. .hideme {
  92. display: none;
  93. }
  94. div.panel-body a.list-group-item {
  95. font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  96. font-weight: 800;
  97. border-radius: 0;
  98. border: none;
  99. font-size: 16px;
  100. }
  101. div.panel-group .panel {
  102. border-radius: 0;
  103. }
  104. div.panel-group .panel+.panel {
  105. margin-top: 0;
  106. }
  107. div.panel-body a.list-group-item.view-all {
  108. font-weight: 600;
  109. }
  110. ::-moz-selection, ::selection {
  111. color: white;
  112. text-shadow: none;
  113. background: #0085a1;
  114. }
  115. img::selection, img::-moz-selection {
  116. color: white;
  117. background: transparent;
  118. }
  119. img {
  120. display: block;
  121. margin: auto;
  122. max-width: 100%;
  123. }
  124. @media (prefers-color-scheme: dark) {
  125. figure:not(.dark) img, img.white {
  126. background-color: white;
  127. }
  128. }
  129. .img-title {
  130. width: 100%;
  131. }
  132. .disqus-comments {
  133. margin-top: 30px;
  134. }
  135. @media only screen and (min-width: 768px) {
  136. .disqus-comments {
  137. margin-top: 40px;
  138. }
  139. }
  140. #cusdis_thread {
  141. margin-top: 30px;
  142. }
  143. /* --- Navbar --- */
  144. .navbar-custom {
  145. background: #F5F5F5;
  146. border-bottom: 1px solid #EAEAEA;
  147. font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  148. }
  149. @media (prefers-color-scheme: dark) {
  150. .navbar-custom {
  151. background: #505050;
  152. border-bottom: 1px solid #AAA;
  153. }
  154. }
  155. .navbar-custom .nav li a {
  156. text-transform: uppercase;
  157. font-size: 12px;
  158. letter-spacing: 1px;
  159. }
  160. .navbar-custom .navbar-brand,
  161. .navbar-custom .nav li a {
  162. font-weight: 800;
  163. color: #404040;
  164. }
  165. @media (prefers-color-scheme: dark) {
  166. .navbar-custom .navbar-brand,
  167. .navbar-custom .nav li a {
  168. color: #b0b0b0;
  169. }
  170. }
  171. .navbar-custom .navbar-brand:hover,
  172. .navbar-custom .navbar-brand:focus ,
  173. .navbar-custom .nav li a:hover,
  174. .navbar-custom .nav li a:focus {
  175. color: #0085a1;
  176. }
  177. .navbar-custom .navbar-brand:hover,
  178. .navbar-custom .navbar-brand:focus ,
  179. .navbar-custom .nav li a:hover,
  180. .navbar-custom .nav li a:focus {
  181. @media (prefers-color-scheme: dark) {
  182. color: #b0e0ff;
  183. }
  184. }
  185. .navbar-custom .navbar-brand-logo {
  186. padding-top: 0;
  187. -webkit-transition: padding .5s ease-in-out;
  188. -moz-transition: padding .5s ease-in-out;
  189. transition: padding .5s ease-in-out;
  190. }
  191. .navbar-custom .navbar-brand-logo img {
  192. height: 50px;
  193. -webkit-transition: height .5s ease-in-out;
  194. -moz-transition: height .5s ease-in-out;
  195. transition: height .5s ease-in-out;
  196. }
  197. .navbar-custom.top-nav-short .navbar-brand-logo {
  198. padding-top: 5px;
  199. }
  200. .navbar-custom.top-nav-short .navbar-brand-logo img {
  201. height: 40px;
  202. }
  203. @media only screen and (min-width: 768px) {
  204. .navbar-custom {
  205. padding: 20px 0;
  206. -webkit-transition: background .5s ease-in-out,padding .5s ease-in-out;
  207. -moz-transition: background .5s ease-in-out,padding .5s ease-in-out;
  208. transition: background .5s ease-in-out,padding .5s ease-in-out;
  209. }
  210. .navbar-custom.top-nav-short {
  211. padding: 0;
  212. }
  213. }
  214. .navbar-custom .avatar-container {
  215. opacity: 1;
  216. visibility: visible;
  217. position: absolute;
  218. -webkit-transition: visibility 0.5s, opacity 0.5s ease-in-out;
  219. -moz-transition: visibility 0.5s, opacity 0.5s ease-in-out;
  220. transition: visibility 0.5s, opacity 0.5s ease-in-out;
  221. left: 50%;
  222. width: 50px;
  223. margin-top: -25px;
  224. }
  225. .navbar-custom .avatar-container .avatar-img-border {
  226. width: 100%;
  227. border-radius: 50%;
  228. margin-left: -50%;
  229. display: inline-block;
  230. box-shadow: 0 0 8px rgba(0, 0, 0, .8);
  231. -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .8);
  232. -moz-box-shadow: 0 0 8px rgba(0, 0, 0, .8);
  233. }
  234. .navbar-custom .avatar-container .avatar-img {
  235. width: 100%;
  236. border-radius: 50%;
  237. display: block;
  238. }
  239. .navbar-custom.top-nav-short .avatar-container{
  240. opacity: 0;
  241. visibility: hidden;
  242. }
  243. .navbar-custom.top-nav-expanded .avatar-container {
  244. display: none;
  245. }
  246. @media only screen and (min-width: 768px) {
  247. .navbar-custom .avatar-container {
  248. width: 100px;
  249. margin-top: -50px;
  250. }
  251. .navbar-custom .avatar-container .avatar-img-border {
  252. width: 100%;
  253. box-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
  254. -webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
  255. -moz-box-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
  256. }
  257. .navbar-custom .avatar-container .avatar-img {
  258. width: 100%;
  259. }
  260. }
  261. /* Multi-level navigation links */
  262. .navbar-custom .nav .navlinks-container {
  263. position: relative;
  264. }
  265. .navbar-custom .nav .navlinks-parent:after {
  266. content: " \25BC";
  267. }
  268. .navbar-custom .nav .navlinks-children {
  269. width: 100%;
  270. display: none;
  271. word-break: break-word;
  272. }
  273. .navbar-custom .nav .navlinks-container .navlinks-children a {
  274. display: block;
  275. padding: 10px;
  276. padding-left: 30px;
  277. background: #f5f5f5;
  278. text-decoration: none !important;
  279. border-width: 0 1px 1px 1px;
  280. font-weight: normal;
  281. }
  282. @media only screen and (max-width: 767px) {
  283. .navbar-custom .nav .navlinks-container.show-children {
  284. background: #eee;
  285. }
  286. .navbar-custom .nav .navlinks-container.show-children .navlinks-children {
  287. display: block;
  288. }
  289. }
  290. @media only screen and (min-width: 768px) {
  291. .navbar-custom .nav .navlinks-container {
  292. text-align: center;
  293. }
  294. .navbar-custom .nav .navlinks-container:hover {
  295. background: #eee;
  296. }
  297. .navbar-custom .nav .navlinks-container:hover .navlinks-children {
  298. display: block;
  299. }
  300. .navbar-custom .nav .navlinks-children {
  301. position: absolute;
  302. }
  303. .navbar-custom .nav .navlinks-container .navlinks-children a {
  304. padding-left: 10px;
  305. border: 1px solid #eaeaea;
  306. border-width: 0 1px 1px;
  307. }
  308. }
  309. @media (prefers-color-scheme: dark) {
  310. .navbar-custom .nav .navlinks-container:hover {
  311. background: #666;
  312. }
  313. .navbar-custom .nav .navlinks-container .navlinks-children a {
  314. border: 1px solid #AAA;
  315. }
  316. .navbar-custom .nav .navlinks-container .navlinks-children a {
  317. background: #444;
  318. }
  319. }
  320. /* --- Footer --- */
  321. footer {
  322. padding: 30px 0;
  323. background: #F5F5F5;
  324. border-top: 1px #EAEAEA solid;
  325. margin-top: auto;
  326. font-size: 14px;
  327. }
  328. footer a {
  329. color: #404040;
  330. }
  331. footer .list-inline {
  332. margin: 0;
  333. padding: 0;
  334. }
  335. footer .copyright {
  336. font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  337. text-align: center;
  338. margin-bottom: 0;
  339. }
  340. footer .theme-by {
  341. text-align: center;
  342. margin: 10px 0 0;
  343. }
  344. footer div.disclaimer {
  345. padding: 15px 15px 15px 10px;
  346. margin: 20px 20px 20px 5px;
  347. border: 1px solid #eee;
  348. border-left-width: 10px;
  349. border-right-width: 10px;
  350. border-radius: 5px 3px 3px 5px;
  351. background-color: #fdf5d4;
  352. border-left-color: #f1c40f;
  353. border-right-color: #f1c40f;
  354. font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  355. text-align: center;
  356. }
  357. @media only screen and (min-width: 768px) {
  358. footer {
  359. padding: 50px 0;
  360. }
  361. footer .footer-links {
  362. font-size: 18px;
  363. }
  364. footer .copyright {
  365. font-size: 16px;
  366. }
  367. }
  368. @media (prefers-color-scheme: dark) {
  369. footer {
  370. background: #444;
  371. border-top: 1px #AAA solid;
  372. }
  373. footer a {
  374. color: #AAA;
  375. }
  376. }
  377. /* --- Post preview --- */
  378. .post-preview {
  379. padding: 20px 0;
  380. border-bottom: 1px solid #eee;
  381. }
  382. @media only screen and (min-width: 768px) {
  383. .post-preview {
  384. padding: 35px 0;
  385. }
  386. }
  387. .post-preview:last-child {
  388. border-bottom: 0;
  389. }
  390. .post-preview a {
  391. text-decoration: none;
  392. color: #404040;
  393. }
  394. @media (prefers-color-scheme: dark) {
  395. .post-preview a {
  396. color: #AAA;
  397. }
  398. }
  399. .post-preview a:focus,
  400. .post-preview a:hover {
  401. text-decoration: none;
  402. color: #0085a1;
  403. }
  404. .post-preview .post-title {
  405. font-size: 30px;
  406. margin-top: 0;
  407. }
  408. .post-preview .post-subtitle {
  409. margin: 0;
  410. font-weight: 300;
  411. margin-bottom: 10px;
  412. }
  413. .post-preview .post-meta,
  414. .post-heading .post-meta,
  415. .page-meta {
  416. color: #808080;
  417. font-size: 18px;
  418. font-style: italic;
  419. margin: 0 0 10px;
  420. }
  421. .page-meta {
  422. align-self: center;
  423. }
  424. .post-preview .post-meta a,
  425. .post-heading .post-meta a,
  426. .page-meta a {
  427. color: #404040;
  428. text-decoration: none;
  429. }
  430. .post-preview .post-entry {
  431. font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  432. }
  433. .post-entry-container {
  434. display: inline-block;
  435. width: 100%;
  436. }
  437. .post-entry {
  438. width: 100%;
  439. margin-top: 10px;
  440. }
  441. .post-image {
  442. float: right;
  443. height: 192px;
  444. width: 192px;
  445. margin-top: -35px;
  446. filter: grayscale(90%);
  447. }
  448. .post-image:hover {
  449. filter: grayscale(0%);
  450. }
  451. .post-image img {
  452. border-radius: 100px;
  453. height: 192px;
  454. width: 192px;
  455. }
  456. .post-preview .post-read-more {
  457. font-weight: 800;
  458. float: right;
  459. }
  460. @media only screen and (min-width: 768px) {
  461. .post-preview .post-title {
  462. font-size: 36px;
  463. }
  464. }
  465. /* --- Tags --- */
  466. .blog-tags {
  467. font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  468. color: #999;
  469. font-size: 15px;
  470. margin-bottom: 30px;
  471. }
  472. .blog-tags:before {
  473. content: "Tags: ";
  474. }
  475. .blog-tags a {
  476. color: #008AFF;
  477. text-decoration: none;
  478. padding: 0px 5px;
  479. }
  480. .blog-tags a:before {
  481. content: "#";
  482. }
  483. .blog-tags a:hover {
  484. border-radius: 2px;
  485. color: #008AFF;
  486. background-color: #CCC;
  487. }
  488. .post-preview .blog-tags {
  489. margin-top: 5px;
  490. margin-bottom: 0;
  491. }
  492. @media only screen and (min-width: 768px) {
  493. .post-preview .blog-tags {
  494. margin-top: 10px;
  495. }
  496. }
  497. @media only screen and (max-width: 500px) {
  498. .post-image, .post-image img {
  499. height: 100px;
  500. width: 100px;
  501. }
  502. .post-image {
  503. width: 100%;
  504. text-align: center;
  505. margin-top: 0;
  506. float: left;
  507. }
  508. }
  509. /* --- Post and page headers --- */
  510. .intro-header {
  511. margin: 80px 0 20px;
  512. position: relative;
  513. }
  514. .intro-header.big-img {
  515. background: no-repeat center center;
  516. -webkit-background-size: cover;
  517. -moz-background-size: cover;
  518. background-size: cover;
  519. -o-background-size: cover;
  520. margin-top: 51px; /* The small navbar is 50px tall + 1px border */
  521. margin-bottom: 35px;
  522. }
  523. .intro-header.big-img .big-img-transition {
  524. position: absolute;
  525. width: 100%;
  526. height: 100%;
  527. opacity: 0;
  528. background: no-repeat center center;
  529. -webkit-background-size: cover;
  530. -moz-background-size: cover;
  531. background-size: cover;
  532. -o-background-size: cover;
  533. -webkit-transition: opacity 1s linear;
  534. -moz-transition: opacity 1s linear;
  535. transition: opacity 1s linear;
  536. }
  537. .intro-header .page-heading,
  538. .intro-header .tags-heading,
  539. .intro-header .categories-heading {
  540. text-align: center;
  541. }
  542. .intro-header.big-img .page-heading,
  543. .intro-header.big-img .post-heading {
  544. padding: 100px 0;
  545. color: #FFF;
  546. text-shadow: 1px 1px 3px #000;
  547. }
  548. .intro-header .page-heading h1,
  549. .intro-header .tags-heading h1,
  550. .intro-header .categories-heading h1 {
  551. margin-top: 0;
  552. font-size: 50px;
  553. }
  554. .intro-header .post-heading h1 {
  555. margin-top: 0;
  556. font-size: 35px;
  557. }
  558. .intro-header .page-heading .page-subheading,
  559. .intro-header .post-heading .post-subheading {
  560. font-size: 27px;
  561. line-height: 1.1;
  562. display: block;
  563. font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  564. font-weight: 300;
  565. margin: 10px 0 0;
  566. }
  567. .intro-header .post-heading .post-subheading {
  568. margin-bottom: 20px;
  569. }
  570. .intro-header.big-img .page-heading .page-subheading,
  571. .intro-header.big-img .post-heading .post-subheading {
  572. font-weight: 400;
  573. }
  574. .intro-header.big-img .page-heading hr {
  575. box-shadow: 1px 1px 3px #000;
  576. -webkit-box-shadow: 1px 1px 3px #000;
  577. -moz-box-shadow: 1px 1px 3px #000;
  578. }
  579. .intro-header.big-img .post-heading .post-meta {
  580. color: #EEE;
  581. }
  582. .intro-header.big-img .img-desc {
  583. background: rgba(30, 30, 30, 0.6);
  584. position: absolute;
  585. padding: 5px 10px;
  586. font-size: 11px;
  587. color: #EEE;
  588. font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  589. right: 0;
  590. bottom: 0;
  591. display: none;
  592. }
  593. @media only screen and (min-width: 768px) {
  594. .intro-header {
  595. margin-top: 130px;
  596. }
  597. .intro-header.big-img {
  598. margin-top: 91px; /* Full navbar is small navbar + 20px padding on each side when expanded */
  599. }
  600. .intro-header.big-img .page-heading,
  601. .intro-header.big-img .post-heading {
  602. padding: 150px 0;
  603. }
  604. .intro-header .page-heading h1,
  605. .intro-header .tags-heading h1,
  606. .intro-header .categories-heading h1 {
  607. font-size: 80px;
  608. }
  609. .intro-header .post-heading h1 {
  610. font-size: 50px;
  611. }
  612. .intro-header.big-img .img-desc {
  613. font-size: 14px;
  614. }
  615. }
  616. .header-section.has-img .no-img {
  617. margin-top: 0;
  618. background: #FCFCFC;
  619. margin: 0 0 40px;
  620. padding: 20px 0;
  621. box-shadow: 0 0 5px #AAA;
  622. }
  623. /* Many phones are 320 or 360px, so make sure images are a proper aspect ratio in those cases */
  624. .header-section.has-img .intro-header.no-img {
  625. display: none;
  626. }
  627. @media only screen and (max-width: 365px) {
  628. .header-section.has-img .intro-header.no-img {
  629. display: block;
  630. }
  631. .intro-header.big-img {
  632. width: 100%;
  633. height: 220px;
  634. }
  635. .intro-header.big-img .page-heading,
  636. .intro-header.big-img .post-heading {
  637. display: none;
  638. }
  639. .header-section.has-img .big-img {
  640. margin-bottom: 0;
  641. }
  642. }
  643. @media only screen and (max-width: 325px) {
  644. .intro-header.big-img {
  645. height: 200px;
  646. }
  647. }
  648. .caption {
  649. text-align: center;
  650. font-size: 14px;
  651. padding: 10px;
  652. font-style: italic;
  653. margin: 0;
  654. display: block;
  655. border-bottom-right-radius: 5px;
  656. border-bottom-left-radius: 5px;
  657. }
  658. /* --- Pager --- */
  659. .pager li a {
  660. font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  661. text-transform: uppercase;
  662. font-size: 14px;
  663. font-weight: 800;
  664. letter-spacing: 1px;
  665. padding: 10px 5px;
  666. background: #FFF;
  667. border-radius: 0;
  668. color: #404040;
  669. }
  670. @media only screen and (min-width: 768px) {
  671. .pager li a {
  672. padding: 15px 25px;
  673. }
  674. }
  675. .pager li a:hover,
  676. .pager li a:focus {
  677. color: #FFF;
  678. background: #0085a1;
  679. border: 1px solid #0085a1;
  680. }
  681. @media (prefers-color-scheme: dark) {
  682. .pager li a {
  683. background: #444;
  684. color: white;
  685. }
  686. }
  687. .pager {
  688. margin: 10px 0 0;
  689. }
  690. .pager.blog-pager {
  691. margin-top:10px;
  692. }
  693. h4.panel-title > span.badge {
  694. float: right;
  695. }
  696. @media only screen and (min-width: 768px) {
  697. .pager.blog-pager {
  698. margin-top: 40px;
  699. }
  700. }
  701. /* --- Tables --- */
  702. table {
  703. padding: 0;
  704. }
  705. table tr {
  706. border-top: 1px solid #cccccc;
  707. background-color: #ffffff;
  708. margin: 0;
  709. padding: 0;
  710. }
  711. @media (prefers-color-scheme: dark) {
  712. }
  713. table tr:nth-child(2n) {
  714. background-color: #f8f8f8;
  715. }
  716. @media (prefers-color-scheme: dark) {
  717. table tr {
  718. background-color: #181818;
  719. }
  720. table tr:nth-child(2n) {
  721. background-color: #303030
  722. }
  723. }
  724. table tr th {
  725. font-weight: bold;
  726. border: 1px solid #cccccc;
  727. text-align: left;
  728. margin: 0;
  729. padding: 6px 13px;
  730. }
  731. table tr td {
  732. border: 1px solid #cccccc;
  733. text-align: left;
  734. margin: 0;
  735. padding: 6px 13px;
  736. }
  737. table tr th :first-child,
  738. table tr td :first-child {
  739. margin-top: 0;
  740. }
  741. table tr th :last-child,
  742. table tr td :last-child {
  743. margin-bottom: 0;
  744. }
  745. /* --- Social media sharing section --- */
  746. #social-share-section {
  747. margin-bottom: 30px;
  748. }
  749. /* --- Google Custom Search Engine Popup --- */
  750. #modalSearch table tr, #modalSearch table tr td, #modalSearch table tr th {
  751. border:none;
  752. }
  753. .reset-box-sizing, .reset-box-sizing *, .reset-box-sizing *:before, .reset-box-sizing *:after, .gsc-inline-block {
  754. -webkit-box-sizing: content-box;
  755. -moz-box-sizing: content-box;
  756. box-sizing: content-box;
  757. }
  758. input.gsc-input, .gsc-input-box, .gsc-input-box-hover, .gsc-input-box-focus, .gsc-search-button {
  759. box-sizing: content-box;
  760. line-height: normal;
  761. }
  762. /* IPython split style */
  763. div.splitbox {width:100%; overflow:auto;}
  764. div.splitbox div.left {
  765. width:48%;
  766. float:left;}
  767. div.splitbox div.right {
  768. width:48%;
  769. float:right;}
  770. @media only screen and (max-width: 600px) {
  771. div.splitbox div.left {
  772. width:100%;
  773. float:left;}
  774. div.splitbox div.right {
  775. width:100%;
  776. float:left;}
  777. }
  778. /* Delayed Disqus */
  779. .disqus-comments button {
  780. font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  781. text-transform: uppercase;
  782. font-size: 14px;
  783. font-weight: 800;
  784. letter-spacing: 1px;
  785. padding: 10px 5px;
  786. background: #FFF;
  787. border-radius: 0;
  788. color: #404040;
  789. }
  790. @media only screen and (min-width: 768px) {
  791. .disqus-comments button {
  792. padding: 15px 25px;
  793. }
  794. }
  795. .disqus-comments button:hover,
  796. .disqus-comments button:focus {
  797. color: #FFF;
  798. background: #0085a1;
  799. border: 1px solid #0085a1;
  800. }
  801. /* Related posts */
  802. h4.see-also {
  803. margin-top: 20px;
  804. }
  805. /* Sharing */
  806. ul.share {
  807. display: flex;
  808. flex-direction: row;
  809. flex-wrap: wrap;
  810. list-style: none;
  811. margin: 0;
  812. padding: 0;
  813. }
  814. ul.share li {
  815. display: inline-flex;
  816. margin-right: 5px;
  817. }
  818. ul.share li:last-of-type {
  819. margin-right: 0;
  820. }
  821. ul.share li .fab {
  822. display: block;
  823. width: 30px;
  824. height: 30px;
  825. line-height: 30px;
  826. font-size: 16px;
  827. text-align: center;
  828. transition: all 150ms ease-in-out;
  829. color: #fff;
  830. }
  831. ul.share li a {
  832. background-color: #b5c6ce;
  833. display: block;
  834. border-radius: 50%;
  835. text-decoration: none !important;
  836. margin: 0;
  837. }
  838. ul.share li:hover .fab {
  839. transform: scale(1.4)
  840. }
  841. /* Dark mode */
  842. @media (prefers-color-scheme: dark) {
  843. code {
  844. background-color: #222;
  845. color: #fbb;
  846. }
  847. pre code {
  848. color: #ccc;
  849. }
  850. .well {
  851. background-color: #444;
  852. }
  853. .panel {
  854. background-color: #222;
  855. }
  856. .list-group-item {
  857. background-color: #333;
  858. }
  859. pre.chroma {
  860. color: white;
  861. background-color: #444;
  862. }
  863. pre.chroma .k {
  864. color: #44AACC;
  865. }
  866. pre.chroma .kt {
  867. color: #33CCCC;
  868. }
  869. pre.chroma .o {
  870. color: #AAA;
  871. }
  872. pre.chroma .nb {
  873. color: #00fee9;
  874. }
  875. pre.chroma .ow {
  876. color: #CC0;
  877. }
  878. }
  879. /* --- Make long KaTeX equations scrollable in the x-axis --- */
  880. .katex-display>.katex {
  881. overflow-x: auto;
  882. overflow-y: hidden;
  883. }
  884. .highlight {
  885. box-sizing: border-box;
  886. padding: 10px;
  887. position: relative;
  888. }
  889. .copyCodeButton {
  890. background-color: #f5f5f5;
  891. border: 1px solid #ccc;
  892. color: black;
  893. cursor: pointer;
  894. display: none;
  895. font-size: 14px;
  896. padding: 5px 10px;
  897. position: absolute;
  898. right: 10px;
  899. top: 10px;
  900. transition: background-color 0.3s ease;
  901. z-index: 10;
  902. }
  903. .highlight:hover .copyCodeButton {
  904. display: block;
  905. }
  906. .copyCodeButton:hover {
  907. background-color: #e0e0e0;
  908. }