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.
 
 
 

365 lines
5.8 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: 0.2s;
  30. }
  31. .entity-box.grabbed {
  32. transition: 0s;
  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: -100%;
  49. left: 0%;
  50. transform: translate(-50%, -36px);
  51. font-size: 24px;
  52. pointer-events: none
  53. }
  54. body.toggle-entity-name .entity-name {
  55. display: inline;
  56. }
  57. .entity-box.selected > img {
  58. filter: drop-shadow(0px 0px 5px gold);
  59. }
  60. .entity-box:not(.selected) > img{
  61. filter: drop-shadow(0px 0px 2px white);
  62. }
  63. #main-area {
  64. display: flex;
  65. min-width: 100vw;
  66. height: 90vh;
  67. flex-direction: row;
  68. }
  69. #options {
  70. min-width: 120pt;
  71. flex: 1 0 15vw;
  72. display: flex;
  73. justify-content: start;
  74. flex-direction: column;
  75. background: #444;
  76. overflow-x: hidden;
  77. overflow-y: scroll;
  78. height: 100%;
  79. scrollbar-color: #e1e1e1 #888;
  80. scrollbar-width: thin;
  81. }
  82. #options-attribution {
  83. display: none;
  84. }
  85. #options::-webkit-scrollbar {
  86. width: 3px;
  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-row {
  119. display: flex;
  120. text-align: center;
  121. width: 100%;
  122. }
  123. .options-block {
  124. display: flex;
  125. text-align: center;
  126. min-width: 100%;
  127. flex-direction: column;
  128. }
  129. @media (max-aspect-ratio: 1/1) {
  130. .options-row {
  131. flex-direction: column;
  132. }
  133. .options-row > .options-field-numeric {
  134. width: 100%;
  135. }
  136. .options-row > .options-field-unit {
  137. width: 100%;
  138. }
  139. }
  140. .options-header {
  141. text-align: center;
  142. font-size: 24pt;
  143. margin-top: 10px;
  144. margin-bottom: 10px;
  145. }
  146. .options-selector {
  147. font-size: 150%;
  148. width: 100%;
  149. }
  150. #entities {
  151. position: relative;
  152. user-select: none;
  153. }
  154. #world {
  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: 75px;
  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. }