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

765 行
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: 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. height: 75px;
  278. width: 75px;
  279. font-size: 70px;
  280. }
  281. .options-row .options-button {
  282. flex: 1;
  283. width: 100%;
  284. font-size: 150%;
  285. }
  286. .options-block .options-button {
  287. flex: 1;
  288. width: 100%;
  289. font-size: 150%;
  290. }
  291. .options-row label {
  292. flex: 1;
  293. width: 100%;
  294. font-size: 150%;
  295. }
  296. body #test-canvas {
  297. position: fixed;
  298. top: 500vh;
  299. }
  300. .switch {
  301. height: 24pt;
  302. }
  303. .switch input {
  304. transform: scale(2);
  305. }
  306. .top-name {
  307. display: none;
  308. text-align: center;
  309. position: fixed;
  310. max-width: 150px;
  311. height: 50px;
  312. transform: translate(-50%, 20pt);
  313. z-index: 1001;
  314. }
  315. body.toggle-top-name .top-name.top-name-needed {
  316. display: block;
  317. }
  318. .top-name::after {
  319. display: block;
  320. background-image: url("./media/ui/arrow.svg");
  321. width: 70px;
  322. height: 70px;
  323. background-size: 70px 70px;
  324. background-repeat: no-repeat;
  325. content: "";
  326. transform: translate(0, -120%);
  327. }
  328. .bottom-name {
  329. display: none;
  330. text-align: center;
  331. position: fixed;
  332. width: 150px;
  333. height: 50px;
  334. z-index: 349539534;
  335. transform: translate(-50%, 0pt);
  336. }
  337. body.toggle-bottom-name .bottom-name {
  338. display: inline;
  339. }
  340. #menubar select {
  341. font-size: 16pt;
  342. max-width: 200pt;
  343. min-width: 120pt;
  344. height: 40pt;
  345. max-height: 180pt;
  346. overflow: hidden;
  347. white-space: pre-wrap;
  348. word-break: normal;
  349. text-overflow: ellipsis;
  350. }
  351. #menubar button {
  352. position: relative;
  353. font-size: 32pt;
  354. height: 40pt;
  355. z-index: 1;
  356. }
  357. #open-help.highlighted::before {
  358. position: absolute;
  359. top: 0;
  360. left: 0;
  361. content: " ";
  362. display: block;
  363. height: 100%;
  364. width: 100%;
  365. background: white;
  366. filter: drop-shadow(0px 0px 10px white);
  367. z-index: -1;
  368. animation: pulsing 5s linear 0s infinite;
  369. }
  370. @keyframes pulsing {
  371. 0% {
  372. opacity: 100%;
  373. }
  374. 50% {
  375. opacity: 25%;
  376. }
  377. 100% {
  378. opacity: 100%;
  379. }
  380. }
  381. #help {
  382. display: none;
  383. flex-direction: column;
  384. justify-content: space-evenly;
  385. align-items: center;
  386. position: absolute;
  387. width: 60vw;
  388. height: 60vh;
  389. margin: 0pt;
  390. padding-top: 20vh;
  391. padding-bottom: 20vh;
  392. padding-left: 20vw;
  393. padding-right: 20vw;
  394. text-align: center;
  395. background: #333;
  396. opacity: 0;
  397. z-index: 9999999;
  398. backdrop-filter: blur(5px);
  399. }
  400. #help.visible {
  401. display: flex;
  402. opacity: 0.9;
  403. justify-content: center;
  404. }
  405. #help h1 {
  406. font-size: 150%;
  407. }
  408. #help p {
  409. font-size: 125%;
  410. }
  411. #help ul {
  412. text-align: left;
  413. list-style: circle;
  414. width: 75vw;
  415. }
  416. #help li {
  417. padding: 10px;
  418. }
  419. #help button {
  420. height: 10vh;
  421. font-size: 9vh;
  422. }
  423. a {
  424. color: #999;
  425. }
  426. #options-attribution-authors {
  427. text-align: center;
  428. }
  429. #options-attribution-owners {
  430. text-align: center;
  431. }
  432. #options-attribution-source {
  433. text-align: center;
  434. }
  435. .no-transition {
  436. transition: 0s !important;
  437. }
  438. .corner-ribbon {
  439. width: 200px;
  440. background: #e43;
  441. position: fixed;
  442. top: 25px;
  443. left: -50px;
  444. text-align: center;
  445. padding: 10px;
  446. letter-spacing: 1px;
  447. color: #f0f0f0;
  448. transform: rotate(-45deg);
  449. -webkit-transform: rotate(-45deg);
  450. }
  451. .corner-ribbon.bottom-right{
  452. top: auto;
  453. right: -50px;
  454. bottom: 25px;
  455. left: auto;
  456. transform: rotate(-45deg);
  457. -webkit-transform: rotate(-45deg);
  458. }
  459. a.corner-ribbon {
  460. text-decoration: none;
  461. }
  462. input[type=checkbox] {
  463. transform: scale(2);
  464. margin-left: 10px;
  465. margin-right: 10px;
  466. }
  467. input ~ label {
  468. user-select: none;
  469. }
  470. body.toggle-height-bars .height-bar,
  471. .entity-box.selected .height-bar {
  472. display: block;
  473. }
  474. .height-bar {
  475. display: none;
  476. min-width: calc(var(--xpos));
  477. min-height: 3px;
  478. height: 3px;
  479. position: absolute;
  480. opacity: 50%;
  481. background: repeating-linear-gradient(90deg, #ffffff, #ffffff 20px, #ffffff00 20px, #ffffff00 40px);
  482. top: calc(-100% + var(--extra));
  483. left: calc(-1 * var(--xpos));
  484. transition: 0s all;
  485. z-index: -1;
  486. }
  487. .height-bar::before {
  488. display: block;
  489. background: gray;
  490. position: absolute;
  491. content: var(--entity-height);
  492. transition: 0s all;
  493. }
  494. .height-bar::after {
  495. display: block;
  496. min-width: 24px;
  497. min-height: 3px;
  498. background: #ffffff;
  499. position: absolute;
  500. left: calc(var(--xpos) - 24px);
  501. transition: 0s all;
  502. content: "";
  503. }
  504. .sr-only {
  505. position: absolute;
  506. width: 1px;
  507. height: 1px;
  508. padding: 0;
  509. margin: -1px;
  510. overflow: hidden;
  511. clip: rect(0,0,0,0);
  512. border: 0;
  513. }
  514. .bottom-cover {
  515. display: none;
  516. position: absolute;
  517. width: 100%;
  518. height: 10vh;
  519. left: 0%;
  520. top: calc(100% - 51px);
  521. background: black;
  522. }
  523. body.toggle-bottom-cover .bottom-cover {
  524. display: inline-block;
  525. }
  526. .transitions {
  527. transition: 0.2s all;
  528. }
  529. .rotate-forward {
  530. transform: rotate(-90deg);
  531. }
  532. .rotate-backward {
  533. transform: rotate(90deg);
  534. }
  535. i.fas
  536. i.far {
  537. pointer-events: none;
  538. }
  539. #help-icons {
  540. display: flex;
  541. flex-direction: column;
  542. flex-wrap: wrap;
  543. width: 50vw;
  544. }
  545. #help-icons > div {
  546. flex-basis: 25%;
  547. font-size: 150%;
  548. }
  549. #entity-view {
  550. text-align: center;
  551. font-weight: bold;
  552. font-size: 200%;
  553. }
  554. #spawners > select,
  555. #spawners > button {
  556. display: none;
  557. }
  558. #spawners > select#category-picker {
  559. display: block;
  560. }
  561. #spawners > select.category-visible,
  562. #spawners > select.category-visible + button {
  563. display: block;
  564. }
  565. #spawners > select {
  566. font-size: 24pt;
  567. }
  568. #spawners > button {
  569. font-size: 40pt;
  570. }
  571. #spawners-categories {
  572. font-size: 24pt;
  573. }
  574. .scroll-button {
  575. position: absolute;
  576. height: 25%;
  577. width: 50px;
  578. font-size: 40px;
  579. background: #ffffff33;
  580. border: 0px;
  581. z-index: 1002;
  582. }
  583. .scroll-button:active {
  584. background: #ffffff66;
  585. }
  586. .scroll-button:hover {
  587. background: #ffffff44;
  588. }
  589. .scroll-button:disabled {
  590. background: #ffffff11;
  591. }
  592. #zoom-out {
  593. left: 0%;
  594. top: 0%;
  595. }
  596. #zoom-in {
  597. right: 0%;
  598. top: 0%;
  599. }
  600. #scroll-left {
  601. left: 0%;
  602. top: 25%;
  603. }
  604. #scroll-right {
  605. right: 0%;
  606. top: 25%;
  607. }
  608. #shrink {
  609. left: 0%;
  610. top: 50%;
  611. }
  612. #grow {
  613. right: 0%;
  614. top: 50%;
  615. }
  616. #fit {
  617. right: 0%;
  618. top: 75%;
  619. }
  620. #toggle-menu {
  621. position: relative;
  622. background: none;
  623. color: #aaa;
  624. border: 0px;
  625. }
  626. #popout-menu {
  627. display: none;
  628. flex-direction: column;
  629. height: 80vh;
  630. justify-content: space-around;
  631. position: fixed;
  632. top: 10%;
  633. left: 10%;
  634. z-index: 10000;
  635. background: #111;
  636. }
  637. #popout-menu.visible {
  638. display: flex;
  639. }
  640. .menu-button {
  641. height: 48pt;
  642. width: 56pt;
  643. font-size: 40pt;
  644. }
  645. .menu-button-holder {
  646. display: flex;
  647. align-items: center;
  648. }
  649. .menu-text {
  650. font-size: 24pt;
  651. margin-left: 6pt;
  652. }
  653. #options-entity-defaults > button {
  654. word-break: break-word;
  655. }