less copy protection, more size visualization
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

408 lines
6.5 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: 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. scrollbar-width: thin;
  80. }
  81. #options-attribution {
  82. display: none;
  83. }
  84. #options::-webkit-scrollbar {
  85. width: 3px;
  86. height: 2px;
  87. }
  88. #options::-webkit-scrollbar-button {
  89. width: 0px;
  90. height: 0px;
  91. }
  92. #options::-webkit-scrollbar-thumb {
  93. background: #e1e1e1;
  94. border: 0px none #ffffff;
  95. border-radius: 50px;
  96. }
  97. #options::-webkit-scrollbar-thumb:hover {
  98. background: #ffffff;
  99. }
  100. #options::-webkit-scrollbar-thumb:active {
  101. background: #000000;
  102. }
  103. #options::-webkit-scrollbar-track {
  104. background: #00000000;
  105. border: 0px none #ffffff;
  106. border-radius: 50px;
  107. }
  108. #options::-webkit-scrollbar-track:hover {
  109. background: #666666;
  110. }
  111. #options::-webkit-scrollbar-track:active {
  112. background: #333333;
  113. }
  114. #options::-webkit-scrollbar-corner {
  115. background: transparent;
  116. }
  117. .options-row {
  118. display: flex;
  119. text-align: center;
  120. width: 100%;
  121. }
  122. .options-block {
  123. display: flex;
  124. text-align: center;
  125. min-width: 100%;
  126. flex-direction: column;
  127. }
  128. @media (max-aspect-ratio: 1/1) {
  129. .options-row {
  130. flex-direction: column;
  131. }
  132. .options-row > .options-field-numeric {
  133. width: 100%;
  134. }
  135. .options-row > .options-field-unit {
  136. width: 100%;
  137. }
  138. }
  139. .options-header {
  140. text-align: center;
  141. font-size: 24pt;
  142. margin-top: 10px;
  143. margin-bottom: 10px;
  144. }
  145. .options-selector {
  146. font-size: 150%;
  147. width: 100%;
  148. }
  149. #entities {
  150. position: relative;
  151. user-select: none;
  152. }
  153. #world {
  154. position: relative;
  155. flex: 9 0 85vw;
  156. min-height: 85vh;
  157. max-height: 85vh;
  158. overflow: hidden;
  159. }
  160. #menubar {
  161. display: flex;
  162. flex-direction: row;
  163. justify-content: space-evenly;
  164. align-items: center;
  165. flex-wrap: wrap;
  166. min-height: 10vh;
  167. min-width: 100vw;
  168. background: #222;
  169. transition: 0.25s;
  170. }
  171. #menubar.hover-delete {
  172. background: #922;
  173. }
  174. .menubar-group {
  175. display: flex;
  176. flex-direction: row;
  177. justify-content: center;
  178. align-items: center;
  179. }
  180. .menubar-group button,
  181. .menubar-group select {
  182. height: 5vh;
  183. }
  184. .menu-item {
  185. font-size: 24px;
  186. color: #ccc;
  187. margin: 20px;
  188. }
  189. select.menu-item {
  190. color: #000;
  191. }
  192. #display {
  193. width: 100%;
  194. height: 100%;
  195. background: #333;
  196. }
  197. #options .options-label {
  198. flex: 0 1;
  199. width: 100%;
  200. font-size: 150%;
  201. }
  202. .options-label {
  203. text-align: center;
  204. }
  205. .options-row .options-field-numeric {
  206. flex: 1 1 60%;
  207. min-width: 0px;
  208. font-size: 150%;
  209. }
  210. .options-row .options-field-text {
  211. flex: 1 1 100%;
  212. min-width: 0px;
  213. font-size: 150%;
  214. }
  215. .options-row .options-field-unit {
  216. flex: 1 1 40%;
  217. min-width: 0px;
  218. font-size: 150%;
  219. }
  220. .options-row .options-button {
  221. flex: 1;
  222. width: 100%;
  223. font-size: 150%;
  224. }
  225. .options-block .options-button {
  226. flex: 1;
  227. width: 100%;
  228. font-size: 150%;
  229. }
  230. .options-row label {
  231. flex: 1;
  232. width: 100%;
  233. font-size: 150%;
  234. }
  235. body #test-canvas {
  236. position: fixed;
  237. top: 100vh;
  238. }
  239. .switch {
  240. height: 24pt;
  241. }
  242. .switch input {
  243. transform: scale(2);
  244. }
  245. .bottom-name {
  246. display: none;
  247. text-align: center;
  248. position: fixed;
  249. width: 150px;
  250. height: 50px;
  251. transform: translate(-50%, 0%);
  252. }
  253. body.toggle-bottom-name .bottom-name {
  254. display: inline;
  255. }
  256. #spawners > button {
  257. display: none;
  258. font-size: 24pt;
  259. }
  260. #spawners > select {
  261. display: none;
  262. font-size: 24pt;
  263. }
  264. #spawners > select#category-picker {
  265. display: inline;
  266. }
  267. #spawners > button.category-visible,
  268. #spawners > select.category-visible {
  269. display: inline;
  270. }
  271. #menubar button {
  272. font-size: 24pt;
  273. }
  274. #help {
  275. display: none;
  276. flex-direction: column;
  277. justify-content: space-evenly;
  278. align-items: center;
  279. position: absolute;
  280. width: 60vw;
  281. height: 60vh;
  282. margin: 0pt;
  283. padding-top: 20vh;
  284. padding-bottom: 20vh;
  285. padding-left: 20vw;
  286. padding-right: 20vw;
  287. transition: 1s;
  288. text-align: center;
  289. background: #333;
  290. opacity: 0;
  291. z-index: 9999999;
  292. }
  293. #help.visible {
  294. display: flex;
  295. opacity: 0.9;
  296. transition: 1s;
  297. }
  298. #help h1 {
  299. font-size: 150%;
  300. }
  301. #help p {
  302. font-size: 125%;
  303. }
  304. #help button {
  305. width: 20vw;
  306. height: 10vh;
  307. font-size: 9vh;
  308. }
  309. a {
  310. color: #999;
  311. }
  312. #options-attribution-authors {
  313. text-align: center;
  314. }
  315. #options-attribution-owners {
  316. text-align: center;
  317. }
  318. #options-attribution-source {
  319. text-align: center;
  320. }
  321. .floating-slider {
  322. position: absolute;
  323. z-index: 1000;
  324. width: 250px;
  325. height: 50px;
  326. }
  327. #slider-scale {
  328. top: 1%;
  329. left: 5%;
  330. }
  331. #slider-scale:before {
  332. content: "World scale";
  333. position: absolute;
  334. left: 50%;
  335. transform: translate(-50%, 0%);
  336. font-size: 20px;
  337. }
  338. #slider-entity-scale {
  339. top: 1%;
  340. right: 5%;
  341. }
  342. #slider-entity-scale:before {
  343. content: "Entity scale";
  344. position: absolute;
  345. left: 50%;
  346. transform: translate(-50%, 0%);
  347. font-size: 20px;
  348. }