style.less 21 KB

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