style.less 25 KB

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