less copy protection, more size visualization
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

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