style.less 28 KB

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