style.less 29 KB

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