less copy protection, more size visualization
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

809 lines
13 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: 349539534;
  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::before {
  360. position: absolute;
  361. top: 0;
  362. left: 0;
  363. content: " ";
  364. display: block;
  365. height: 100%;
  366. width: 100%;
  367. background: white;
  368. filter: 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. #help {
  384. display: none;
  385. flex-direction: column;
  386. justify-content: space-evenly;
  387. align-items: center;
  388. position: absolute;
  389. width: 60vw;
  390. height: 60vh;
  391. margin: 0pt;
  392. padding-top: 20vh;
  393. padding-bottom: 20vh;
  394. padding-left: 20vw;
  395. padding-right: 20vw;
  396. text-align: center;
  397. background: #333;
  398. opacity: 0;
  399. z-index: 9999999;
  400. backdrop-filter: blur(5px);
  401. }
  402. #help.visible {
  403. display: flex;
  404. opacity: 0.9;
  405. justify-content: center;
  406. }
  407. #help h1 {
  408. font-size: 150%;
  409. }
  410. #help p {
  411. font-size: 125%;
  412. }
  413. #help ul {
  414. text-align: left;
  415. list-style: circle;
  416. width: 75%;
  417. }
  418. #help li {
  419. padding: 10px;
  420. }
  421. #help button {
  422. height: 10vh;
  423. font-size: 9vh;
  424. }
  425. a {
  426. color: #999;
  427. }
  428. #options-attribution-authors {
  429. text-align: center;
  430. }
  431. #options-attribution-owners {
  432. text-align: center;
  433. }
  434. #options-attribution-source {
  435. text-align: center;
  436. }
  437. .no-transition {
  438. transition: 0s !important;
  439. }
  440. .corner-ribbon {
  441. width: 200px;
  442. background: #e43;
  443. position: fixed;
  444. top: 25px;
  445. left: -50px;
  446. text-align: center;
  447. padding: 10px;
  448. letter-spacing: 1px;
  449. color: #f0f0f0;
  450. transform: rotate(-45deg);
  451. -webkit-transform: rotate(-45deg);
  452. }
  453. .corner-ribbon.bottom-right{
  454. top: auto;
  455. right: -50px;
  456. bottom: 25px;
  457. left: auto;
  458. transform: rotate(-45deg);
  459. -webkit-transform: rotate(-45deg);
  460. }
  461. a.corner-ribbon {
  462. text-decoration: none;
  463. }
  464. input[type=checkbox] {
  465. transform: scale(2);
  466. margin-left: 10px;
  467. margin-right: 10px;
  468. }
  469. input ~ label {
  470. user-select: none;
  471. }
  472. body.toggle-height-bars .height-bar,
  473. .entity-box.selected .height-bar {
  474. display: block;
  475. }
  476. .height-bar {
  477. display: none;
  478. min-width: calc(var(--xpos));
  479. min-height: 3px;
  480. height: 3px;
  481. position: absolute;
  482. opacity: 50%;
  483. background: repeating-linear-gradient(90deg, #ffffff, #ffffff 20px, #ffffff00 20px, #ffffff00 40px);
  484. top: calc(-100% + var(--extra));
  485. left: calc(-1 * var(--xpos));
  486. transition: 0s all;
  487. z-index: -1;
  488. }
  489. .height-bar::before {
  490. display: block;
  491. background: gray;
  492. position: absolute;
  493. content: var(--entity-height);
  494. transition: 0s all;
  495. }
  496. .height-bar::after {
  497. display: block;
  498. min-width: 24px;
  499. min-height: 3px;
  500. background: #ffffff;
  501. position: absolute;
  502. left: calc(var(--xpos) - 24px);
  503. transition: 0s all;
  504. content: "";
  505. }
  506. .sr-only {
  507. position: absolute;
  508. width: 1px;
  509. height: 1px;
  510. padding: 0;
  511. margin: -1px;
  512. overflow: hidden;
  513. clip: rect(0,0,0,0);
  514. border: 0;
  515. }
  516. .bottom-cover {
  517. display: none;
  518. position: absolute;
  519. width: 100%;
  520. height: 10vh;
  521. left: 0%;
  522. top: calc(100% - 51px);
  523. background: black;
  524. }
  525. body.toggle-bottom-cover .bottom-cover {
  526. display: inline-block;
  527. }
  528. .transitions {
  529. transition: 0.2s all;
  530. }
  531. .rotate-forward {
  532. transform: rotate(-90deg);
  533. }
  534. .rotate-backward {
  535. transform: rotate(90deg);
  536. }
  537. i.fas
  538. i.far {
  539. pointer-events: none;
  540. }
  541. #help-icons {
  542. display: flex;
  543. flex-direction: column;
  544. flex-wrap: wrap;
  545. width: 50vw;
  546. }
  547. #help-icons > div {
  548. flex-basis: 25%;
  549. font-size: 150%;
  550. }
  551. #entity-view {
  552. text-align: center;
  553. font-weight: bold;
  554. font-size: 200%;
  555. }
  556. #spawners > select,
  557. #spawners > button {
  558. padding-top: 2pt;
  559. display: none;
  560. }
  561. #spawners > select#category-picker {
  562. display: block;
  563. }
  564. #spawners > select.category-visible,
  565. #spawners > select.category-visible + button {
  566. display: block;
  567. }
  568. #spawners > select {
  569. font-size: 24pt;
  570. }
  571. #spawners > button {
  572. font-size: 30pt;
  573. }
  574. #spawners-categories {
  575. font-size: 24pt;
  576. }
  577. .scroll-button {
  578. position: absolute;
  579. height: 25%;
  580. width: 50px;
  581. font-size: 40px;
  582. background: #ffffff33;
  583. border: 0px;
  584. z-index: 1002;
  585. }
  586. .scroll-button:active {
  587. background: #ffffff66;
  588. }
  589. .scroll-button:hover {
  590. background: #ffffff44;
  591. }
  592. .scroll-button:disabled {
  593. background: #ffffff11;
  594. }
  595. #zoom-out {
  596. left: 0%;
  597. top: 0%;
  598. }
  599. #zoom-in {
  600. right: 0%;
  601. top: 0%;
  602. }
  603. #scroll-left {
  604. left: 0%;
  605. top: 25%;
  606. }
  607. #scroll-right {
  608. right: 0%;
  609. top: 25%;
  610. }
  611. #shrink {
  612. left: 0%;
  613. top: 50%;
  614. }
  615. #grow {
  616. right: 0%;
  617. top: 50%;
  618. }
  619. #fit {
  620. right: 0%;
  621. top: 75%;
  622. }
  623. #toggle-menu {
  624. padding-top: 2pt;
  625. position: relative;
  626. }
  627. #popout-menu {
  628. display: none;
  629. flex-direction: column;
  630. flex-wrap: wrap;
  631. height: 80vh;
  632. justify-content: space-around;
  633. position: fixed;
  634. top: 10%;
  635. left: 10%;
  636. z-index: 10000;
  637. background: #111;
  638. }
  639. #popout-menu.visible {
  640. display: flex;
  641. }
  642. .menu-button {
  643. height: 48pt;
  644. width: 56pt;
  645. font-size: 40pt;
  646. }
  647. .menu-button-holder {
  648. display: flex;
  649. align-items: center;
  650. }
  651. .menu-text {
  652. font-size: 24pt;
  653. margin-left: 6pt;
  654. }
  655. #options-entity-defaults > button {
  656. word-break: break-word;
  657. }
  658. button {
  659. border: 3px;
  660. border-style: outset;
  661. border-color: gray;
  662. padding: 5px;
  663. background: #eee;
  664. }
  665. button:hover {
  666. background: #ccc;
  667. }
  668. button:enabled:active {
  669. border-style: inset;
  670. background: #aaa;
  671. }
  672. .toast {
  673. position: absolute;
  674. bottom: 10%;
  675. left: 50%;
  676. animation-name: toast-animation;
  677. animation-duration: 5s;
  678. animation-timing-function: linear;
  679. z-index: 1001;
  680. }
  681. @keyframes toast-animation {
  682. 0% {
  683. transform: translate(-50%, 0);
  684. opacity: 1;
  685. }
  686. 50% {
  687. transform: translate(-50%, -10vh);
  688. opacity: 1;
  689. }
  690. 100% {
  691. transform: translate(-50%, -20vh);
  692. opacity: 0;
  693. }
  694. }