style.less 27 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433
  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. button{
  684. // padding: 0.5rem;
  685. // padding-left: 0.5rem;
  686. // padding-right: 0.5rem;
  687. }
  688. }
  689. #contributionsBanner {
  690. display:none;
  691. }
  692. .toggleNavOnPortraitButton {
  693. display:block;
  694. }
  695. }
  696. }
  697. }
  698. // Something that links to more something
  699. .more {
  700. text-align: right;
  701. display: block;
  702. }
  703. // Cover, is something that fills an area to show an image/video
  704. .cover {
  705. width: 100%;
  706. height: 100%;
  707. background-color: rgba(0, 0, 0, 0.45);
  708. background-position: center;
  709. background-size: cover;
  710. position: absolute;
  711. top: 0;
  712. left: 0;
  713. z-index: -1;
  714. object-fit: cover;
  715. pointer-events: none;
  716. box-shadow: 0 0 0.3rem 0.04rem var(--background2);
  717. &.gallery {
  718. background-size: contain;
  719. background-repeat: no-repeat;
  720. pointer-events: auto;
  721. object-fit: contain;
  722. z-index: 0;
  723. }
  724. &.blur {
  725. filter: blur(100px);
  726. margin-top: 40vh;
  727. @media @portrait{
  728. display:none;
  729. }
  730. }
  731. }
  732. // A width that is not too wide.
  733. .responsiveWidth {
  734. max-width: 1200px;
  735. width: 99vw;
  736. margin-left: auto;
  737. margin-right: auto;
  738. }
  739. #backerMessages {
  740. text-align: center;
  741. width: 100%;
  742. }
  743. #contributionsBanner {
  744. text-align: left ;
  745. margin-left: auto;
  746. >div{
  747. margin-top:0.4rem;
  748. }
  749. }
  750. // A flex list
  751. .list {
  752. display: flex;
  753. flex-wrap: wrap;
  754. justify-content: center;
  755. >article {
  756. p {
  757. display: inline;
  758. }
  759. }
  760. &.hlist {
  761. flex-direction: row;
  762. >article {
  763. flex-basis: 30%;
  764. }
  765. }
  766. &.vlist {
  767. display: flex;
  768. flex-direction: column;
  769. }
  770. }
  771. .collapsedList {
  772. article {
  773. border-radius: 0;
  774. margin-top: 0;
  775. margin-bottom: 0;
  776. flex-basis: 100%;
  777. h1 {
  778. border-radius: 0;
  779. }
  780. &:last-child {
  781. margin-bottom: 1rem;
  782. border-bottom-left-radius: @borderRoundness;
  783. border-bottom-right-radius: @borderRoundness;
  784. }
  785. &:first-child {
  786. margin-top: 1rem;
  787. border-top-left-radius: @borderRoundness;
  788. border-top-right-radius: @borderRoundness;
  789. h1 {
  790. border-top-left-radius: @borderRoundness;
  791. border-top-right-radius: @borderRoundness;
  792. }
  793. }
  794. }
  795. }
  796. main>section {
  797. text-align: center;
  798. margin: auto;
  799. }
  800. // This is a section, of the page
  801. section {
  802. display: block;
  803. position: relative;
  804. text-align: left;
  805. margin-bottom: 1rem;
  806. margin-top: 1rem;
  807. // &.full {
  808. // display: flex;
  809. // flex-direction: column;
  810. // }
  811. >article {
  812. // An article, is the content.
  813. .shadowed();
  814. text-align: left;
  815. background: var(--background2);
  816. border-radius: @borderRoundness;
  817. margin: 1rem;
  818. display: flex;
  819. flex-direction: column;
  820. text-shadow: none;
  821. h1 {}
  822. h2,h3,h1{
  823. display:block;
  824. padding-top:1rem;
  825. }
  826. .more {
  827. text-align: left;
  828. }
  829. hr{
  830. margin-top:1rem!important;
  831. margin-bottom:1rem!important;
  832. }
  833. >h1:first-of-type {
  834. // This is the top bar in the article. The main title basically.
  835. border-radius: @borderRoundness;
  836. background: var(--background4);
  837. color: var(--foreground2);
  838. margin: 0;
  839. padding: 0;
  840. display: block;
  841. padding: 0.7rem;
  842. padding-left: 0.5rem;
  843. padding-right: 0.1rem;
  844. font-size: 1.3rem;
  845. width: 100%;
  846. border-bottom-left-radius: 0;
  847. border-bottom-right-radius: 0;
  848. }
  849. >div.content {
  850. line-height: 130%;
  851. padding: 1rem;
  852. display: flex;
  853. flex-direction: row;
  854. align-items: stretch;
  855. min-width: 0;
  856. width: 100%;
  857. a {
  858. word-break: break-all;
  859. word-break: break-word;
  860. }
  861. /* @media @portrait {*/
  862. display: flex;
  863. flex-direction: column;
  864. /* }*/
  865. ul{
  866. }
  867. li {
  868. // Adds little arrows before the li.
  869. list-style: none;
  870. &:before {
  871. content: "\f0da";
  872. font-family: 'Font Awesome 5 Free';
  873. font-style: normal;
  874. font-weight: 900;
  875. font-display: auto;
  876. margin-left:-0.8rem;
  877. padding-right: 0.5rem;
  878. }
  879. }
  880. p:first-of-type {
  881. // Remove margin from first p
  882. margin-top: 0 !important;
  883. padding-top: 0 !important;
  884. }
  885. >span {
  886. display: block;
  887. overflow-wrap: break-word;
  888. flex-grow: 1;
  889. width:100%;
  890. ul{
  891. margin-left:1rem;
  892. }
  893. }
  894. >nav {
  895. flex-grow: 0;
  896. margin-left: 2rem;
  897. flex-direction: column;
  898. align-items: baseline;
  899. flex-wrap: wrap;
  900. color: var(--highlightFg);
  901. >ul {
  902. width: 100%;
  903. }
  904. >ul li {
  905. width: 100%;
  906. // Special smaller ul
  907. background: none;
  908. border: none !important;
  909. margin: 0.1rem;
  910. margin-left: 0rem;
  911. font-size: 0.8rem;
  912. box-shadow: none;
  913. >* {
  914. margin-left: 1rem;
  915. }
  916. button {
  917. width: 100%;
  918. margin: 0;
  919. }
  920. }
  921. /* @media @portrait {*/
  922. ul li {
  923. // make nav in list section more compact
  924. margin: 0.1rem;
  925. padding: 0;
  926. width: auto;
  927. }
  928. >ul {
  929. margin-right: 0.4rem;
  930. width: auto;
  931. }
  932. /* }*/
  933. /* @media @portrait {*/
  934. margin-left: 0;
  935. flex-direction: row;
  936. /*}*/
  937. }
  938. }
  939. }
  940. &.list {
  941. >article {
  942. >div.content {
  943. // When the section is a list, we use a column layout. Helps keeping it compact
  944. display: flex;
  945. flex-direction: column;
  946. nav {
  947. flex-direction: row;
  948. }
  949. nav .share {
  950. // Share buttons are hidden in list section
  951. display: none !important;
  952. }
  953. ul {
  954. width: auto;
  955. li {
  956. width: auto;
  957. }
  958. }
  959. nav,
  960. nav ul li {
  961. // make nav in list section more compact
  962. margin: 0.1rem;
  963. padding: 0;
  964. }
  965. }
  966. }
  967. }
  968. }
  969. // Horizzontal lists are collapsed vertically in portrait mode.
  970. @media @portrait {
  971. section.hlist.responsive {
  972. .collapsedList();
  973. }
  974. }
  975. // This is a special section
  976. section#contribute {
  977. .collapsedList();
  978. }
  979. button#startbtn {
  980. font-size: 1.6rem;
  981. }
  982. button#featuresbtn{
  983. font-size: 1.2rem;
  984. }
  985. section#showcase {
  986. text-align: center;
  987. width: 100%;
  988. margin-top: 0;
  989. margin-bottom: 0;
  990. padding: 0;
  991. display: flex;
  992. position: relative;
  993. flex-direction: column;
  994. min-height: 40vh;
  995. 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");
  996. // 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");
  997. &.gallery{
  998. background-image: none;
  999. }
  1000. .textShadowedIntense();
  1001. #playButton{
  1002. position:absolute;
  1003. top:0;
  1004. left:0;
  1005. pointer-events: none;
  1006. width:100%;
  1007. height:100%;
  1008. z-index:90;
  1009. align-items: center;
  1010. font-size:4rem;
  1011. display:none;
  1012. justify-content: center;
  1013. }
  1014. #gameDescription {
  1015. text-align: right !important;
  1016. width: 50%;
  1017. font-size: 0.8rem;
  1018. margin-top: auto;
  1019. margin-right: 0 !important;
  1020. margin-left: auto;
  1021. height: auto;
  1022. display: block;
  1023. }
  1024. #gameDescription h2 {
  1025. text-align: left !important;
  1026. font-size: 0.9rem;
  1027. }
  1028. #engineDescription {
  1029. font-size: 1.3rem;
  1030. text-align: center;
  1031. width: 100%;
  1032. display: block;
  1033. }
  1034. #showCasePrev,
  1035. #showCaseNext {
  1036. display: block;
  1037. cursor: pointer;
  1038. position: absolute;
  1039. color: var(--highlightFg);
  1040. }
  1041. &.gallery {
  1042. min-height: 30vmax;
  1043. }
  1044. #showCasePrev {
  1045. font-size: 4rem;
  1046. top: 50%;
  1047. margin-top: -2rem;
  1048. left: 1rem;
  1049. }
  1050. #showCaseNext {
  1051. font-size: 4rem;
  1052. margin-top: -2rem;
  1053. top: 50%;
  1054. right: 1rem;
  1055. }
  1056. >div {
  1057. padding: 1rem;
  1058. background: none;
  1059. box-shadow: none;
  1060. width: 100%;
  1061. display: block;
  1062. background-position: center;
  1063. background-size: cover;
  1064. margin-top: 0;
  1065. margin-bottom: 0;
  1066. }
  1067. @media @portrait {
  1068. #gameDescription h2 {
  1069. text-align: center !important;
  1070. }
  1071. #gameDescription {
  1072. text-align: center !important;
  1073. width: 100%;
  1074. }
  1075. #engineDescription {
  1076. text-align: center !important;
  1077. font-size: 1.1rem;
  1078. }
  1079. }
  1080. }
  1081. div#poweredBy{
  1082. display:flex;
  1083. align-items: center;
  1084. justify-content: center;
  1085. width:100%;padding:3em;text-align: right;
  1086. }
  1087. div#poweredBy img{
  1088. margin:1em;
  1089. max-height:4em;
  1090. }