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.
 
 
 

699 lines
12 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. position: absolute;
  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: 140pt;
  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. justify-content: center;
  222. align-items: center;
  223. }
  224. .menu-item {
  225. font-size: 24px;
  226. color: #ccc;
  227. margin: 20px;
  228. }
  229. select.menu-item {
  230. color: #000;
  231. }
  232. #display {
  233. display: none;
  234. width: 100%;
  235. height: 100%;
  236. background: #333;
  237. }
  238. body.toggle-scale #display {
  239. display: block;
  240. }
  241. #options .options-label,
  242. #options .options-banner {
  243. flex: 0 1;
  244. width: 100%;
  245. font-size: 150%;
  246. }
  247. .options-row .options-field-numeric {
  248. flex: 1 1 100%;
  249. max-width: 90%;
  250. font-size: 150%;
  251. }
  252. .options-row .options-field-text {
  253. flex: 1 0 90%;
  254. max-width: 90%;
  255. font-size: 150%;
  256. }
  257. .options-row .options-field-unit {
  258. flex: 1 1 10%;
  259. max-width: 90%;
  260. font-size: 150%;
  261. }
  262. .options-row .options-field-picker {
  263. flex: 1;
  264. width: 100%;
  265. min-width: 90%;
  266. max-width: 90%;
  267. font-size: 150%;
  268. overflow: hidden;
  269. white-space: pre-wrap;
  270. word-break: normal;
  271. text-overflow: ellipsis;
  272. }
  273. .options-row .symbol-button {
  274. height: 75px;
  275. width: 75px;
  276. font-size: 70px;
  277. }
  278. .options-row .options-button {
  279. flex: 1;
  280. width: 100%;
  281. font-size: 150%;
  282. }
  283. .options-block .options-button {
  284. flex: 1;
  285. width: 100%;
  286. font-size: 150%;
  287. }
  288. .options-row label {
  289. flex: 1;
  290. width: 100%;
  291. font-size: 150%;
  292. }
  293. body #test-canvas {
  294. position: fixed;
  295. top: 500vh;
  296. }
  297. .switch {
  298. height: 24pt;
  299. }
  300. .switch input {
  301. transform: scale(2);
  302. }
  303. .top-name {
  304. display: none;
  305. text-align: center;
  306. position: fixed;
  307. max-width: 150px;
  308. height: 50px;
  309. transform: translate(-50%, 20pt);
  310. z-index: 1001;
  311. }
  312. body.toggle-top-name .top-name.top-name-needed {
  313. display: block;
  314. }
  315. .top-name::after {
  316. display: block;
  317. background-image: url("./media/ui/arrow.svg");
  318. width: 70px;
  319. height: 70px;
  320. background-size: 70px 70px;
  321. background-repeat: no-repeat;
  322. content: "";
  323. transform: translate(0, -120%);
  324. }
  325. .bottom-name {
  326. display: none;
  327. text-align: center;
  328. position: fixed;
  329. width: 150px;
  330. height: 50px;
  331. z-index: 349539534;
  332. transform: translate(-50%, 0pt);
  333. }
  334. body.toggle-bottom-name .bottom-name {
  335. display: inline;
  336. }
  337. #menubar select {
  338. font-size: 16pt;
  339. max-width: 200pt;
  340. min-width: 120pt;
  341. height: 40pt;
  342. max-height: 180pt;
  343. overflow: hidden;
  344. white-space: pre-wrap;
  345. word-break: normal;
  346. text-overflow: ellipsis;
  347. }
  348. #menubar button {
  349. position: relative;
  350. font-size: 32pt;
  351. height: 40pt;
  352. z-index: 1;
  353. }
  354. #open-help.highlighted::before {
  355. position: absolute;
  356. top: 0;
  357. left: 0;
  358. content: " ";
  359. display: block;
  360. height: 100%;
  361. width: 100%;
  362. background: white;
  363. filter: drop-shadow(0px 0px 10px white);
  364. z-index: -1;
  365. animation: pulsing 5s linear 0s infinite;
  366. }
  367. @keyframes pulsing {
  368. 0% {
  369. opacity: 100%;
  370. }
  371. 50% {
  372. opacity: 25%;
  373. }
  374. 100% {
  375. opacity: 100%;
  376. }
  377. }
  378. #help {
  379. display: none;
  380. flex-direction: column;
  381. justify-content: space-evenly;
  382. align-items: center;
  383. position: absolute;
  384. width: 60vw;
  385. height: 60vh;
  386. margin: 0pt;
  387. padding-top: 20vh;
  388. padding-bottom: 20vh;
  389. padding-left: 20vw;
  390. padding-right: 20vw;
  391. text-align: center;
  392. background: #333;
  393. opacity: 0;
  394. z-index: 9999999;
  395. backdrop-filter: blur(5px);
  396. }
  397. #help.visible {
  398. display: flex;
  399. opacity: 0.9;
  400. justify-content: center;
  401. }
  402. #help h1 {
  403. font-size: 150%;
  404. }
  405. #help p {
  406. font-size: 125%;
  407. }
  408. #help ul {
  409. text-align: left;
  410. list-style: circle;
  411. width: 75vw;
  412. }
  413. #help li {
  414. padding: 10px;
  415. }
  416. #help button {
  417. height: 10vh;
  418. font-size: 9vh;
  419. }
  420. a {
  421. color: #999;
  422. }
  423. #options-attribution-authors {
  424. text-align: center;
  425. }
  426. #options-attribution-owners {
  427. text-align: center;
  428. }
  429. #options-attribution-source {
  430. text-align: center;
  431. }
  432. .floating-slider {
  433. display: none;
  434. position: absolute;
  435. z-index: 1000;
  436. width: 250px;
  437. height: 50px;
  438. transform: translate(-50%, 0) scale(1.5);;
  439. }
  440. body.toggle-scale-sliders .floating-slider {
  441. display: block;
  442. }
  443. #slider-scale {
  444. top: 5%;
  445. left: 50%;
  446. }
  447. #slider-scale:before {
  448. content: "World scale";
  449. position: absolute;
  450. left: 50%;
  451. transform: translate(-50%, 0%);
  452. font-size: 20px;
  453. }
  454. #slider-entity-scale {
  455. top: 15%;
  456. left: 50%;
  457. }
  458. #slider-entity-scale:before {
  459. content: "Entity scale";
  460. position: absolute;
  461. left: 50%;
  462. transform: translate(-50%, 0%);
  463. font-size: 20px;
  464. }
  465. .no-transition {
  466. transition: 0s !important;
  467. }
  468. .corner-ribbon {
  469. width: 200px;
  470. background: #e43;
  471. position: fixed;
  472. top: 25px;
  473. left: -50px;
  474. text-align: center;
  475. padding: 10px;
  476. letter-spacing: 1px;
  477. color: #f0f0f0;
  478. transform: rotate(-45deg);
  479. -webkit-transform: rotate(-45deg);
  480. }
  481. .corner-ribbon.bottom-right{
  482. top: auto;
  483. right: -50px;
  484. bottom: 25px;
  485. left: auto;
  486. transform: rotate(-45deg);
  487. -webkit-transform: rotate(-45deg);
  488. }
  489. a.corner-ribbon {
  490. text-decoration: none;
  491. }
  492. input[type=checkbox] {
  493. transform: scale(2);
  494. margin-left: 10px;
  495. margin-right: 10px;
  496. }
  497. input ~ label {
  498. user-select: none;
  499. }
  500. body.toggle-height-bars .height-bar,
  501. .entity-box.selected .height-bar {
  502. display: block;
  503. }
  504. .height-bar {
  505. display: none;
  506. min-width: calc(var(--xpos));
  507. min-height: 3px;
  508. height: 3px;
  509. position: absolute;
  510. opacity: 50%;
  511. background: repeating-linear-gradient(90deg, #ffffff, #ffffff 20px, #ffffff00 20px, #ffffff00 40px);
  512. top: calc(-100% + var(--extra));
  513. left: calc(-1 * var(--xpos));
  514. transition: 0s all;
  515. z-index: -1;
  516. }
  517. .height-bar::before {
  518. display: block;
  519. background: gray;
  520. position: absolute;
  521. content: var(--entity-height);
  522. transition: 0s all;
  523. }
  524. .height-bar::after {
  525. display: block;
  526. min-width: 24px;
  527. min-height: 3px;
  528. background: #ffffff;
  529. position: absolute;
  530. left: calc(var(--xpos) - 24px);
  531. transition: 0s all;
  532. content: "";
  533. }
  534. .sr-only {
  535. position: absolute;
  536. width: 1px;
  537. height: 1px;
  538. padding: 0;
  539. margin: -1px;
  540. overflow: hidden;
  541. clip: rect(0,0,0,0);
  542. border: 0;
  543. }
  544. .bottom-cover {
  545. display: none;
  546. position: absolute;
  547. width: 100%;
  548. height: 10vh;
  549. left: 0%;
  550. top: calc(100% - 51px);
  551. background: black;
  552. }
  553. body.toggle-bottom-cover .bottom-cover {
  554. display: inline-block;
  555. }
  556. .transitions {
  557. transition: 0.2s all;
  558. }
  559. .rotate-forward {
  560. transform: rotate(-90deg);
  561. }
  562. .rotate-backward {
  563. transform: rotate(90deg);
  564. }
  565. i.fas
  566. i.far {
  567. pointer-events: none;
  568. }
  569. #help-icons {
  570. display: flex;
  571. flex-direction: column;
  572. flex-wrap: wrap;
  573. width: 50vw;
  574. }
  575. #help-icons > div {
  576. flex-basis: 25%;
  577. font-size: 150%;
  578. }
  579. #entity-view {
  580. text-align: center;
  581. font-weight: bold;
  582. font-size: 200%;
  583. }
  584. #spawners-entities > select,
  585. #spawners-entities > button {
  586. display: none;
  587. }
  588. #spawners-entities > select.category-visible,
  589. #spawners-entities > select.category-visible + button {
  590. display: block;
  591. }
  592. #spawners-entities > select {
  593. font-size: 24pt;
  594. }
  595. #spawners-entities > button {
  596. font-size: 40pt;
  597. margin: 10px;
  598. }
  599. #spawners-categories {
  600. font-size: 24pt;
  601. }