styles.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633
  1. @font-face {
  2. font-family: 'fontello';
  3. src: url('../fonts/fontello.eot?66028575');
  4. src: url('../fonts/fontello.eot?66028575#iefix') format('embedded-opentype'),
  5. url('../fonts/fontello.woff?66028575') format('woff'),
  6. url('../fonts/fontello.ttf?66028575') format('truetype'),
  7. url('../fonts/fontello.svg?66028575#fontello') format('svg');
  8. font-display: 'fallback';
  9. font-weight: normal;
  10. font-style: normal;
  11. }
  12. @font-face {
  13. font-family: 'Source Code Pro Bold';
  14. src: url('../fonts/sourcecodepro-bold-webfont.woff2') format('woff2'),
  15. url('../fonts/sourcecodepro-bold-webfont.woff') format('woff');
  16. font-display: 'fallback';
  17. font-weight: normal;
  18. font-style: normal;
  19. }
  20. @font-face {
  21. font-family: 'Source Sans Pro Bold';
  22. src: url('../fonts/sourcesanspro-bold-webfont.woff2') format('woff2'),
  23. url('../fonts/sourcesanspro-bold-webfont.woff') format('woff');
  24. font-display: 'fallback';
  25. font-weight: normal;
  26. font-style: normal;
  27. }
  28. @font-face {
  29. font-family: 'Source Sans Pro Light';
  30. src: url('../fonts/sourcesanspro-light-webfont.woff2') format('woff2'),
  31. url('../fonts/sourcesanspro-light-webfont.woff') format('woff');
  32. font-display: 'fallback';
  33. font-weight: normal;
  34. font-style: normal;
  35. }
  36. @font-face {
  37. font-family: 'Source Sans Pro';
  38. src: url('../fonts/sourcesanspro-regular-webfont.woff2') format('woff2'),
  39. url('../fonts/sourcesanspro-regular-webfont.woff') format('woff');
  40. font-display: 'fallback';
  41. font-weight: normal;
  42. font-style: normal;
  43. }
  44. .demo-icon
  45. {
  46. font-family: "fontello"; /* stylelint-disable-line */
  47. font-style: normal;
  48. font-weight: normal;
  49. speak: none;
  50. display: inline-block;
  51. text-decoration: inherit;
  52. width: 1em;
  53. margin-right: 0.2em;
  54. text-align: center;
  55. /* For safety - reset parent styles, that can break glyph codes */
  56. font-variant: normal;
  57. text-transform: none;
  58. /* Font smoothing. That was taken from TWBS */
  59. -webkit-font-smoothing: antialiased;
  60. -moz-osx-font-smoothing: grayscale;
  61. }
  62. :root {
  63. --baseline: 1.25;
  64. line-height: var(--baseline);
  65. --border-thin: 1px;
  66. --border-bold: 4px;
  67. /* font size ratios */
  68. --largefr: 1.953rem;
  69. --mediumfr: 1.563rem;
  70. --defaultfr: 1.25rem;
  71. --smallfr: 1rem;
  72. --tinyfr: 0.8rem;
  73. /* colours */
  74. --highlight: #00485e;
  75. --main-light: #f7f7f6;
  76. --forms: #7c7872;
  77. --forms-bg: #fdfdfc;
  78. --text: #322f2b;
  79. --text-alt: #847d71;
  80. }
  81. body {
  82. align-content: center;
  83. background-color: var(--text);
  84. color: var(--text);
  85. font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, sans-serif;
  86. font-size: 16px;
  87. font-weight: normal;
  88. display: flex;
  89. justify-content: center;
  90. height: 100%;
  91. overflow: hidden;
  92. }
  93. /* dark mode. experimental */
  94. /* @media (prefers-color-scheme: dark) { */
  95. /* body { */
  96. /* color: #ddd; */
  97. /* background-color: #222; */
  98. /* } */
  99. /* main { */
  100. /* background-color: #373736; */
  101. /* } */
  102. /* section { */
  103. /* background-color: #373736; */
  104. /* } */
  105. /* #source-modal { */
  106. /* background-color: #373736; */
  107. /* } */
  108. /* .deposit-stock-ratio { */
  109. /* background-color: #353531; */
  110. /* } */
  111. /* } */
  112. html, body {
  113. height: 100%;
  114. }
  115. html, body, * {
  116. border: 0;
  117. margin: 0;
  118. padding: 0;
  119. box-sizing: border-box;
  120. }
  121. .iconset {
  122. display: none;
  123. }
  124. main {
  125. background-color: var(--main-light);
  126. display: flex;
  127. flex-direction: column;
  128. justify-content: space-between;
  129. padding: 1rem;
  130. width: 1024px;
  131. height: 650px;
  132. }
  133. input,
  134. /* label.form-item, */
  135. select {
  136. font-family: "Source Sans Pro Bold", sans-serif;
  137. font-size: var(--smallfr);
  138. font-weight: normal;
  139. letter-spacing: 0.025em;
  140. color: var(--highlight);
  141. background-color: var(--forms-bg);
  142. }
  143. /* does not work, loses against javascript injected styles */
  144. /* input.investment-options-ratios:hover, */
  145. select.investment-option-selector:hover {
  146. opacity: 1;
  147. }
  148. select {
  149. -webkit-appearance: none;
  150. -moz-appearance: none;
  151. appearance: none;
  152. border-radius: 3px;
  153. cursor: pointer;
  154. }
  155. input[type=range] {
  156. max-width: 10rem;
  157. -webkit-appearance: none;
  158. -moz-appearance: none;
  159. appearance: none;
  160. }
  161. input[type=range]:focus {
  162. outline: none;
  163. }
  164. input[type=range]::-moz-range-track {
  165. width: 100%;
  166. height: 1px;
  167. background-color: #000;
  168. margin: 5px 0;
  169. }
  170. input[type=range]::-webkit-slider-runnable-track {
  171. width: 100%;
  172. height: 1px;
  173. background-color: #000;
  174. margin: 5px 0;
  175. }
  176. input[type=range]::-moz-range-thumb {
  177. height: 12px;
  178. width: 12px;
  179. margin-top: -6px;
  180. border: 1px solid black;
  181. border-radius: 50%;
  182. background-color: #fff;
  183. }
  184. input[type=range]::-webkit-slider-thumb {
  185. height: 12px;
  186. width: 12px;
  187. margin-top: -6px;
  188. -webkit-appearance: none;
  189. appearance: none;
  190. border: 1px solid black;
  191. border-radius: 50%;
  192. background-color: #fff;
  193. }
  194. a {
  195. color: var(--text-alt);
  196. text-decoration: none;
  197. }
  198. table {
  199. width: 50%;
  200. }
  201. td:nth-child(2) {
  202. font-family: monospace;
  203. }
  204. svg {
  205. background-color: var(--forms-bg);
  206. }
  207. h1 {
  208. font-family: "Source Sans Pro Light"; /* stylelint-disable-line */
  209. font-size: var(--largefr);
  210. font-weight: normal;
  211. letter-spacing: 0.025em;
  212. }
  213. h1 a {
  214. float: right;
  215. }
  216. h2 {
  217. font-family: "Source Sans Pro Bold", sans-serif;
  218. font-size: var(--defaultfr);
  219. padding: 0 0.05em;
  220. }
  221. h4 {
  222. font-family: "Source Sans Pro Bold", sans-serif;
  223. font-size: var(--smallfr);
  224. font-weight: normal;
  225. }
  226. header {
  227. line-height: calc(var(--baseline) * 2rem);
  228. }
  229. .sampling-description {
  230. font-weight: normal;
  231. }
  232. #source-modal {
  233. background-color: #f7f7f6;
  234. box-shadow: 1px 1px 20px 1px #847d71;
  235. font-size: var(--tinyfr);
  236. height: 40rem;
  237. left: 0;
  238. line-height: calc(var(--baseline) * 1rem);
  239. margin: 0 auto;
  240. right: 0;
  241. overflow: auto;
  242. padding: 1rem 2.5rem;
  243. position: absolute;
  244. top: 0.35rem;
  245. width: 55rem;
  246. z-index: 1000;
  247. }
  248. .reference-group h4 {
  249. font-family: "Source Sans Pro", sans-serif;
  250. padding: 0 0.5rem;
  251. font-weight: normal;
  252. }
  253. #source-modal h4 {
  254. margin: calc(var(--baseline) * 0.25em) 0;
  255. }
  256. .logos {
  257. align-items: center;
  258. display: flex;
  259. justify-content: space-between;
  260. margin: 2rem 0;
  261. }
  262. header .investment {
  263. border: none;
  264. border-bottom: 1px solid var(--forms);
  265. width: 5rem;
  266. text-align: right;
  267. font-size: var(--defaultfr);
  268. }
  269. header .period-selector {
  270. font-size: var(--defaultfr);
  271. }
  272. .samplers {
  273. display: flex;
  274. justify-content: space-between;
  275. }
  276. .reference-group-title {
  277. line-height: calc(var(--baseline) * 2rem);
  278. }
  279. .reference-group {
  280. padding: 0 0.5em;
  281. }
  282. .sampler-visual {
  283. display: flex;
  284. }
  285. .sampler-wrapper {
  286. border: 1px solid var(--text-alt);
  287. }
  288. .investment-options-ratio {
  289. display: flex;
  290. justify-content: space-between;
  291. }
  292. .investment-option-selector-wrapper {
  293. display: flex;
  294. flex-direction: column;
  295. font-weight: bold;
  296. }
  297. .investment-option-selector-wrapper select {
  298. border-radius: 3px;
  299. font-size: var(--smallfr);
  300. }
  301. .investment-option-selector-wrapper-left {
  302. align-content: flex-end;
  303. }
  304. .investment-options-range-labels {
  305. display: flex;
  306. justify-content: space-between;
  307. }
  308. input::-webkit-outer-spin-button,
  309. input::-webkit-inner-spin-button {
  310. -webkit-appearance: none;
  311. }
  312. label,
  313. textarea,
  314. button {
  315. -webkit-appearance: none;
  316. -moz-appearance: none;
  317. appearance: none;
  318. font-size: 1rem;
  319. padding: 0.25em 0.5em;
  320. }
  321. footer label {
  322. font-size: var(--smallfr);
  323. }
  324. .investment-options-range-labels label {
  325. padding: 0;
  326. }
  327. .textual.controls {
  328. display: flex;
  329. justify-content: space-between;
  330. align-items: center;
  331. }
  332. .overview {
  333. text-align: right;
  334. }
  335. .sampler-textual {
  336. display: flex;
  337. justify-content: center;
  338. min-height: 9rem;
  339. min-width: 10rem;
  340. text-align: center;
  341. }
  342. .sampler-textual-1 {
  343. order: 1;
  344. }
  345. .current-sample-wrapper {
  346. display: flex;
  347. }
  348. .current-sample {
  349. display: flex;
  350. flex-direction: column;
  351. justify-content: space-around;
  352. align-items: center;
  353. }
  354. .current-sample-number {
  355. border-radius: 50%;
  356. color: var(--main-light);
  357. display: inline-block;
  358. font-family: "Source Code Pro Bold", monospace;
  359. font-size: var(--defaultfr);
  360. height: 5rem;
  361. line-height: 5rem;
  362. width: 5rem;
  363. }
  364. .sample-button {
  365. display: flex;
  366. flex-direction: column;
  367. }
  368. .controls-sample-size-reset {
  369. display: flex;
  370. justify-content: space-between;
  371. }
  372. .buttons {
  373. display: flex;
  374. flex-direction: column;
  375. justify-content: space-around;
  376. }
  377. .buttons input {
  378. display: none;
  379. }
  380. .form-item {
  381. border: var(--border-thin) solid var(--forms);
  382. font-size: 1rem;
  383. margin: 0.25rem;
  384. padding: 0.25rem;
  385. }
  386. .buttons .form-item {
  387. min-width: 10rem;
  388. padding: 1rem;
  389. text-align: center;
  390. }
  391. .buttons.export-reset {
  392. order: 1;
  393. }
  394. footer {
  395. display: flex;
  396. justify-content: center;
  397. padding-top: 1rem;
  398. }
  399. button.sample {
  400. padding: 1.5rem;
  401. font-family: "Source Sans Pro Bold", sans-serif;
  402. border: 4px solid var(--forms);
  403. }
  404. /* form elements */
  405. button a,
  406. button i,
  407. label.form-item {
  408. color: var(--highlight);
  409. }
  410. .groupsize, .period {
  411. display: flex;
  412. flex-direction: column;
  413. }
  414. .input-radio ~ label {
  415. box-sizing: border-box;
  416. color: var(--text-alt);
  417. cursor: pointer;
  418. display: block;
  419. }
  420. .groupsize .input-radio ~ label,
  421. .period .input-radio ~ label {
  422. font-size: var(--smallfr);
  423. width: 7.5rem;
  424. height: 2rem;
  425. line-height: 1.2rem;
  426. text-align: center;
  427. }
  428. .groupsize .input-label,
  429. .period .input-label {
  430. font-size: var(--smallfr);
  431. }
  432. .groupsize .size-selectors,
  433. .period .size-selectors, {
  434. display: flex;
  435. }
  436. button {
  437. -webkit-appearance: none;
  438. -moz-appearance: none;
  439. appearance: none;
  440. background-color: var(--forms-bg);
  441. }
  442. button a,
  443. button i {
  444. text-decoration: none;
  445. /* color: var(--text); */
  446. }
  447. button:active:not([disabled]) {
  448. background-color: var(--highlight);
  449. /* border: var(--border-thin) solid var(--highlight); */
  450. border-color: var(--highlight);
  451. }
  452. button:hover:not([disabled]) {
  453. background-color: var(--forms);
  454. border-color: var(--forms);
  455. cursor: pointer;
  456. }
  457. button:hover a,
  458. button:hover i {
  459. color: var(--main-light);
  460. }
  461. button[disabled],
  462. button[disabled] a,
  463. button[disabled] i {
  464. cursor: not-allowed;
  465. color: var(--text-alt);
  466. }
  467. button .loading::before {
  468. width: 0.6em;
  469. height: 0.6em;
  470. border: 2px solid var(--text-alt);
  471. /* border: 2px solid var(--main-light); */
  472. content: "";
  473. display: inline-block;
  474. border-top-color: transparent;
  475. border-right-color: transparent;
  476. border-radius: 1000px;
  477. animation: spinAround 1.5s infinite linear;
  478. margin-right: 0.5em;
  479. }
  480. button .loading:hover::before {
  481. border: 2px solid var(--main-light);
  482. border-top-color: var(--text-alt);
  483. border-right-color: var(--text-alt);
  484. }
  485. @keyframes spinAround {
  486. from {
  487. -webkit-transform: rotate(0);
  488. transform: rotate(0)
  489. }
  490. to {
  491. -webkit-transform: rotate(359deg);
  492. transform: rotate(359deg)
  493. }
  494. }
  495. button .loading i {
  496. display: none;
  497. }
  498. /* button[disabled]:hover {
  499. /* background-color: var(--forms-bg);*/
  500. /* border: var(--border-thin) solid var(--text-alt);*/
  501. /* }*/
  502. input[type=number] {
  503. -moz-appearance: textfield;
  504. }
  505. .input-radio {
  506. height: 0;
  507. width: 0;
  508. opacity: 0;
  509. }
  510. .input-radio:hover ~ label {
  511. border: var(--border-thin) solid var(--forms);
  512. color: var(--main-light);
  513. }
  514. .input-radio:checked ~ label {
  515. background-color: var(--forms-bg);
  516. border: var(--border-thin) solid var(--highlight);
  517. /* font-family: "Source Sans Pro Bold", sans-serif; */
  518. color: var(--highlight);
  519. }
  520. .input-radio + label:hover,
  521. select:hover
  522. {
  523. border: var(--border-thin) solid var(--main-light);
  524. background-color: var(--forms);
  525. color: var(--main-light);
  526. }
  527. .input-file:focus + label {
  528. outline: 1px dotted #000;
  529. outline: -webkit-focus-ring-color auto 5px;
  530. }