less copy protection, more size visualization
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

1032 lignes
17 KiB

  1. @import url('https://fonts.googleapis.com/css?family=Coda&display=swap');
  2. html {
  3. height: 100%;
  4. width: 100%;
  5. box-sizing: border-box;
  6. overflow-x: hidden;
  7. overflow-y: hidden;
  8. color: #eee;
  9. }
  10. body {
  11. position: relative;
  12. background: #333;
  13. display: flex;
  14. flex-direction: column;
  15. align-items: center;
  16. justify-content: flex-start;
  17. height: 100%;
  18. width: 100%;
  19. font-family: 'Coda', sans-serif;
  20. }
  21. .entity-box {
  22. position: absolute;
  23. --height: 100px;
  24. max-height: var(--height);
  25. height: var(--height);
  26. text-align: center;
  27. -webkit-user-drag: none;
  28. -khtml-user-drag: none;
  29. -moz-user-drag: none;
  30. -o-user-drag: none;
  31. pointer-events: none;
  32. transition: left 0.2s cubic-bezier(.1,.41,.18,.99), top 0.2s cubic-bezier(.1,.41,.18,.99), height 0.2s cubic-bezier(.1,.41,.18,.99), max-height 0.2s cubic-bezier(.1,.41,.18,.99);
  33. }
  34. .entity-image {
  35. display: block;
  36. height: 100%;
  37. pointer-events: auto;
  38. -webkit-user-drag: none;
  39. -khtml-user-drag: none;
  40. -moz-user-drag: none;
  41. -o-user-drag: none;
  42. --offset: -100%;
  43. transform: translate(-50%, var(--offset));
  44. }
  45. .entity-name {
  46. display: none;
  47. position: absolute;
  48. top: calc(-100% + var(--extra) / 2);
  49. left: 0%;
  50. transform: translate(-50%, -36px);
  51. font-size: 24px;
  52. pointer-events: none;
  53. max-width: 250px;
  54. width: 250px;
  55. transition: all 0s;
  56. }
  57. body.toggle-entity-name .entity-name,
  58. .entity-box.selected .entity-name {
  59. display: inline;
  60. }
  61. .entity-box.selected > img {
  62. filter: drop-shadow(0px 0px 5px gold);
  63. }
  64. body.toggle-entity-glow .entity-box:not(.selected) > img{
  65. filter: drop-shadow(0px 0px 2px white);
  66. }
  67. #main-area {
  68. min-height: 0px;
  69. display: flex;
  70. flex: 1 1 90vh;
  71. width: 100%;
  72. flex-direction: row;
  73. }
  74. #options {
  75. position: relative;
  76. flex: 1 1 15vw;
  77. min-width: 100pt;
  78. display: flex;
  79. justify-content: start;
  80. flex-direction: column;
  81. background: #444;
  82. overflow-x: hidden;
  83. overflow-y: auto;
  84. height: 100%;
  85. scrollbar-color: #e1e1e1 #888;
  86. }
  87. #options.hidden {
  88. min-width: 0pt;
  89. flex: 0 1 0vw;
  90. }
  91. #options-attribution {
  92. display: none;
  93. }
  94. #options::-webkit-scrollbar {
  95. height: 2px;
  96. }
  97. #options::-webkit-scrollbar-button {
  98. width: 0px;
  99. height: 0px;
  100. }
  101. #options::-webkit-scrollbar-thumb {
  102. background: #e1e1e1;
  103. border: 0px none #ffffff;
  104. border-radius: 50px;
  105. }
  106. #options::-webkit-scrollbar-thumb:hover {
  107. background: #ffffff;
  108. }
  109. #options::-webkit-scrollbar-thumb:active {
  110. background: #000000;
  111. }
  112. #options::-webkit-scrollbar-track {
  113. background: #00000000;
  114. border: 0px none #ffffff;
  115. border-radius: 50px;
  116. }
  117. #options::-webkit-scrollbar-track:hover {
  118. background: #666666;
  119. }
  120. #options::-webkit-scrollbar-track:active {
  121. background: #333333;
  122. }
  123. #options::-webkit-scrollbar-corner {
  124. background: transparent;
  125. }
  126. .options-two-buttons {
  127. display: flex;
  128. justify-content: space-evenly;
  129. }
  130. .options-category {
  131. position: relative;
  132. }
  133. .options-row {
  134. position: relative;
  135. flex-direction: column;
  136. display: flex;
  137. text-align: center;
  138. align-items: center;
  139. margin-left: auto;
  140. margin-right: auto;
  141. margin-top: 8px;
  142. margin-bottom: 8px;
  143. max-width: 90%;
  144. }
  145. .options-row.full {
  146. min-width: 90%;
  147. }
  148. .options-block {
  149. display: flex;
  150. text-align: center;
  151. min-width: 90%;
  152. width: 90%;
  153. margin: auto;
  154. flex-direction: column;
  155. }
  156. .options-label {
  157. text-align: center;
  158. user-select: none;
  159. margin-top: 12px;
  160. margin-bottom: 4px;
  161. }
  162. .options-block.options-block-optional {
  163. display: none;
  164. }
  165. body.show-extra-options .options-block.options-block-optional {
  166. display: flex;
  167. }
  168. .options-header {
  169. text-align: center;
  170. font-size: 24pt;
  171. margin-top: 10px;
  172. margin-bottom: 10px;
  173. background: #333;
  174. user-select: none;
  175. }
  176. .options-banner {
  177. text-align: center;
  178. font-size: 24pt;
  179. margin-top: 10px;
  180. margin-bottom: 10px;
  181. background: #232;
  182. text-decoration: none;
  183. user-select: none;
  184. }
  185. .options-banner:hover {
  186. color: #222;
  187. background: #494;
  188. }
  189. .options-selector {
  190. font-size: 150%;
  191. width: 100%;
  192. }
  193. #entities {
  194. position: absolute;
  195. user-select: none;
  196. width: 100%;
  197. height: 100%;
  198. }
  199. #world {
  200. position: relative;
  201. flex: 1 1 85vw;
  202. height: 100%;
  203. overflow: hidden;
  204. }
  205. #menubar {
  206. display: flex;
  207. flex: 1 0 5vh;
  208. flex-direction: row;
  209. justify-content: space-evenly;
  210. align-items: center;
  211. flex-wrap: wrap;
  212. min-width: 100vw;
  213. background: #222;
  214. }
  215. #menubar.hover-delete {
  216. background: #922;
  217. }
  218. .menubar-group {
  219. display: flex;
  220. flex-direction: row;
  221. }
  222. .popout-group {
  223. margin: 20px;
  224. display: flex;
  225. flex-direction: column;
  226. }
  227. .menu-item {
  228. font-size: 24px;
  229. color: #ccc;
  230. margin: 20px;
  231. }
  232. select.menu-item {
  233. color: #000;
  234. }
  235. #display {
  236. display: none;
  237. width: 100%;
  238. height: 100%;
  239. background: #333;
  240. }
  241. body.toggle-scale #display {
  242. display: block;
  243. }
  244. #options .options-label,
  245. #options .options-banner {
  246. flex: 0 1;
  247. width: 100%;
  248. font-size: 150%;
  249. }
  250. .options-row .options-field-numeric {
  251. flex: 1 1 100%;
  252. max-width: 90%;
  253. font-size: 150%;
  254. }
  255. .options-row .options-field-text {
  256. flex: 1 0 90%;
  257. max-width: 90%;
  258. font-size: 150%;
  259. }
  260. .options-row .options-field-unit {
  261. flex: 1 1 10%;
  262. max-width: 90%;
  263. font-size: 150%;
  264. }
  265. .options-row .options-field-picker {
  266. flex: 1;
  267. width: 100%;
  268. min-width: 90%;
  269. max-width: 90%;
  270. font-size: 150%;
  271. overflow: hidden;
  272. white-space: pre-wrap;
  273. word-break: normal;
  274. text-overflow: ellipsis;
  275. }
  276. .options-row .symbol-button {
  277. width: 75px;
  278. font-size: 70px;
  279. }
  280. .options-row .options-button {
  281. flex: 1;
  282. width: 100%;
  283. font-size: 150%;
  284. }
  285. .options-block .options-button {
  286. flex: 1;
  287. width: 100%;
  288. font-size: 150%;
  289. }
  290. .options-row label {
  291. flex: 1;
  292. width: 100%;
  293. font-size: 150%;
  294. }
  295. body #test-canvas {
  296. position: fixed;
  297. top: 500vh;
  298. }
  299. .switch {
  300. height: 24pt;
  301. }
  302. .switch input {
  303. transform: scale(2);
  304. }
  305. .top-name {
  306. display: none;
  307. text-align: center;
  308. position: fixed;
  309. max-width: 150px;
  310. height: 50px;
  311. transform: translate(-50%, 20pt);
  312. z-index: 1001;
  313. }
  314. body.toggle-top-name .top-name.top-name-needed {
  315. display: block;
  316. }
  317. .top-name::after {
  318. display: block;
  319. background-image: url("./media/ui/arrow.svg");
  320. width: 70px;
  321. height: 70px;
  322. background-size: 70px 70px;
  323. background-repeat: no-repeat;
  324. content: "";
  325. transform: translate(0, -120%);
  326. }
  327. .bottom-name {
  328. display: none;
  329. text-align: center;
  330. position: fixed;
  331. width: 150px;
  332. height: 50px;
  333. z-index: 10001;
  334. transform: translate(-50%, 0pt);
  335. }
  336. body.toggle-bottom-name .bottom-name {
  337. display: inline;
  338. }
  339. #menubar select {
  340. font-size: 16pt;
  341. max-width: 200pt;
  342. min-width: 120pt;
  343. height: 40pt;
  344. max-height: 180pt;
  345. overflow: hidden;
  346. white-space: pre-wrap;
  347. word-break: normal;
  348. text-overflow: ellipsis;
  349. }
  350. #menubar button {
  351. position: relative;
  352. font-size: 32pt;
  353. height: 40pt;
  354. z-index: 1;
  355. }
  356. #open-help {
  357. padding-top: 1pt;
  358. }
  359. #open-help.highlighted::after {
  360. position: absolute;
  361. top: 0;
  362. left: 0;
  363. content: " ";
  364. display: block;
  365. height: 100%;
  366. width: 100%;
  367. background: inherit;
  368. filter: drop-shadow(0px 0px 10px white) drop-shadow(0px 0px 10px white);
  369. z-index: -1;
  370. animation: pulsing 5s linear 0s infinite;
  371. }
  372. @keyframes pulsing {
  373. 0% {
  374. opacity: 100%;
  375. }
  376. 50% {
  377. opacity: 25%;
  378. }
  379. 100% {
  380. opacity: 100%;
  381. }
  382. }
  383. a {
  384. color: #999;
  385. }
  386. #options-attribution-authors {
  387. text-align: center;
  388. }
  389. #options-attribution-owners {
  390. text-align: center;
  391. }
  392. #options-attribution-source {
  393. text-align: center;
  394. }
  395. .no-transition {
  396. transition: 0s !important;
  397. }
  398. .corner-ribbon {
  399. width: 200px;
  400. background: #e43;
  401. position: fixed;
  402. top: 25px;
  403. left: -50px;
  404. text-align: center;
  405. padding: 10px;
  406. letter-spacing: 1px;
  407. color: #f0f0f0;
  408. transform: rotate(-45deg);
  409. -webkit-transform: rotate(-45deg);
  410. }
  411. .corner-ribbon.bottom-right{
  412. top: auto;
  413. right: -50px;
  414. bottom: 25px;
  415. left: auto;
  416. transform: rotate(-45deg);
  417. -webkit-transform: rotate(-45deg);
  418. }
  419. a.corner-ribbon {
  420. text-decoration: none;
  421. }
  422. input[type=checkbox] {
  423. transform: scale(2);
  424. margin-left: 10px;
  425. margin-right: 10px;
  426. }
  427. input ~ label {
  428. user-select: none;
  429. }
  430. body.toggle-height-bars .height-bar,
  431. .entity-box.selected .height-bar {
  432. display: block;
  433. }
  434. .height-bar {
  435. display: none;
  436. min-width: calc(var(--xpos));
  437. min-height: 3px;
  438. height: 3px;
  439. position: absolute;
  440. opacity: 50%;
  441. background: repeating-linear-gradient(90deg, #ffffff, #ffffff 20px, #ffffff00 20px, #ffffff00 40px);
  442. top: calc(-100% + var(--extra));
  443. left: calc(-1 * var(--xpos));
  444. transition: 0s all;
  445. z-index: -1;
  446. }
  447. .height-bar::before {
  448. display: block;
  449. background: gray;
  450. position: absolute;
  451. content: var(--entity-height);
  452. transition: 0s all;
  453. }
  454. .height-bar::after {
  455. display: block;
  456. min-width: 24px;
  457. min-height: 3px;
  458. background: #ffffff;
  459. position: absolute;
  460. left: calc(var(--xpos) - 24px);
  461. transition: 0s all;
  462. content: "";
  463. }
  464. .sr-only {
  465. position: absolute;
  466. width: 1px;
  467. height: 1px;
  468. padding: 0;
  469. margin: -1px;
  470. overflow: hidden;
  471. clip: rect(0,0,0,0);
  472. border: 0;
  473. }
  474. .bottom-cover {
  475. display: none;
  476. position: absolute;
  477. width: 100%;
  478. height: 10vh;
  479. left: 0%;
  480. top: calc(100% - 51px);
  481. background: black;
  482. }
  483. body.toggle-bottom-cover .bottom-cover {
  484. display: inline-block;
  485. }
  486. .transitions {
  487. transition: 0.2s all;
  488. }
  489. .rotate-forward {
  490. transform: rotate(-90deg);
  491. }
  492. .rotate-backward {
  493. transform: rotate(90deg);
  494. }
  495. .flipped {
  496. transform: rotate(180deg);
  497. }
  498. i.fas
  499. i.far {
  500. pointer-events: none;
  501. }
  502. #help-icons {
  503. display: flex;
  504. flex-direction: column;
  505. flex-wrap: wrap;
  506. width: 50vw;
  507. }
  508. #help-icons > div {
  509. flex-basis: 25%;
  510. font-size: 150%;
  511. }
  512. #entity-view {
  513. text-align: center;
  514. font-weight: bold;
  515. font-size: 200%;
  516. }
  517. #spawners > select,
  518. #spawners > button,
  519. #filters > select,
  520. #filters > button {
  521. display: none;
  522. }
  523. #spawners > select#category-picker,
  524. #filters > select#filter-picker {
  525. display: block;
  526. }
  527. #spawners > select.category-visible,
  528. #spawners > select.category-visible + button,
  529. #filters > select.category-visible,
  530. #filters > select.category-visible + button {
  531. display: block;
  532. }
  533. option.filtered {
  534. display: none;
  535. }
  536. #spawners > select {
  537. font-size: 24pt;
  538. }
  539. #spawners > button {
  540. font-size: 30pt;
  541. }
  542. #spawners-categories {
  543. font-size: 24pt;
  544. }
  545. .scroll-button {
  546. position: absolute;
  547. height: 20%;
  548. width: 50px;
  549. font-size: 40px;
  550. background: #ffffff33;
  551. border: 0px;
  552. z-index: 1002;
  553. }
  554. .scroll-button:active {
  555. background: #ffffff66;
  556. }
  557. .scroll-button:hover {
  558. background: #ffffff44;
  559. }
  560. .scroll-button:disabled {
  561. background: #ffffff11;
  562. }
  563. #zoom-out {
  564. left: 0%;
  565. top: 0%;
  566. }
  567. #zoom-in {
  568. right: 0%;
  569. top: 0%;
  570. }
  571. #scroll-left {
  572. left: 0%;
  573. top: 20%;
  574. }
  575. #scroll-right {
  576. right: 0%;
  577. top: 20%;
  578. }
  579. #scroll-up {
  580. left: 0%;
  581. top: 40%;
  582. }
  583. #scroll-down {
  584. right: 0%;
  585. top: 40%;
  586. }
  587. #shrink {
  588. left: 0%;
  589. top: 60%;
  590. }
  591. #grow {
  592. right: 0%;
  593. top: 60%;
  594. }
  595. #fit {
  596. right: 0%;
  597. top: 80%;
  598. }
  599. #toggle-menu {
  600. padding-top: 2pt;
  601. position: relative;
  602. }
  603. .popout-menu {
  604. display: none;
  605. flex-direction: column;
  606. flex-wrap: nowrap;
  607. overflow-y: scroll;
  608. max-height: 80vh;
  609. justify-content: end;
  610. position: fixed;
  611. top: 10%;
  612. left: 10%;
  613. z-index: 10000;
  614. background: #222;
  615. border-color: #333;
  616. border-width: 5px;
  617. border-style: solid;
  618. }
  619. .popout-menu::-webkit-scrollbar {
  620. height: 2px;
  621. }
  622. .popout-menu::-webkit-scrollbar-button {
  623. width: 0px;
  624. height: 0px;
  625. }
  626. .popout-menu::-webkit-scrollbar-thumb {
  627. background: #e1e1e1;
  628. border: 0px none #ffffff;
  629. border-radius: 50px;
  630. }
  631. .popout-menu::-webkit-scrollbar-thumb:hover {
  632. background: #ffffff;
  633. }
  634. .popout-menu::-webkit-scrollbar-thumb:active {
  635. background: #000000;
  636. }
  637. .popout-menu::-webkit-scrollbar-track {
  638. background: #00000000;
  639. border: 0px none #ffffff;
  640. border-radius: 50px;
  641. }
  642. .popout-menu::-webkit-scrollbar-track:hover {
  643. background: #666666;
  644. }
  645. .popout-menu::-webkit-scrollbar-track:active {
  646. background: #333333;
  647. }
  648. .popout-menu::-webkit-scrollbar-corner {
  649. background: transparent;
  650. }
  651. .popout-menu.visible {
  652. display: flex;
  653. }
  654. .menu-button {
  655. height: 48pt;
  656. width: 56pt;
  657. font-size: 40pt;
  658. }
  659. .menu-button-holder {
  660. display: flex;
  661. align-items: center;
  662. margin: 5px 0px 5px;
  663. }
  664. .menu-text {
  665. font-size: 24pt;
  666. margin-left: 6pt;
  667. }
  668. #options-entity-defaults > button {
  669. word-break: break-word;
  670. }
  671. button {
  672. border: 3px;
  673. border-style: outset;
  674. }
  675. button:hover {
  676. background: #555;
  677. }
  678. button:enabled:active {
  679. border-style: inset;
  680. background: #aaa;
  681. }
  682. .toast {
  683. position: absolute;
  684. bottom: 10%;
  685. left: 50%;
  686. animation-name: toast-animation;
  687. animation-duration: 5s;
  688. animation-timing-function: linear;
  689. z-index: 1001;
  690. }
  691. @keyframes toast-animation {
  692. 0% {
  693. transform: translate(-50%, 0);
  694. opacity: 1;
  695. }
  696. 50% {
  697. transform: translate(-50%, -10vh);
  698. opacity: 1;
  699. }
  700. 100% {
  701. transform: translate(-50%, -20vh);
  702. opacity: 0;
  703. }
  704. }
  705. #help-menu *::-webkit-scrollbar {
  706. height: 2px;
  707. }
  708. #help-menu *::-webkit-scrollbar-button {
  709. width: 0px;
  710. height: 0px;
  711. }
  712. #help-menu *::-webkit-scrollbar-thumb {
  713. background: #e1e1e1;
  714. border: 0px none #ffffff;
  715. border-radius: 50px;
  716. }
  717. #help-menu *::-webkit-scrollbar-thumb:hover {
  718. background: #ffffff;
  719. }
  720. #help-menu *::-webkit-scrollbar-thumb:active {
  721. background: #000000;
  722. }
  723. #help-menu *::-webkit-scrollbar-track {
  724. background: #00000000;
  725. border: 0px none #ffffff;
  726. border-radius: 50px;
  727. }
  728. #help-menu *::-webkit-scrollbar-track:hover {
  729. background: #666666;
  730. }
  731. #help-menu *::-webkit-scrollbar-track:active {
  732. background: #333333;
  733. }
  734. #help-menu *::-webkit-scrollbar-corner {
  735. background: transparent;
  736. }
  737. #help-menu {
  738. display: none;
  739. position: absolute;
  740. width: 100vw;
  741. height: 100vh;
  742. z-index: 100001;
  743. overflow-x: hidden;
  744. }
  745. #help-menu.visible {
  746. display: flex;
  747. }
  748. #table-of-contents-holder {
  749. flex: 1 1 30%;
  750. padding: 15px;
  751. background: #111;
  752. overflow-y: auto;
  753. }
  754. #table-of-contents {
  755. line-height: 2;
  756. }
  757. #table-of-contents li {
  758. font-size: 150%;
  759. user-select: none;
  760. }
  761. #table-of-contents li:hover {
  762. color: #ccc;
  763. }
  764. #table-of-contents button {
  765. position: relative;
  766. width: 50pt;
  767. height: 50pt;
  768. font-size: 40pt;
  769. }
  770. #table-of-contents button i {
  771. position: absolute;
  772. top: 50%;
  773. left: 50%;
  774. transform: translate(-50%, -50%);
  775. }
  776. #help-contents-holder {
  777. flex: 1 1 70%;
  778. background: #333;
  779. padding: 25px;
  780. overflow-y: auto;
  781. }
  782. #help-contents > h2 {
  783. font-size: 250%;
  784. }
  785. #help-contents > h2 {
  786. margin-bottom: 16pt;
  787. }
  788. #help-contents > h2:nth-child(1n+2) {
  789. margin-top: 32pt;
  790. }
  791. #help-contents p {
  792. text-indent: 20pt;
  793. max-width: 60em;
  794. line-height: 1.4em;
  795. width: 80%;
  796. margin-bottom: 8pt;
  797. margin-top: 8pt;
  798. }
  799. #help-contents i.fas {
  800. text-indent: 0pt;
  801. margin-left: 2pt;
  802. margin-right: 2pt;
  803. }
  804. #help-contents ul {
  805. list-style: circle;
  806. line-height: 1.4;
  807. }
  808. #help-contents b {
  809. font-weight: bolder;
  810. }
  811. #help-contents li {
  812. margin-left: 2em;
  813. }
  814. #help-contents img {
  815. display: block;
  816. width: 80%;
  817. max-width: 60em;
  818. height: 60pt;
  819. }
  820. .nsfw {
  821. color: red;
  822. font-style: bold;
  823. }
  824. select {
  825. background: #111;
  826. color: #eee;
  827. border-color: #444;
  828. }
  829. select > option {
  830. color: #eee;
  831. }
  832. button:focus,
  833. select:focus,
  834. input:focus {
  835. outline-color: #eee;
  836. }
  837. input {
  838. background: #111;
  839. color: #eee;
  840. border-color: #444;
  841. }
  842. button {
  843. background: #111;
  844. color: #ddd;
  845. border-color: #666;
  846. }
  847. .settings-holder {
  848. display: flex;
  849. align-items: center;
  850. padding: 10px 0px 10px;
  851. border-color: #222;
  852. border-width: 5px;
  853. border-style: solid;
  854. max-width: 240pt;
  855. }
  856. .settings-holder.enabled {
  857. background: green;
  858. border-color: darkgreen;
  859. }
  860. .settings-desc {
  861. text-align: right;
  862. margin-right: 8pt;
  863. }
  864. .settings-holder.disabled {
  865. background: gray;
  866. border-color: darkslategray;
  867. }
  868. .settings-name {
  869. font-size: 200%;
  870. margin-right: 16pt;
  871. }
  872. .filter-button > i {
  873. color: gray;
  874. }
  875. .button-counter {
  876. position: absolute;
  877. color: white;
  878. opacity: 0.75;
  879. width: 25%;
  880. height: 25%;
  881. font-size: 16pt;
  882. top: 0%;
  883. left: 0%;
  884. z-index: 1;
  885. user-select: none;
  886. }