less copy protection, more size visualization
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

896 rindas
14 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::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) 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. padding-top: 2pt;
  520. display: none;
  521. }
  522. #spawners > select#category-picker {
  523. display: block;
  524. }
  525. #spawners > select.category-visible,
  526. #spawners > select.category-visible + button {
  527. display: block;
  528. }
  529. #spawners > select {
  530. font-size: 24pt;
  531. }
  532. #spawners > button {
  533. font-size: 30pt;
  534. }
  535. #spawners-categories {
  536. font-size: 24pt;
  537. }
  538. .scroll-button {
  539. position: absolute;
  540. height: 25%;
  541. width: 50px;
  542. font-size: 40px;
  543. background: #ffffff33;
  544. border: 0px;
  545. z-index: 1002;
  546. }
  547. .scroll-button:active {
  548. background: #ffffff66;
  549. }
  550. .scroll-button:hover {
  551. background: #ffffff44;
  552. }
  553. .scroll-button:disabled {
  554. background: #ffffff11;
  555. }
  556. #zoom-out {
  557. left: 0%;
  558. top: 0%;
  559. }
  560. #zoom-in {
  561. right: 0%;
  562. top: 0%;
  563. }
  564. #scroll-left {
  565. left: 0%;
  566. top: 25%;
  567. }
  568. #scroll-right {
  569. right: 0%;
  570. top: 25%;
  571. }
  572. #shrink {
  573. left: 0%;
  574. top: 50%;
  575. }
  576. #grow {
  577. right: 0%;
  578. top: 50%;
  579. }
  580. #fit {
  581. right: 0%;
  582. top: 75%;
  583. }
  584. #toggle-menu {
  585. padding-top: 2pt;
  586. position: relative;
  587. }
  588. #popout-menu {
  589. display: none;
  590. flex-direction: column;
  591. flex-wrap: wrap;
  592. height: 80vh;
  593. justify-content: space-around;
  594. position: fixed;
  595. top: 10%;
  596. left: 10%;
  597. z-index: 10000;
  598. background: #111;
  599. }
  600. #popout-menu.visible {
  601. display: flex;
  602. }
  603. .menu-button {
  604. height: 48pt;
  605. width: 56pt;
  606. font-size: 40pt;
  607. }
  608. .menu-button-holder {
  609. display: flex;
  610. align-items: center;
  611. }
  612. .menu-text {
  613. font-size: 24pt;
  614. margin-left: 6pt;
  615. }
  616. #options-entity-defaults > button {
  617. word-break: break-word;
  618. }
  619. button {
  620. border: 3px;
  621. border-style: outset;
  622. border-color: gray;
  623. padding: 5px;
  624. background: #eee;
  625. }
  626. button:hover {
  627. background: #ccc;
  628. }
  629. button:enabled:active {
  630. border-style: inset;
  631. background: #aaa;
  632. }
  633. .toast {
  634. position: absolute;
  635. bottom: 10%;
  636. left: 50%;
  637. animation-name: toast-animation;
  638. animation-duration: 5s;
  639. animation-timing-function: linear;
  640. z-index: 1001;
  641. }
  642. @keyframes toast-animation {
  643. 0% {
  644. transform: translate(-50%, 0);
  645. opacity: 1;
  646. }
  647. 50% {
  648. transform: translate(-50%, -10vh);
  649. opacity: 1;
  650. }
  651. 100% {
  652. transform: translate(-50%, -20vh);
  653. opacity: 0;
  654. }
  655. }
  656. #help-menu *::-webkit-scrollbar {
  657. height: 2px;
  658. }
  659. #help-menu *::-webkit-scrollbar-button {
  660. width: 0px;
  661. height: 0px;
  662. }
  663. #help-menu *::-webkit-scrollbar-thumb {
  664. background: #e1e1e1;
  665. border: 0px none #ffffff;
  666. border-radius: 50px;
  667. }
  668. #help-menu *::-webkit-scrollbar-thumb:hover {
  669. background: #ffffff;
  670. }
  671. #help-menu *::-webkit-scrollbar-thumb:active {
  672. background: #000000;
  673. }
  674. #help-menu *::-webkit-scrollbar-track {
  675. background: #00000000;
  676. border: 0px none #ffffff;
  677. border-radius: 50px;
  678. }
  679. #help-menu *::-webkit-scrollbar-track:hover {
  680. background: #666666;
  681. }
  682. #help-menu *::-webkit-scrollbar-track:active {
  683. background: #333333;
  684. }
  685. #help-menu *::-webkit-scrollbar-corner {
  686. background: transparent;
  687. }
  688. #help-menu {
  689. display: none;
  690. position: absolute;
  691. width: 100vw;
  692. height: 100vh;
  693. z-index: 100001;
  694. overflow-x: hidden;
  695. }
  696. #help-menu.visible {
  697. display: flex;
  698. }
  699. #table-of-contents-holder {
  700. flex: 1 1 30%;
  701. padding: 15px;
  702. background: #111;
  703. overflow-y: auto;
  704. }
  705. #table-of-contents {
  706. line-height: 2;
  707. }
  708. #table-of-contents li {
  709. font-size: 150%;
  710. user-select: none;
  711. }
  712. #table-of-contents li:hover {
  713. color: #ccc;
  714. }
  715. #table-of-contents button {
  716. position: relative;
  717. width: 50pt;
  718. height: 50pt;
  719. font-size: 40pt;
  720. }
  721. #table-of-contents button i {
  722. position: absolute;
  723. top: 50%;
  724. left: 50%;
  725. transform: translate(-50%, -50%);
  726. }
  727. #help-contents-holder {
  728. flex: 1 1 70%;
  729. background: #333;
  730. padding: 25px;
  731. overflow-y: auto;
  732. }
  733. #help-contents > h2 {
  734. font-size: 250%;
  735. }
  736. #help-contents > h2 {
  737. margin-bottom: 16pt;
  738. }
  739. #help-contents > h2:nth-child(1n+2) {
  740. margin-top: 32pt;
  741. }
  742. #help-contents p {
  743. text-indent: 20pt;
  744. max-width: 60em;
  745. line-height: 1.4em;
  746. width: 80%;
  747. margin-bottom: 8pt;
  748. margin-top: 8pt;
  749. }
  750. #help-contents i.fas {
  751. text-indent: 0pt;
  752. margin-left: 2pt;
  753. margin-right: 2pt;
  754. }
  755. #help-contents ul {
  756. list-style: circle;
  757. line-height: 1.4;
  758. }
  759. #help-contents b {
  760. font-weight: bolder;
  761. }
  762. #help-contents li {
  763. margin-left: 2em;
  764. }
  765. #help-contents img {
  766. display: block;
  767. width: 80%;
  768. max-width: 60em;
  769. height: 60pt;
  770. }