template.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684
  1. /*
  2. Modified by: Paul Iacomi
  3. Originally based on a marked2app template
  4. */
  5. /* Colors */
  6. :root {
  7. --color-highlight-1: #2f80a5;
  8. --color-highlight-2: #0f5271;
  9. --color-highlight-3: #3a3a4f;
  10. --color-complementary-1: #b54b3a;
  11. --color-complementary-2: #a73f2d;
  12. --color-white: #FFFFFF;
  13. --color-off-white: #F8F5F0;
  14. --color-off-white-2: #ECE6DA;
  15. --color-grey-1: #ddd;
  16. --color-grey-2: #68645d;
  17. --color-grey-3: #57534A;
  18. --color-grey-4: #423F37;
  19. --color-black: rgb(0, 0, 0);
  20. --color-transparent: rgba(0, 0, 0, 0.4);
  21. }
  22. @font-face {
  23. font-family: "Ubuntu";
  24. font-style: normal;
  25. font-weight: 300;
  26. src: local("Ubuntu Light"), local("Ubuntu-Light"), url("http://themes.googleusercontent.com/static/fonts/ubuntu/v4/WtcvfJHWXKxx4x0kuS1kobO3LdcAZYWl9Si6vvxL-qU.woff") format("woff");
  27. }
  28. @font-face {
  29. font-family: "Ubuntu";
  30. font-style: normal;
  31. font-weight: 400;
  32. src: local("Ubuntu"), url("http://themes.googleusercontent.com/static/fonts/ubuntu/v4/CGXpU_uR_FUfdeyCjAWgZ-vvDin1pK8aKteLpeZ5c0A.woff") format("woff");
  33. }
  34. @font-face {
  35. font-family: "Ubuntu";
  36. font-style: normal;
  37. font-weight: 500;
  38. src: local("Ubuntu Medium"), local("Ubuntu-Medium"), url("http://themes.googleusercontent.com/static/fonts/ubuntu/v4/gMhvhm-nVj1086DvGgmzB7O3LdcAZYWl9Si6vvxL-qU.woff") format("woff");
  39. }
  40. @font-face {
  41. font-family: "Ubuntu";
  42. font-style: normal;
  43. font-weight: 700;
  44. src: local("Ubuntu Bold"), local("Ubuntu-Bold"), url("http://themes.googleusercontent.com/static/fonts/ubuntu/v4/nsLtvfQoT-rVwGTHHnkeJrO3LdcAZYWl9Si6vvxL-qU.woff") format("woff");
  45. }
  46. @font-face {
  47. font-family: "Ubuntu";
  48. font-style: italic;
  49. font-weight: 300;
  50. src: local("Ubuntu Light Italic"), local("Ubuntu-LightItalic"), url("http://themes.googleusercontent.com/static/fonts/ubuntu/v4/DZ_YjBPqZ88vcZCcIXm6VqfTCPadK0KLfdEfFtGWCYw.woff") format("woff");
  51. }
  52. /* General settings */
  53. html {
  54. font-size: 100%;
  55. scroll-behavior: smooth;
  56. }
  57. html, button, input, select, textarea {
  58. font-family: sans-serif;
  59. }
  60. html, body, button, input, select, textarea {
  61. color: var(--color-grey-3);
  62. font-family: "Ubuntu Medium", "Myriad Pro", "Myriad", sans-serif;
  63. font-size: 18px;
  64. font-weight: 300;
  65. }
  66. body {
  67. margin: 0 auto;
  68. background-color: var(--color-white);
  69. height: 100%;
  70. min-height: 100%;
  71. overflow: hidden;
  72. }
  73. body, textarea {
  74. line-height: 1.4;
  75. }
  76. body:after {
  77. clear: both;
  78. content: "";
  79. display: table;
  80. }
  81. h1, h2, h3, dt {
  82. color: var(--color-grey-4);
  83. font-weight: 700;
  84. }
  85. h1 {
  86. font-size: 2em;
  87. margin: 0.67em 0;
  88. }
  89. h2, .article-list .article-title {
  90. font-size: 1.5em;
  91. margin: 0.83em 0;
  92. }
  93. h3, dt {
  94. font-size: 1.17em;
  95. margin: 1em 0;
  96. }
  97. h4 {
  98. font-size: 1em;
  99. margin: 1.33em 0;
  100. }
  101. h5 {
  102. font-size: 0.83em;
  103. margin: 1.67em 0;
  104. }
  105. h6 {
  106. font-size: 0.75em;
  107. margin: 2.33em 0;
  108. }
  109. a {
  110. color: var(--color-highlight-1);
  111. cursor: pointer;
  112. outline: 0 none;
  113. text-decoration: underline;
  114. }
  115. a:hover {
  116. outline: 0 none;
  117. color: var(--color-highlight-2);
  118. }
  119. p, pre {
  120. margin: 1em 0;
  121. }
  122. .article-body p {
  123. text-align: justify;
  124. }
  125. code, kbd, pre, samp {
  126. font-family: monospace, serif;
  127. font-size: 1em;
  128. margin: 0;
  129. padding: 0;
  130. }
  131. pre {
  132. white-space: pre-wrap;
  133. word-wrap: break-word;
  134. }
  135. pre {
  136. background-color: var(--color-off-white);
  137. font-size: 0.7rem;
  138. overflow-x: auto;
  139. padding: 1.3rem;
  140. position: relative;
  141. white-space: pre;
  142. word-wrap: normal;
  143. }
  144. pre, code, kbd, samp {
  145. margin: 0;
  146. }
  147. code, kbd, pre, samp {
  148. font-family: monospace, serif;
  149. }
  150. code {
  151. color: var(--color-grey-4);
  152. }
  153. aside {
  154. display: block;
  155. float: right;
  156. width: 390px;
  157. }
  158. b, strong {
  159. font-weight: bold;
  160. color: var(--color-grey-4);
  161. font-weight: 700;
  162. }
  163. blockquote {
  164. color: var(--color-grey-4);
  165. font-size: 1.25em;
  166. font-weight: 700;
  167. margin: 1em 40px;
  168. }
  169. blockquote {
  170. margin-bottom: 2em;
  171. margin-top: 2em;
  172. }
  173. hr {
  174. -moz-border-bottom-colors: none;
  175. -moz-border-left-colors: none;
  176. -moz-border-right-colors: none;
  177. -moz-border-top-colors: none;
  178. border-color: -moz-use-text-color -moz-use-text-color var(--color-off-white-2);
  179. border-image: none;
  180. border-style: none none solid;
  181. border-width: medium medium 1px;
  182. margin: 3em 6em;
  183. }
  184. /* buttons */
  185. .button {
  186. box-shadow: inset 0px 34px 0px -15px var(--color-complementary-1);
  187. background-color: var(--color-complementary-2);
  188. border: 1px solid var(--color-grey-4);
  189. display: inline-block;
  190. cursor: pointer;
  191. color: var(--color-white);
  192. font-size: 15px;
  193. font-weight: bold;
  194. padding: 9px 23px;
  195. text-decoration: none;
  196. text-shadow: 0px -1px 0px var(--color-grey-4);
  197. }
  198. .button:hover {
  199. background-color: var(--color-complementary-1);
  200. }
  201. .button:active {
  202. position: relative;
  203. top: 1px;
  204. }
  205. /* Wrapper and Header */
  206. .wrapper {
  207. flex: 1;
  208. display: flex;
  209. }
  210. .container {
  211. flex: 1;
  212. order: 1;
  213. height: 100vh;
  214. overflow-y: auto;
  215. }
  216. article {
  217. padding-left: 6rem;
  218. padding-right: 6rem;
  219. margin-left: auto;
  220. margin-right: auto;
  221. max-width: 42rem;
  222. display: block;
  223. }
  224. /* header/navbar */
  225. header {
  226. flex: 0 0 25%;
  227. order: 0;
  228. background-color: var(--color-highlight-3);
  229. border-left: 1px solid var(--color-black);
  230. color: var(--color-off-white);
  231. -webkit-font-smoothing: antialiased;
  232. height: 100vh;
  233. overflow-y: auto;
  234. padding: 20px;
  235. }
  236. header h1 {
  237. font-family: Arvo, sans-serif;
  238. font-size: 1.3em;
  239. font-weight: 300;
  240. color: var(--color-white);
  241. line-height: 1.3em;
  242. border-bottom: none;
  243. margin-top: 0;
  244. margin-left: 10px;
  245. }
  246. header ul>li:before {
  247. background-color: var(--color-white);
  248. }
  249. header a {
  250. text-decoration: none;
  251. font-size: 0.9em;
  252. color: var(--color-off-white);
  253. }
  254. header a:hover {
  255. outline: 0 none;
  256. color: var(--color-highlight-1);
  257. }
  258. header ul {
  259. list-style: none;
  260. padding: 0;
  261. }
  262. .navbar-hamburger {
  263. display: none;
  264. }
  265. #navbar-check {
  266. display: none;
  267. }
  268. @media print, screen and (max-width: 960px) {
  269. body {
  270. overflow: auto;
  271. }
  272. .wrapper {
  273. flex-direction: column;
  274. }
  275. /* header, article, footer {
  276. float: none;
  277. position: static;
  278. width: auto;
  279. } */
  280. article, footer {
  281. float: none;
  282. position: static;
  283. width: auto;
  284. }
  285. header {
  286. position: static;
  287. flex: 0 0 0;
  288. padding: 20px;
  289. }
  290. article {
  291. padding-left: 3.5rem;
  292. padding-right: 3.5rem;
  293. }
  294. .navbar-items {
  295. background-color: var(--color-highlight-3);
  296. position: fixed;
  297. top: 0;
  298. bottom: 0;
  299. width: 70%;
  300. padding: 10px;
  301. overflow-y: auto;
  302. -webkit-box-orient: vertical;
  303. -webkit-box-direction: normal;
  304. -ms-flex-flow: column nowrap;
  305. flex-flow: column nowrap;
  306. -webkit-box-pack: center;
  307. -ms-flex-pack: center;
  308. justify-content: center;
  309. }
  310. .navbar-hamburger {
  311. display: block !important;
  312. float: left;
  313. position: fixed;
  314. z-index: 6;
  315. top: 5%;
  316. color: var(--color-off-white);
  317. background-color: var(--color-complementary-2);
  318. -webkit-transform: translateY(-50%);
  319. transform: translateY(-50%);
  320. transform: scale(2);
  321. }
  322. .navbar-left .navbar-items {
  323. left: 0;
  324. margin-left: -100%;
  325. -webkit-transition: margin-left 0.2s ease;
  326. transition: margin-left 0.2s ease;
  327. }
  328. .navbar-left #navbar-check:checked~.navbar-items {
  329. margin-left: 0;
  330. }
  331. .navbar-left #navbar-check:checked~.navbar-hamburger {
  332. margin-left: 72%;
  333. }
  334. div.navbar-item:not(:last-of-type) {
  335. margin-bottom: 8px;
  336. }
  337. }
  338. /* images and figures */
  339. figure {
  340. margin-bottom: 2em;
  341. margin-top: 2em;
  342. }
  343. figure>figcaption {
  344. margin-top: 0.5em;
  345. }
  346. img {
  347. max-width: 100%;
  348. max-height: 100vh;
  349. display: block;
  350. border: 0 none;
  351. margin: auto;
  352. }
  353. .img-modal {
  354. z-index: 3;
  355. display: none;
  356. position: fixed;
  357. left: 0;
  358. top: 0;
  359. width: 100%;
  360. height: 100%;
  361. overflow: auto;
  362. background-color: var(--color-black);
  363. background-color: var(--color-transparent);
  364. }
  365. .img-modal-content {
  366. margin: auto;
  367. background-color: var(--color-white);
  368. position: relative;
  369. padding: 0;
  370. outline: 0;
  371. max-width: 60%;
  372. animation: animatezoom 0.6s;
  373. }
  374. .img-modal-content img {
  375. max-width: 100%;
  376. max-height: 100%;
  377. }
  378. @keyframes animatezoom {
  379. from {
  380. transform: scale(0)
  381. }
  382. to {
  383. transform: scale(1)
  384. }
  385. }
  386. /* Lists and tables */
  387. ol>li:before {
  388. color: var(--color-grey-4);
  389. content: counter(ol, decimal) ".";
  390. counter-increment: ol;
  391. font-weight: 700;
  392. margin-right: 0.333em;
  393. position: absolute;
  394. right: 100%;
  395. }
  396. ul>li:before {
  397. background-color: var(--color-grey-4);
  398. border-radius: 14px 14px 14px 14px;
  399. content: "";
  400. height: 6px;
  401. margin-right: 0.333em;
  402. margin-top: 0.55em;
  403. position: absolute;
  404. right: 100%;
  405. width: 6px;
  406. }
  407. ol, ul, dl {
  408. margin-left: 2rem;
  409. padding: 0;
  410. }
  411. ol {
  412. counter-reset: ol;
  413. }
  414. li+li, dd+dt {
  415. margin-top: 0.5em;
  416. }
  417. ul>li {
  418. position: relative;
  419. }
  420. ol>li {
  421. position: relative;
  422. }
  423. li {
  424. list-style: none outside none;
  425. }
  426. small, dd, figcaption {
  427. color: var(--color-grey-2);
  428. display: block;
  429. font-size: 0.8rem;
  430. font-style: italic;
  431. line-height: 1.2;
  432. }
  433. /* Tables */
  434. tbody {
  435. display: table-row-group
  436. }
  437. tfoot {
  438. display: table-footer-group
  439. }
  440. table {
  441. margin-bottom: 2em;
  442. font-size: 0.8em;
  443. padding: 0;
  444. border-collapse: collapse;
  445. box-shadow: 1px 1px 2px var(--color-transparent);
  446. -webkit-box-shadow: 1px 1px 2px var(--color-transparent);
  447. width: 80%;
  448. margin: 0 auto 2em auto
  449. }
  450. table th, table td {
  451. padding: 10px 10px 9px;
  452. line-height: 18px;
  453. text-align: left
  454. }
  455. table th {
  456. padding-top: 9px;
  457. vertical-align: middle
  458. }
  459. table td {
  460. vertical-align: top;
  461. border-top: 1px solid var(--color-grey-1);
  462. }
  463. table tbody th {
  464. border-top: 1px solid var(--color-grey-1);
  465. vertical-align: top
  466. }
  467. table {
  468. border: 1px solid var(--color-grey-1);
  469. border-collapse: separate;
  470. *border-collapse: collapse;
  471. -webkit-border-radius: 4px;
  472. -moz-border-radius: 4px;
  473. border-radius: 4px
  474. }
  475. table th+th, table td+td, table th+td {
  476. border-left: 1px solid var(--color-grey-1)
  477. }
  478. table thead tr:first-child th:first-child, table tbody tr:first-child td:first-child {
  479. -webkit-border-radius: 4px 0 0 0;
  480. -moz-border-radius: 4px 0 0 0;
  481. border-radius: 4px 0 0 0
  482. }
  483. table thead tr:first-child th:last-child, table tbody tr:first-child td:last-child {
  484. -webkit-border-radius: 0 4px 0 0;
  485. -moz-border-radius: 0 4px 0 0;
  486. border-radius: 0 4px 0 0
  487. }
  488. table tbody tr:last-child td:first-child {
  489. -webkit-border-radius: 0 0 0 4px;
  490. -moz-border-radius: 0 0 0 4px;
  491. border-radius: 0 0 0 4px
  492. }
  493. table tbody tr:last-child td:last-child {
  494. -webkit-border-radius: 0 0 4px 0;
  495. -moz-border-radius: 0 0 4px 0;
  496. border-radius: 0 0 4px 0
  497. }
  498. tbody tr:nth-child(odd) {
  499. background-color: rgba(0, 0, 0, 0.03)
  500. }
  501. caption {
  502. display: table-caption;
  503. font-weight: 300;
  504. font-size: 1.1em;
  505. background: var(--color-transparent);
  506. padding: 5px;
  507. border-radius: 4px;
  508. -webkit-border-radius: 4px;
  509. margin: 4px 0;
  510. box-shadow: 2px 2px 2px var(--color-transparent);
  511. -webkit-box-shadow: 2px 2px 2px var(--color-transparent);
  512. }
  513. /* grey out placeholders */
  514. :-moz-placeholder {
  515. color: var(--color-off-white-2);
  516. }
  517. ::-webkit-input-placeholder {
  518. color: var(--color-off-white-2);
  519. }
  520. .article-date {
  521. color: var(--color-off-white-2);
  522. display: block;
  523. font-size: 0.8rem;
  524. }
  525. /* Title, author, institution, abstract */
  526. .author-list {
  527. margin: 0 0 0px;
  528. font-weight: 700;
  529. }
  530. .author-affiliations {
  531. margin: 0 0 0px;
  532. font-style: italic;
  533. font-size: smaller;
  534. }
  535. .author-correspondence {
  536. line-height: 2rem;
  537. font-weight: 700;
  538. font-size: smaller;
  539. }
  540. .abstract {
  541. margin: 0% 1% 2%;
  542. font-weight: 700;
  543. }
  544. /* References */
  545. .references {
  546. line-height: 1.1;
  547. font-size: 15px;
  548. }
  549. div.csl-entry {
  550. clear: both;
  551. margin-bottom: 0.5em;
  552. }
  553. .hanging div.csl-entry {
  554. margin-left: 2em;
  555. text-indent: -2em;
  556. }
  557. div.csl-left-margin {
  558. min-width: 2em;
  559. float: left;
  560. }
  561. div.csl-right-inline {
  562. margin-left: 2em;
  563. padding-left: 1em;
  564. }
  565. div.csl-indent {
  566. margin-left: 2em;
  567. }
  568. /* Other pandoc settings */
  569. q {
  570. quotes: "ÔÇ£" "ÔÇØ" "ÔÇÿ" "ÔÇÖ";
  571. }
  572. .display.math {
  573. display: block;
  574. text-align: center;
  575. margin: 0.5rem auto;
  576. }