less copy protection, more size visualization
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

716 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. .no-transition {
  433. transition: 0s !important;
  434. }
  435. .corner-ribbon {
  436. width: 200px;
  437. background: #e43;
  438. position: fixed;
  439. top: 25px;
  440. left: -50px;
  441. text-align: center;
  442. padding: 10px;
  443. letter-spacing: 1px;
  444. color: #f0f0f0;
  445. transform: rotate(-45deg);
  446. -webkit-transform: rotate(-45deg);
  447. }
  448. .corner-ribbon.bottom-right{
  449. top: auto;
  450. right: -50px;
  451. bottom: 25px;
  452. left: auto;
  453. transform: rotate(-45deg);
  454. -webkit-transform: rotate(-45deg);
  455. }
  456. a.corner-ribbon {
  457. text-decoration: none;
  458. }
  459. input[type=checkbox] {
  460. transform: scale(2);
  461. margin-left: 10px;
  462. margin-right: 10px;
  463. }
  464. input ~ label {
  465. user-select: none;
  466. }
  467. body.toggle-height-bars .height-bar,
  468. .entity-box.selected .height-bar {
  469. display: block;
  470. }
  471. .height-bar {
  472. display: none;
  473. min-width: calc(var(--xpos));
  474. min-height: 3px;
  475. height: 3px;
  476. position: absolute;
  477. opacity: 50%;
  478. background: repeating-linear-gradient(90deg, #ffffff, #ffffff 20px, #ffffff00 20px, #ffffff00 40px);
  479. top: calc(-100% + var(--extra));
  480. left: calc(-1 * var(--xpos));
  481. transition: 0s all;
  482. z-index: -1;
  483. }
  484. .height-bar::before {
  485. display: block;
  486. background: gray;
  487. position: absolute;
  488. content: var(--entity-height);
  489. transition: 0s all;
  490. }
  491. .height-bar::after {
  492. display: block;
  493. min-width: 24px;
  494. min-height: 3px;
  495. background: #ffffff;
  496. position: absolute;
  497. left: calc(var(--xpos) - 24px);
  498. transition: 0s all;
  499. content: "";
  500. }
  501. .sr-only {
  502. position: absolute;
  503. width: 1px;
  504. height: 1px;
  505. padding: 0;
  506. margin: -1px;
  507. overflow: hidden;
  508. clip: rect(0,0,0,0);
  509. border: 0;
  510. }
  511. .bottom-cover {
  512. display: none;
  513. position: absolute;
  514. width: 100%;
  515. height: 10vh;
  516. left: 0%;
  517. top: calc(100% - 51px);
  518. background: black;
  519. }
  520. body.toggle-bottom-cover .bottom-cover {
  521. display: inline-block;
  522. }
  523. .transitions {
  524. transition: 0.2s all;
  525. }
  526. .rotate-forward {
  527. transform: rotate(-90deg);
  528. }
  529. .rotate-backward {
  530. transform: rotate(90deg);
  531. }
  532. i.fas
  533. i.far {
  534. pointer-events: none;
  535. }
  536. #help-icons {
  537. display: flex;
  538. flex-direction: column;
  539. flex-wrap: wrap;
  540. width: 50vw;
  541. }
  542. #help-icons > div {
  543. flex-basis: 25%;
  544. font-size: 150%;
  545. }
  546. #entity-view {
  547. text-align: center;
  548. font-weight: bold;
  549. font-size: 200%;
  550. }
  551. #spawners-entities > select,
  552. #spawners-entities > button {
  553. display: none;
  554. }
  555. #spawners-entities > select.category-visible,
  556. #spawners-entities > select.category-visible + button {
  557. display: block;
  558. }
  559. #spawners-entities > select {
  560. font-size: 24pt;
  561. }
  562. #spawners-entities > button {
  563. font-size: 40pt;
  564. margin: 10px;
  565. }
  566. #spawners-categories {
  567. font-size: 24pt;
  568. }
  569. .scroll-button {
  570. position: absolute;
  571. height: 25%;
  572. width: 50px;
  573. font-size: 40px;
  574. background: #ffffff33;
  575. border: 0px;
  576. z-index: 1002;
  577. }
  578. .scroll-button:active {
  579. background: #ffffff66;
  580. }
  581. .scroll-button:hover {
  582. background: #ffffff44;
  583. }
  584. .scroll-button:disabled {
  585. background: #ffffff11;
  586. }
  587. #zoom-out {
  588. left: 0%;
  589. top: 0%;
  590. }
  591. #zoom-in {
  592. right: 0%;
  593. top: 0%;
  594. }
  595. #scroll-left {
  596. left: 0%;
  597. top: 25%;
  598. }
  599. #scroll-right {
  600. right: 0%;
  601. top: 25%;
  602. }
  603. #shrink {
  604. left: 0%;
  605. top: 50%;
  606. }
  607. #grow {
  608. right: 0%;
  609. top: 50%;
  610. }
  611. #fit {
  612. right: 0%;
  613. top: 75%;
  614. }