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.
 
 
 

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