style.less 27 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429
  1. @import url("/fontawesome/css/all.min.css");
  2. @import url('https://fonts.googleapis.com/css?family=PT+Mono&display=swap');
  3. @import url('https://fonts.googleapis.com/css2?family=Ubuntu&display=swap');
  4. * {
  5. box-sizing: border-box;
  6. user-select: none;
  7. }
  8. p,code{
  9. user-select:text;
  10. }
  11. :root {
  12. --foreground: #dfdfdf;
  13. --foreground2: #b8b8b8;
  14. --highlightFg: #ffbb00;
  15. --highlightFg2: #ffe292;
  16. --background: #222222;
  17. --background2: rgb(27, 27, 27);
  18. --background3: rgb(20, 20, 20);
  19. --background4: rgb(37, 37, 37);
  20. --twitter: #1DA1F2;
  21. --buttonColor: #2f2f2f;
  22. --buttonColorFg: var(--foreground);
  23. --docsColor: #0c5858;
  24. --docsColorFg: var(--foreground);
  25. --bugsColor: #680404;
  26. --bugsColorFg: var(--foreground);
  27. --codeColor: #6d003f;
  28. --codeColorFg: var(--foreground);
  29. --discordColor: #44013b;
  30. --discordColorFg: var(--foreground);
  31. --storeColor: #686602;
  32. --storeColorFg: var(--foreground);
  33. --donateColor: #8cc800;
  34. --donateColorFg: #212700;
  35. --itchColor: #b11f38;
  36. --itchColorFg: var(--foreground);
  37. --youtubeColor: #c4302b;
  38. --youtubeColorFg: var(--foreground);
  39. --twitterColor: #1475b1;
  40. --twitterColorFg: var(--foreground);
  41. --highlightedColor: #ffbb00;
  42. --highlightedColorFg: #242424;
  43. --textShadowColor: var(--background3);
  44. --boxShadowColor: var(--background2);
  45. }
  46. @borderRoundness: 0.3rem;
  47. @borderRoundnessVeryRound: 2rem;
  48. @borderRoundnessNotVeryRound: .1rem;
  49. @textShadow: 0.1rem;
  50. @textShadowIntense: 0.4rem;
  51. @portrait: ~"only screen and (max-width:1024px), only screen and (orientation:portrait)";
  52. @notPortrait: ~"only screen and (min-width : 1025px)";
  53. @boxShadowBlur: 0.8rem;
  54. @boxShadowSpread: 0.3rem;
  55. img {
  56. max-width: 100%;
  57. }
  58. p {
  59. display: block;
  60. margin-top: 0.4rem;
  61. margin-bottom: 0.4rem;
  62. }
  63. blockquote {
  64. display: flex;
  65. flex-direction: row;
  66. align-items: center;
  67. }
  68. blockquote>*:first-child:before {
  69. content: "\f100";
  70. font-family: 'font awesome 5 free';
  71. font-weight: 700;
  72. padding: 0.5rem;
  73. }
  74. blockquote>*:first-child:after {
  75. content: "\f101";
  76. font-family: 'font awesome 5 free';
  77. font-weight: 700;
  78. padding: 0.5rem;
  79. }
  80. progress#pageLoadingProgress {
  81. position: fixed;
  82. top: 0;
  83. left: 0;
  84. width: 100%;
  85. z-index: 999;
  86. height: .6vh
  87. }
  88. progress#pageLoadingProgress[value],
  89. progress#pageLoadingProgress::-webkit-progress-bar {
  90. -webkit-appearance: none;
  91. appearance: none;
  92. -moz-appearance: none;
  93. background: var(--background2);
  94. border: none
  95. }
  96. progress#pageLoadingProgress::-webkit-progress-value,
  97. progress#pageLoadingProgress::-moz-progress-bar {
  98. background: var(--highlightFg);
  99. }
  100. // ### GENERIC STUFF
  101. html {
  102. height: 100%;
  103. width: 100%;
  104. position: absolute;
  105. top: 0;
  106. left: 0;
  107. }
  108. pre {
  109. padding: 1rem;
  110. }
  111. pre,
  112. code {
  113. position: relative;
  114. border-radius: @borderRoundness;
  115. overflow: auto !important;
  116. font-family: "PT Mono";
  117. }
  118. .hljs-ln-numbers {
  119. -webkit-touch-callout: none;
  120. -webkit-user-select: none;
  121. -khtml-user-select: none;
  122. -moz-user-select: none;
  123. -ms-user-select: none;
  124. user-select: none;
  125. text-align: right;
  126. color: var(--highlightFg);
  127. vertical-align: top;
  128. }
  129. .hljs-ln tr:nth-child(odd) {
  130. background-color: var(--background2);
  131. }
  132. .hljs-ln-code {
  133. padding-left: 1rem !important;
  134. }
  135. // Normalize ul,li
  136. ul {
  137. padding: 0.5rem;
  138. }
  139. ul,
  140. li {
  141. text-decoration: none;
  142. appearance: none;
  143. list-style-type: none;
  144. padding-left: 0.5rem;
  145. margin: 0;
  146. }
  147. li {
  148. margin-top: 0.1rem;
  149. p {
  150. display: inline;
  151. }
  152. }
  153. nav ul,
  154. nav li {
  155. text-align: left;
  156. all: unset;
  157. display: flex;
  158. white-space: nowrap;
  159. }
  160. nav ul {
  161. margin-top: 0.5rem;
  162. }
  163. nav li:before {
  164. display: none;
  165. }
  166. .shadowed {
  167. box-shadow: 0 0 @boxShadowBlur @boxShadowSpread var(--boxShadowColor);
  168. }
  169. .textShadowed {
  170. text-shadow:
  171. 0 0 @textShadow var(--textShadowColor),
  172. 0 0 @textShadow var(--textShadowColor),
  173. 0 0 @textShadow var(--textShadowColor),
  174. 0 0 @textShadow var(--textShadowColor),
  175. 0 0 @textShadow var(--textShadowColor),
  176. 0 0 @textShadow var(--textShadowColor),
  177. 0 0 @textShadow var(--textShadowColor),
  178. 0 0 @textShadow var(--textShadowColor),
  179. 0 0 @textShadow var(--textShadowColor);
  180. }
  181. .textShadowedIntense {
  182. text-shadow:
  183. 0 0 (@textShadowIntense/2) var(--textShadowColor),
  184. 0 0 (@textShadowIntense/2) var(--textShadowColor),
  185. 0 0 (@textShadowIntense/2) var(--textShadowColor),
  186. 0 0 @textShadowIntense var(--textShadowColor),
  187. 0 0 (@textShadowIntense*2) var(--textShadowColor),
  188. 0 0 (@textShadowIntense*2) var(--textShadowColor),
  189. 0 0 (@textShadowIntense*4) var(--textShadowColor),
  190. 0 0 (@textShadowIntense*4) var(--textShadowColor),
  191. 0 0 (@textShadowIntense/4) var(--foreground),
  192. 0 0 (@textShadowIntense/4) var(--foreground),
  193. 0 0 (@textShadowIntense/4) var(--foreground),
  194. 0 0 (@textShadowIntense/4) var(--foreground);
  195. }
  196. #topmenu {
  197. background-color: var(--background);
  198. display: flex;
  199. flex-wrap: nowrap;
  200. flex-direction: row;
  201. border-bottom-left-radius: @borderRoundness;
  202. border-bottom-right-radius: @borderRoundness;
  203. padding: 0.2rem;
  204. padding-left: 1rem;
  205. padding-right: 1rem;
  206. @media @portrait {
  207. flex-wrap: wrap;
  208. }
  209. a {
  210. text-decoration: none !important;
  211. }
  212. >div {
  213. display: flex;
  214. align-items: center;
  215. flex-direction: row;
  216. flex-wrap: wrap;
  217. justify-content: space-around;
  218. margin-right: 0.3rem;
  219. }
  220. >div:last-child {
  221. margin-right: 0;
  222. >div {
  223. margin-left: 0.3rem;
  224. }
  225. @media @portrait {
  226. margin: auto;
  227. }
  228. }
  229. >div:first-child {
  230. // The first ul is on the left
  231. margin-right: auto;
  232. margin-left: 0;
  233. @media @portrait {
  234. margin: auto;
  235. }
  236. @media @portrait {
  237. // button {
  238. // width: 100%;
  239. // }
  240. }
  241. }
  242. >div{
  243. &.expandedOnPortrait {
  244. @media @portrait {
  245. flex-direction: column;
  246. align-items: stretch;
  247. button{
  248. margin:0!important;
  249. margin-top:0.3rem!important;
  250. min-width:8rem;
  251. text-align: left!important;
  252. }
  253. flex-direction: column;
  254. align-items: stretch;
  255. }
  256. }
  257. }
  258. }
  259. .commonButton {
  260. all: unset;
  261. appearance: none;
  262. background-color: var(--background2) !important;
  263. border: 0.1rem solid var(--background3) !important;
  264. border-radius: @borderRoundness;
  265. color: var(--highlightFg);
  266. padding: 0.3rem;
  267. padding-left: 1rem;
  268. padding-right: 1rem;
  269. text-decoration: none;
  270. margin: 0.3rem;
  271. display: inline-block;
  272. padding: 0.6rem;
  273. padding-left: 1rem;
  274. padding-right: 1rem;
  275. cursor: pointer;
  276. text-shadow: none;
  277. font-weight: bolder !important;
  278. .genericCl();
  279. a {
  280. text-decoration: none !important;
  281. }
  282. .shadowed();
  283. }
  284. button {
  285. .commonButton();
  286. }
  287. button:hover {
  288. filter: brightness(130%);
  289. }
  290. @keyframes buttonIconExpand {
  291. 0% {}
  292. 100% {
  293. position: initial;
  294. }
  295. }
  296. @keyframes buttonIconExpandR {
  297. 0% {}
  298. 100% {}
  299. }
  300. .clickableIcon {
  301. i {
  302. margin: 0 !important;
  303. padding: 0 !important;
  304. display: inline-block;
  305. margin-right: -0.25rem !important;
  306. transition: margin 0.6s linear;
  307. }
  308. >span {
  309. opacity: 0;
  310. letter-spacing: -0.9rem;
  311. font-size: 0px;
  312. margin: 0;
  313. padding: 0;
  314. @media @notPortrait {
  315. transition: letter-spacing .8s linear, opacity .3s linear 0.6s, font-size 0.3s linear;
  316. }
  317. }
  318. @media @notPortrait {
  319. &.hover,
  320. &:hover {
  321. i {
  322. margin: 0 !important;
  323. }
  324. >span {
  325. font-size: inherit;
  326. letter-spacing: 0px;
  327. opacity: 1;
  328. }
  329. }
  330. }
  331. &.expandedOnPortrait {
  332. @media @portrait {
  333. i {
  334. margin: 0 !important;
  335. }
  336. >span {
  337. font-size: inherit;
  338. letter-spacing: 0px;
  339. opacity: 1;
  340. }
  341. }
  342. }
  343. padding:0.5rem;
  344. padding-left:0.7rem;
  345. padding-right:0.7rem;
  346. min-width:1.8rem;
  347. text-align: center;
  348. font-size: 1.2rem;
  349. }
  350. button.icon {
  351. .clickableIcon();
  352. }
  353. @media @portrait {
  354. button.responsiveIcon {
  355. i {
  356. margin: 0 !important;
  357. padding: 0 !important;
  358. display: inline-block;
  359. margin-right: -0.25rem !important;
  360. }
  361. >span {
  362. opacity: 0;
  363. letter-spacing: -0.9rem;
  364. font-size: 0px;
  365. margin: 0;
  366. padding: 0;
  367. }
  368. &.expandedOnPortrait {
  369. i {
  370. margin: 0 !important;
  371. }
  372. >span {
  373. font-size: inherit;
  374. letter-spacing: 0px;
  375. opacity: 1;
  376. }
  377. }
  378. padding:0.5rem;
  379. padding-left:0.7rem;
  380. padding-right:0.7rem;
  381. min-width:1.8rem;
  382. text-align: center;
  383. font-size: 1.2rem;
  384. }
  385. }
  386. nav {
  387. display: flex;
  388. flex-wrap: wrap;
  389. flex-direction: column;
  390. ul {
  391. display: flex;
  392. flex-direction: column;
  393. }
  394. }
  395. a,
  396. a:hover,
  397. a:visited {
  398. color: inherit;
  399. text-decoration: inherit;
  400. color: var(--highlightFg);
  401. }
  402. a:hover {
  403. text-decoration: underline;
  404. }
  405. h1 a,
  406. h2 a,
  407. h1 a:visited,
  408. h2 a:visited,
  409. h1 a:hover,
  410. h2 a:hover,
  411. header a,
  412. header a:hover,
  413. header a:visited {
  414. color: inherit;
  415. }
  416. h1 {
  417. position: relative;
  418. }
  419. h1 {
  420. font-size: 2rem;
  421. }
  422. h2 {
  423. font-size: 1.5rem;
  424. }
  425. h3 {
  426. font-size: 1.2rem;
  427. }
  428. h2,
  429. h1,
  430. h3 {
  431. margin: 0;
  432. padding: 0;
  433. margin-bottom: 1rem;
  434. color: var(--highlightFg);
  435. }
  436. h2,
  437. h3 {
  438. margin-top: 0.1rem;
  439. margin-bottom: 0.1rem;
  440. }
  441. .toggleNavOnPortraitButton {
  442. font-size: 2rem;
  443. display: none;
  444. color: var(--highlightFg);
  445. cursor: pointer;
  446. &:hover {
  447. color: var(--highlightFg2);
  448. }
  449. @media @portrait {
  450. display: block;
  451. }
  452. }
  453. // Useless things are hidden inportrait mode.
  454. @media @portrait {
  455. .useless {
  456. display: none;
  457. }
  458. }
  459. .toggleable.toggledOn {}
  460. .toggleable.toggledOff {
  461. display: none !important;
  462. }
  463. .toggleable.toggledOnPortrait {
  464. @media @portrait {
  465. .toggleable.toggledOn();
  466. }
  467. }
  468. .toggleable.toggledOffPortrait {
  469. @media @portrait {
  470. .toggleable.toggledOff();
  471. }
  472. }
  473. // Give padding to all the icons (from font awesome)
  474. *>i.fas:first-child,
  475. *>i.fab:first-child {
  476. // This is the icon
  477. padding-right: .2rem;
  478. }
  479. // #####
  480. .genericCl {
  481. background: var(--buttonColor) !important;
  482. color: var(--buttonColorFg) !important;
  483. font-weight: bold;
  484. }
  485. .highlightedCl {
  486. .genericCl();
  487. background: var(--highlightedColor) !important;
  488. color: var(--highlightedColorFg) !important;
  489. }
  490. .donateCl {
  491. .genericCl();
  492. background: var(--donateColor) !important;
  493. color: var(--donateColorFg) !important;
  494. }
  495. .docsCl {
  496. .genericCl();
  497. background: var(--docsColor) !important;
  498. color: var(--docsColorFg) !important;
  499. }
  500. .bugsCl {
  501. .genericCl();
  502. background: var(--bugsColor) !important;
  503. color: var(--bugsColorFg) !important;
  504. }
  505. .codeCl {
  506. .genericCl();
  507. background: var(--codeColor) !important;
  508. color: var(--codeColorFg) !important;
  509. }
  510. .discordCl {
  511. .genericCl();
  512. background: var(--discordColor) !important;
  513. color: var(--discordColorFg) !important;
  514. }
  515. .storeCl {
  516. .genericCl();
  517. background: var(--storeColor) !important;
  518. color: var(--storeColorFg) !important;
  519. }
  520. .twitterCl {
  521. .genericCl();
  522. background: var(--twitterColor) !important;
  523. color: var(--twitterColorFg) !important;
  524. }
  525. .youtubeCl {
  526. .genericCl();
  527. background: var(--youtubeColor) !important;
  528. color: var(--youtubeColorFg) !important;
  529. }
  530. .itchCl {
  531. .genericCl();
  532. background: var(--itchColor) !important;
  533. color: var(--itchColorFg) !important;
  534. }
  535. figure.githubUser {
  536. display: flex;
  537. flex-direction: row;
  538. text-align: left;
  539. align-items: center;
  540. padding: 0;
  541. margin: 2rem;
  542. >* {
  543. padding: 0;
  544. margin: 0;
  545. }
  546. >img {
  547. box-shadow: 0 0 0.2rem 0.01rem var(--highlightFg);
  548. border-radius: 8rem;
  549. max-height: 6rem;
  550. }
  551. >figcaption {
  552. margin-left: 1rem;
  553. >h2 {
  554. padding: 0;
  555. margin: 0;
  556. }
  557. display:flex;
  558. flex-direction: column;
  559. }
  560. &.inline {
  561. margin: 0;
  562. >img {
  563. max-height: 3rem;
  564. }
  565. h2 {
  566. font-size: 1.2rem;
  567. }
  568. .ghbio {
  569. display: none !important;
  570. }
  571. margin-top:2rem;
  572. margin-bottom:.5rem;
  573. padding-bottom:1rem;
  574. border-bottom: 0.1rem solid var(--highlightFg);
  575. >figcaption {}
  576. }
  577. }
  578. body {
  579. text-align: left;
  580. overflow-x: hidden;
  581. font-family: 'Ubuntu', sans-serif; // font-family: 'JetBrains Mono', monospace;
  582. // font-family: 'Padauk', sans-serif;
  583. background: var(--background) !important;
  584. color: var(--foreground) !important;
  585. min-height: 100%;
  586. width: 100%;
  587. position: relative;
  588. margin: 0;
  589. padding: 0;
  590. display: flex;
  591. flex-direction: column;
  592. align-items: center;
  593. font-size: .8706rem;
  594. word-wrap: break-word;
  595. white-space: normal;
  596. .textShadowed();
  597. // The main footer
  598. >footer {
  599. margin-top: 4rem; // Makes the page nicer by preventing it from abruptly end at the end of the content.
  600. text-align: center;
  601. font-size:0.8rem;
  602. color:var(--foreground2);
  603. margin-bottom:1rem;
  604. }
  605. >main {
  606. // The main is the main content
  607. font-size: 1rem;
  608. width: 100%;
  609. // Those are unbound headers right under the main.
  610. >h1 {
  611. text-align: center;
  612. margin: auto;
  613. max-width: 600px;
  614. padding-top: 1rem;
  615. padding-bottom: 1rem;
  616. margin-top: 0.5rem;
  617. &:before,
  618. &:after {
  619. content: "\f107";
  620. font-family: 'font awesome 5 free';
  621. font-weight: 700;
  622. padding: 0.5rem;
  623. }
  624. }
  625. }
  626. // The main header
  627. >header {
  628. position: relative;
  629. z-index: 99;
  630. display: flex;
  631. flex-direction: column;
  632. align-items: center;
  633. background-color: var(--background2);
  634. box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.25);
  635. width: 100%;
  636. margin: 0;
  637. padding: 0;
  638. #siteTitle {
  639. color: var(--highlightFg);
  640. display: flex;
  641. flex-direction: row;
  642. text-align: center;
  643. /* justify-items: center;
  644. justify-content: center; */
  645. align-items: center;
  646. margin: 0;
  647. padding: 0;
  648. padding-top: 0.4rem;
  649. padding-bottom: 0.5rem;
  650. }
  651. .smaller {
  652. #logo {
  653. display: flex;
  654. flex-direction: row;
  655. width: 100%;
  656. align-items: center;
  657. .toggleNavOnPortraitButton {
  658. margin-right: 1rem;
  659. margin-left: auto;
  660. }
  661. }
  662. flex-direction: column;
  663. >#siteTitle {
  664. flex-direction: column !important;
  665. text-align: left !important;
  666. align-items: flex-start !important;
  667. >#contributionsBanner {
  668. text-align: left!important;
  669. margin-left:0;
  670. padding-left:0.6rem;
  671. }
  672. }
  673. }
  674. @media @portrait {
  675. .smaller ()
  676. }
  677. &.floating{
  678. position:fixed;
  679. top:0;
  680. left:0;
  681. .smaller();
  682. #topmenu{
  683. display:none;
  684. }
  685. #contributionsBanner {
  686. display:none;
  687. }
  688. .toggleNavOnPortraitButton {
  689. display:block;
  690. }
  691. }
  692. }
  693. }
  694. // Something that links to more something
  695. .more {
  696. text-align: right;
  697. display: block;
  698. }
  699. // Cover, is something that fills an area to show an image/video
  700. .cover {
  701. width: 100%;
  702. height: 100%;
  703. background-color: rgba(0, 0, 0, 0.45);
  704. background-position: center;
  705. background-size: cover;
  706. position: absolute;
  707. top: 0;
  708. left: 0;
  709. z-index: -1;
  710. object-fit: cover;
  711. pointer-events: none;
  712. box-shadow: 0 0 0.3rem 0.04rem var(--background2);
  713. &.gallery {
  714. background-size: contain;
  715. background-repeat: no-repeat;
  716. pointer-events: auto;
  717. object-fit: contain;
  718. z-index: 0;
  719. }
  720. &.blur {
  721. filter: blur(100px);
  722. margin-top: 40vh;
  723. @media @portrait{
  724. display:none;
  725. }
  726. }
  727. }
  728. // A width that is not too wide.
  729. .responsiveWidth {
  730. max-width: 1200px;
  731. width: 99vw;
  732. margin-left: auto;
  733. margin-right: auto;
  734. }
  735. #backerMessages {
  736. text-align: center;
  737. width: 100%;
  738. }
  739. #contributionsBanner {
  740. text-align: left ;
  741. margin-left: auto;
  742. >div{
  743. margin-top:0.4rem;
  744. }
  745. }
  746. // A flex list
  747. .list {
  748. display: flex;
  749. flex-wrap: wrap;
  750. justify-content: center;
  751. >article {
  752. p {
  753. display: inline;
  754. }
  755. }
  756. &.hlist {
  757. flex-direction: row;
  758. >article {
  759. flex-basis: 30%;
  760. }
  761. }
  762. &.vlist {
  763. display: flex;
  764. flex-direction: column;
  765. }
  766. }
  767. .collapsedList {
  768. article {
  769. border-radius: 0;
  770. margin-top: 0;
  771. margin-bottom: 0;
  772. flex-basis: 100%;
  773. h1 {
  774. border-radius: 0;
  775. }
  776. &:last-child {
  777. margin-bottom: 1rem;
  778. border-bottom-left-radius: @borderRoundness;
  779. border-bottom-right-radius: @borderRoundness;
  780. }
  781. &:first-child {
  782. margin-top: 1rem;
  783. border-top-left-radius: @borderRoundness;
  784. border-top-right-radius: @borderRoundness;
  785. h1 {
  786. border-top-left-radius: @borderRoundness;
  787. border-top-right-radius: @borderRoundness;
  788. }
  789. }
  790. }
  791. }
  792. main>section {
  793. text-align: center;
  794. margin: auto;
  795. }
  796. // This is a section, of the page
  797. section {
  798. display: block;
  799. position: relative;
  800. text-align: left;
  801. margin-bottom: 1rem;
  802. margin-top: 1rem;
  803. // &.full {
  804. // display: flex;
  805. // flex-direction: column;
  806. // }
  807. >article {
  808. // An article, is the content.
  809. .shadowed();
  810. text-align: left;
  811. background: var(--background2);
  812. border-radius: @borderRoundness;
  813. margin: 1rem;
  814. display: flex;
  815. flex-direction: column;
  816. text-shadow: none;
  817. h1 {}
  818. h2,h3,h1{
  819. display:block;
  820. padding-top:1rem;
  821. }
  822. .more {
  823. text-align: left;
  824. }
  825. hr{
  826. margin-top:1rem!important;
  827. margin-bottom:1rem!important;
  828. }
  829. >h1:first-of-type {
  830. // This is the top bar in the article. The main title basically.
  831. border-radius: @borderRoundness;
  832. background: var(--background4);
  833. color: var(--foreground2);
  834. margin: 0;
  835. padding: 0;
  836. display: block;
  837. padding: 0.7rem;
  838. padding-left: 0.5rem;
  839. padding-right: 0.1rem;
  840. font-size: 1.3rem;
  841. width: 100%;
  842. border-bottom-left-radius: 0;
  843. border-bottom-right-radius: 0;
  844. }
  845. >div.content {
  846. line-height: 130%;
  847. padding: 1rem;
  848. display: flex;
  849. flex-direction: row;
  850. align-items: stretch;
  851. min-width: 0;
  852. width: 100%;
  853. a {
  854. word-break: break-all;
  855. word-break: break-word;
  856. }
  857. /* @media @portrait {*/
  858. display: flex;
  859. flex-direction: column;
  860. /* }*/
  861. ul{
  862. }
  863. li {
  864. // Adds little arrows before the li.
  865. list-style: none;
  866. &:before {
  867. content: "\f0da";
  868. font-family: 'Font Awesome 5 Free';
  869. font-style: normal;
  870. font-weight: 900;
  871. font-display: auto;
  872. margin-left:-0.8rem;
  873. padding-right: 0.5rem;
  874. }
  875. }
  876. p:first-of-type {
  877. // Remove margin from first p
  878. margin-top: 0 !important;
  879. padding-top: 0 !important;
  880. }
  881. >span {
  882. display: block;
  883. overflow-wrap: break-word;
  884. flex-grow: 1;
  885. width:100%;
  886. ul{
  887. margin-left:1rem;
  888. }
  889. }
  890. >nav {
  891. flex-grow: 0;
  892. margin-left: 2rem;
  893. flex-direction: column;
  894. align-items: baseline;
  895. flex-wrap: wrap;
  896. color: var(--highlightFg);
  897. >ul {
  898. width: 100%;
  899. }
  900. >ul li {
  901. width: 100%;
  902. // Special smaller ul
  903. background: none;
  904. border: none !important;
  905. margin: 0.1rem;
  906. margin-left: 0rem;
  907. font-size: 0.8rem;
  908. box-shadow: none;
  909. >* {
  910. margin-left: 1rem;
  911. }
  912. button {
  913. width: 100%;
  914. margin: 0;
  915. }
  916. }
  917. /* @media @portrait {*/
  918. ul li {
  919. // make nav in list section more compact
  920. margin: 0.1rem;
  921. padding: 0;
  922. width: auto;
  923. }
  924. >ul {
  925. margin-right: 0.4rem;
  926. width: auto;
  927. }
  928. /* }*/
  929. /* @media @portrait {*/
  930. margin-left: 0;
  931. flex-direction: row;
  932. /*}*/
  933. }
  934. }
  935. }
  936. &.list {
  937. >article {
  938. >div.content {
  939. // When the section is a list, we use a column layout. Helps keeping it compact
  940. display: flex;
  941. flex-direction: column;
  942. nav {
  943. flex-direction: row;
  944. }
  945. nav .share {
  946. // Share buttons are hidden in list section
  947. display: none !important;
  948. }
  949. ul {
  950. width: auto;
  951. li {
  952. width: auto;
  953. }
  954. }
  955. nav,
  956. nav ul li {
  957. // make nav in list section more compact
  958. margin: 0.1rem;
  959. padding: 0;
  960. }
  961. }
  962. }
  963. }
  964. }
  965. // Horizzontal lists are collapsed vertically in portrait mode.
  966. @media @portrait {
  967. section.hlist.responsive {
  968. .collapsedList();
  969. }
  970. }
  971. // This is a special section
  972. section#contribute {
  973. .collapsedList();
  974. }
  975. button#startbtn {
  976. font-size: 1.6rem;
  977. }
  978. button#featuresbtn{
  979. font-size: 1.2rem;
  980. }
  981. section#showcase {
  982. text-align: center;
  983. width: 100%;
  984. margin-top: 0;
  985. margin-bottom: 0;
  986. padding: 0;
  987. display: flex;
  988. position: relative;
  989. flex-direction: column;
  990. min-height: 40vh;
  991. background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.42' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
  992. // background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23000000' fill-opacity='0.61' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
  993. &.gallery{
  994. background-image: none;
  995. }
  996. .textShadowedIntense();
  997. #playButton{
  998. position:absolute;
  999. top:0;
  1000. left:0;
  1001. pointer-events: none;
  1002. width:100%;
  1003. height:100%;
  1004. z-index:90;
  1005. align-items: center;
  1006. font-size:4rem;
  1007. display:none;
  1008. justify-content: center;
  1009. }
  1010. #gameDescription {
  1011. text-align: right !important;
  1012. width: 50%;
  1013. font-size: 0.8rem;
  1014. margin-top: auto;
  1015. margin-right: 0 !important;
  1016. margin-left: auto;
  1017. height: auto;
  1018. display: block;
  1019. }
  1020. #gameDescription h2 {
  1021. text-align: left !important;
  1022. font-size: 0.9rem;
  1023. }
  1024. #engineDescription {
  1025. font-size: 1.3rem;
  1026. text-align: center;
  1027. width: 100%;
  1028. display: block;
  1029. }
  1030. #showCasePrev,
  1031. #showCaseNext {
  1032. display: block;
  1033. cursor: pointer;
  1034. position: absolute;
  1035. color: var(--highlightFg);
  1036. }
  1037. &.gallery {
  1038. min-height: 30vmax;
  1039. }
  1040. #showCasePrev {
  1041. font-size: 4rem;
  1042. top: 50%;
  1043. margin-top: -2rem;
  1044. left: 1rem;
  1045. }
  1046. #showCaseNext {
  1047. font-size: 4rem;
  1048. margin-top: -2rem;
  1049. top: 50%;
  1050. right: 1rem;
  1051. }
  1052. >div {
  1053. padding: 1rem;
  1054. background: none;
  1055. box-shadow: none;
  1056. width: 100%;
  1057. display: block;
  1058. background-position: center;
  1059. background-size: cover;
  1060. margin-top: 0;
  1061. margin-bottom: 0;
  1062. }
  1063. @media @portrait {
  1064. #gameDescription h2 {
  1065. text-align: center !important;
  1066. }
  1067. #gameDescription {
  1068. text-align: center !important;
  1069. width: 100%;
  1070. }
  1071. #engineDescription {
  1072. text-align: center !important;
  1073. font-size: 1.1rem;
  1074. }
  1075. }
  1076. }
  1077. div#poweredBy{
  1078. display:flex;
  1079. align-items: center;
  1080. justify-content: center;
  1081. width:100%;padding:3em;text-align: right;
  1082. }
  1083. div#poweredBy img{
  1084. margin:1em;
  1085. max-height:4em;
  1086. }