less copy protection, more size visualization
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

491 líneas
8.2 KiB

  1. @import url('https://fonts.googleapis.com/css?family=Coda&display=swap');
  2. html {
  3. height: 100%;
  4. overflow-x: hidden;
  5. overflow-y: hidden;
  6. color: #eee;
  7. }
  8. body {
  9. background: #111;
  10. display: flex;
  11. flex-direction: column;
  12. align-items: center;
  13. justify-content: flex-start;
  14. height: 100%;
  15. width: 100%;
  16. font-family: 'Coda', cursive;
  17. }
  18. .entity-box {
  19. position: absolute;
  20. --height: 100px;
  21. max-height: var(--height);
  22. height: var(--height);
  23. text-align: center;
  24. -webkit-user-drag: none;
  25. -khtml-user-drag: none;
  26. -moz-user-drag: none;
  27. -o-user-drag: none;
  28. pointer-events: none;
  29. 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);
  30. }
  31. .entity-image {
  32. position: absolute;
  33. height: 100%;
  34. pointer-events: auto;
  35. -webkit-user-drag: none;
  36. -khtml-user-drag: none;
  37. -moz-user-drag: none;
  38. -o-user-drag: none;
  39. --offset: -100%;
  40. transform: translate(-50%, var(--offset));
  41. }
  42. .entity-name {
  43. display: none;
  44. position: absolute;
  45. top: calc(-100% + var(--extra) / 2);
  46. left: 0%;
  47. transform: translate(-50%, -36px);
  48. font-size: 24px;
  49. pointer-events: none;
  50. max-width: 250px;
  51. width: 250px;
  52. transition: all 0s;
  53. }
  54. body.toggle-entity-name .entity-name,
  55. .entity-box.selected .entity-name {
  56. display: inline;
  57. }
  58. .entity-box.selected > img {
  59. filter: drop-shadow(0px 0px 5px gold);
  60. }
  61. body.toggle-entity-glow .entity-box:not(.selected) > img{
  62. filter: drop-shadow(0px 0px 2px white);
  63. }
  64. #main-area {
  65. min-height: 0px;
  66. display: flex;
  67. flex: 1 1 90vh;
  68. width: 100%;
  69. flex-direction: row;
  70. }
  71. #options {
  72. min-width: 120pt;
  73. flex: 1 0 15vw;
  74. display: flex;
  75. justify-content: start;
  76. flex-direction: column;
  77. background: #444;
  78. overflow-x: hidden;
  79. overflow-y: scroll;
  80. height: 100%;
  81. scrollbar-color: #e1e1e1 #888;
  82. }
  83. #options-attribution {
  84. display: none;
  85. }
  86. #options::-webkit-scrollbar {
  87. height: 2px;
  88. }
  89. #options::-webkit-scrollbar-button {
  90. width: 0px;
  91. height: 0px;
  92. }
  93. #options::-webkit-scrollbar-thumb {
  94. background: #e1e1e1;
  95. border: 0px none #ffffff;
  96. border-radius: 50px;
  97. }
  98. #options::-webkit-scrollbar-thumb:hover {
  99. background: #ffffff;
  100. }
  101. #options::-webkit-scrollbar-thumb:active {
  102. background: #000000;
  103. }
  104. #options::-webkit-scrollbar-track {
  105. background: #00000000;
  106. border: 0px none #ffffff;
  107. border-radius: 50px;
  108. }
  109. #options::-webkit-scrollbar-track:hover {
  110. background: #666666;
  111. }
  112. #options::-webkit-scrollbar-track:active {
  113. background: #333333;
  114. }
  115. #options::-webkit-scrollbar-corner {
  116. background: transparent;
  117. }
  118. .options-two-buttons {
  119. display: flex;
  120. justify-content: space-evenly;
  121. }
  122. .options-row {
  123. display: flex;
  124. text-align: center;
  125. width: 100%;
  126. margin-top: 10px;
  127. margin-bottom: 10px;
  128. }
  129. .options-block {
  130. display: flex;
  131. text-align: center;
  132. min-width: 100%;
  133. flex-direction: column;
  134. }
  135. @media (max-aspect-ratio: 1/1) {
  136. .options-row {
  137. flex-direction: column;
  138. }
  139. .options-row > .options-field-numeric {
  140. width: 100%;
  141. }
  142. .options-row > .options-field-unit {
  143. width: 100%;
  144. }
  145. }
  146. .options-header {
  147. text-align: center;
  148. font-size: 24pt;
  149. margin-top: 10px;
  150. margin-bottom: 10px;
  151. }
  152. .options-selector {
  153. font-size: 150%;
  154. width: 100%;
  155. }
  156. #entities {
  157. position: absolute;
  158. user-select: none;
  159. width: 100%;
  160. height: 100%;
  161. }
  162. #world {
  163. position: relative;
  164. flex: 1 0 85vw;
  165. height: 100%;
  166. overflow: hidden;
  167. }
  168. #menubar {
  169. display: flex;
  170. flex: 1 0 5vh;
  171. flex-direction: row;
  172. justify-content: space-evenly;
  173. align-items: center;
  174. flex-wrap: wrap;
  175. min-width: 100vw;
  176. background: #222;
  177. }
  178. #menubar.hover-delete {
  179. background: #922;
  180. }
  181. .menubar-group {
  182. display: flex;
  183. flex-direction: row;
  184. justify-content: center;
  185. align-items: center;
  186. }
  187. .menu-item {
  188. font-size: 24px;
  189. color: #ccc;
  190. margin: 20px;
  191. }
  192. select.menu-item {
  193. color: #000;
  194. }
  195. #display {
  196. width: 100%;
  197. height: 100%;
  198. background: #333;
  199. }
  200. #options .options-label {
  201. flex: 0 1;
  202. width: 100%;
  203. font-size: 150%;
  204. }
  205. .options-label {
  206. text-align: center;
  207. }
  208. .options-row .options-field-numeric {
  209. flex: 1 1 60%;
  210. min-width: 0px;
  211. font-size: 150%;
  212. }
  213. .options-row .options-field-text {
  214. flex: 1 1 100%;
  215. min-width: 0px;
  216. font-size: 150%;
  217. }
  218. .options-row .options-field-unit {
  219. flex: 1 1 40%;
  220. min-width: 0px;
  221. font-size: 150%;
  222. }
  223. .options-row .options-button {
  224. flex: 1;
  225. width: 100%;
  226. font-size: 150%;
  227. }
  228. .options-block .options-button {
  229. flex: 1;
  230. width: 100%;
  231. font-size: 150%;
  232. }
  233. .options-row label {
  234. flex: 1;
  235. width: 100%;
  236. font-size: 150%;
  237. }
  238. body #test-canvas {
  239. position: fixed;
  240. top: 500vh;
  241. }
  242. .switch {
  243. height: 24pt;
  244. }
  245. .switch input {
  246. transform: scale(2);
  247. }
  248. .bottom-name {
  249. display: none;
  250. text-align: center;
  251. position: fixed;
  252. width: 150px;
  253. height: 50px;
  254. transform: translate(-50%, 20pt);
  255. }
  256. body.toggle-bottom-name .bottom-name {
  257. display: inline;
  258. }
  259. #spawners > button {
  260. display: none;
  261. font-size: 24pt;
  262. }
  263. #spawners > select {
  264. display: none;
  265. font-size: 24pt;
  266. }
  267. #spawners > select#category-picker {
  268. display: inline;
  269. }
  270. #spawners > button.category-visible,
  271. #spawners > select.category-visible {
  272. display: inline;
  273. }
  274. #menubar button {
  275. font-size: 28pt;
  276. height: 36pt;
  277. }
  278. #help {
  279. display: none;
  280. flex-direction: column;
  281. justify-content: space-evenly;
  282. align-items: center;
  283. position: absolute;
  284. width: 60vw;
  285. height: 60vh;
  286. margin: 0pt;
  287. padding-top: 20vh;
  288. padding-bottom: 20vh;
  289. padding-left: 20vw;
  290. padding-right: 20vw;
  291. transition: 1s;
  292. text-align: center;
  293. background: #333;
  294. opacity: 0;
  295. z-index: 9999999;
  296. }
  297. #help.visible {
  298. display: flex;
  299. opacity: 0.9;
  300. transition: 1s;
  301. }
  302. #help h1 {
  303. font-size: 150%;
  304. }
  305. #help p {
  306. font-size: 125%;
  307. }
  308. #help button {
  309. width: 20vw;
  310. height: 10vh;
  311. font-size: 9vh;
  312. }
  313. a {
  314. color: #999;
  315. }
  316. #options-attribution-authors {
  317. text-align: center;
  318. }
  319. #options-attribution-owners {
  320. text-align: center;
  321. }
  322. #options-attribution-source {
  323. text-align: center;
  324. }
  325. .floating-slider {
  326. position: absolute;
  327. z-index: 1000;
  328. width: 250px;
  329. height: 50px;
  330. }
  331. #slider-scale {
  332. top: 1%;
  333. left: 5%;
  334. }
  335. #slider-scale:before {
  336. content: "World scale";
  337. position: absolute;
  338. left: 50%;
  339. transform: translate(-50%, 0%);
  340. font-size: 20px;
  341. }
  342. #slider-entity-scale {
  343. top: 1%;
  344. right: 5%;
  345. }
  346. #slider-entity-scale:before {
  347. content: "Entity scale";
  348. position: absolute;
  349. left: 50%;
  350. transform: translate(-50%, 0%);
  351. font-size: 20px;
  352. }
  353. .no-transition {
  354. transition: 0s !important;
  355. }
  356. .corner-ribbon {
  357. width: 200px;
  358. background: #e43;
  359. position: fixed;
  360. top: 25px;
  361. left: -50px;
  362. text-align: center;
  363. padding: 10px;
  364. letter-spacing: 1px;
  365. color: #f0f0f0;
  366. transform: rotate(-45deg);
  367. -webkit-transform: rotate(-45deg);
  368. }
  369. .corner-ribbon.bottom-right{
  370. top: auto;
  371. right: -50px;
  372. bottom: 25px;
  373. left: auto;
  374. transform: rotate(-45deg);
  375. -webkit-transform: rotate(-45deg);
  376. }
  377. a.corner-ribbon {
  378. text-decoration: none;
  379. }
  380. input[type=checkbox] {
  381. transform: scale(2);
  382. margin-left: 10px;
  383. margin-right: 10px;
  384. }
  385. input ~ label {
  386. user-select: none;
  387. }
  388. body.toggle-height-bars .height-bar,
  389. .entity-box.selected .height-bar {
  390. display: block;
  391. }
  392. .height-bar {
  393. display: none;
  394. min-width: calc(var(--xpos));
  395. min-height: 3px;
  396. height: 3px;
  397. position: absolute;
  398. opacity: 50%;
  399. background: repeating-linear-gradient(90deg, #ffffff, #ffffff 20px, #ffffff00 20px, #ffffff00 40px);
  400. top: calc(-100% + var(--extra));
  401. left: calc(-1 * var(--xpos));
  402. transition: 0s all;
  403. z-index: -1;
  404. }
  405. .height-bar::before {
  406. display: block;
  407. background: gray;
  408. position: absolute;
  409. content: var(--entity-height);
  410. transition: 0s all;
  411. }
  412. .height-bar::after {
  413. display: block;
  414. min-width: 24px;
  415. min-height: 3px;
  416. background: #ffffff;
  417. position: absolute;
  418. left: calc(var(--xpos) - 24px);
  419. transition: 0s all;
  420. content: "";
  421. }