style.less 21 KB

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