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.
 
 
 

359 line
5.7 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. }
  30. .entity-image {
  31. position: absolute;
  32. height: 100%;
  33. pointer-events: auto;
  34. -webkit-user-drag: none;
  35. -khtml-user-drag: none;
  36. -moz-user-drag: none;
  37. -o-user-drag: none;
  38. --offset: -100%;
  39. transform: translate(-50%, var(--offset));
  40. }
  41. .entity-name {
  42. display: none;
  43. position: absolute;
  44. top: -100%;
  45. left: 0%;
  46. transform: translate(-50%, -36px);
  47. font-size: 24px;
  48. pointer-events: none
  49. }
  50. body.toggle-entity-name .entity-name {
  51. display: inline;
  52. }
  53. .entity-box.selected > img {
  54. filter: drop-shadow(0px 0px 5px gold);
  55. }
  56. .entity-box:not(.selected) > img{
  57. filter: drop-shadow(0px 0px 2px white);
  58. }
  59. #main-area {
  60. display: flex;
  61. min-width: 100vw;
  62. height: 90vh;
  63. flex-direction: row;
  64. }
  65. #options {
  66. min-width: 120pt;
  67. flex: 1 0 15vw;
  68. display: flex;
  69. justify-content: start;
  70. flex-direction: column;
  71. background: #444;
  72. overflow-y: scroll;
  73. height: 100%;
  74. scrollbar-color: #e1e1e1 #888;
  75. scrollbar-width: thin;
  76. }
  77. #options-attribution {
  78. display: none;
  79. }
  80. #options::-webkit-scrollbar {
  81. width: 3px;
  82. height: 2px;
  83. }
  84. #options::-webkit-scrollbar-button {
  85. width: 0px;
  86. height: 0px;
  87. }
  88. #options::-webkit-scrollbar-thumb {
  89. background: #e1e1e1;
  90. border: 0px none #ffffff;
  91. border-radius: 50px;
  92. }
  93. #options::-webkit-scrollbar-thumb:hover {
  94. background: #ffffff;
  95. }
  96. #options::-webkit-scrollbar-thumb:active {
  97. background: #000000;
  98. }
  99. #options::-webkit-scrollbar-track {
  100. background: #00000000;
  101. border: 0px none #ffffff;
  102. border-radius: 50px;
  103. }
  104. #options::-webkit-scrollbar-track:hover {
  105. background: #666666;
  106. }
  107. #options::-webkit-scrollbar-track:active {
  108. background: #333333;
  109. }
  110. #options::-webkit-scrollbar-corner {
  111. background: transparent;
  112. }
  113. .options-row {
  114. display: flex;
  115. text-align: center;
  116. width: 100%;
  117. }
  118. .options-block {
  119. display: flex;
  120. text-align: center;
  121. min-width: 100%;
  122. flex-direction: column;
  123. }
  124. @media (max-aspect-ratio: 1/1) {
  125. .options-row {
  126. flex-direction: column;
  127. }
  128. .options-row > .options-field-numeric {
  129. width: 100%;
  130. }
  131. .options-row > .options-field-unit {
  132. width: 100%;
  133. }
  134. }
  135. .options-header {
  136. text-align: center;
  137. font-size: 24pt;
  138. margin-top: 10px;
  139. margin-bottom: 10px;
  140. }
  141. .options-selector {
  142. font-size: 150%;
  143. width: 100%;
  144. }
  145. #entities {
  146. position: relative;
  147. user-select: none;
  148. }
  149. #world {
  150. flex: 9 0 85vw;
  151. min-height: 85vh;
  152. max-height: 85vh;
  153. overflow: hidden;
  154. }
  155. #menubar {
  156. display: flex;
  157. flex-direction: row;
  158. justify-content: space-evenly;
  159. align-items: center;
  160. flex-wrap: wrap;
  161. min-height: 10vh;
  162. min-width: 100vw;
  163. background: #222;
  164. transition: 0.25s;
  165. }
  166. #menubar.hover-delete {
  167. background: #922;
  168. }
  169. .menubar-group {
  170. display: flex;
  171. flex-direction: row;
  172. justify-content: center;
  173. align-items: center;
  174. }
  175. .menubar-group button,
  176. .menubar-group select {
  177. height: 5vh;
  178. }
  179. .menu-item {
  180. font-size: 24px;
  181. color: #ccc;
  182. margin: 20px;
  183. }
  184. select.menu-item {
  185. color: #000;
  186. }
  187. #display {
  188. width: 100%;
  189. height: 100%;
  190. background: #333;
  191. }
  192. #options .options-label {
  193. flex: 0 1;
  194. width: 100%;
  195. font-size: 150%;
  196. }
  197. .options-label {
  198. text-align: center;
  199. }
  200. .options-row .options-field-numeric {
  201. flex: 1 1 60%;
  202. min-width: 0px;
  203. font-size: 150%;
  204. }
  205. .options-row .options-field-text {
  206. flex: 1 1 100%;
  207. min-width: 0px;
  208. font-size: 150%;
  209. }
  210. .options-row .options-field-unit {
  211. flex: 1 1 40%;
  212. min-width: 0px;
  213. font-size: 150%;
  214. }
  215. .options-row .options-button {
  216. flex: 1;
  217. width: 100%;
  218. font-size: 150%;
  219. }
  220. .options-block .options-button {
  221. flex: 1;
  222. width: 100%;
  223. font-size: 150%;
  224. }
  225. .options-row label {
  226. flex: 1;
  227. width: 100%;
  228. font-size: 150%;
  229. }
  230. body #test-canvas {
  231. position: fixed;
  232. top: 100vh;
  233. }
  234. .switch {
  235. height: 24pt;
  236. }
  237. .switch input {
  238. transform: scale(2);
  239. }
  240. .bottom-name {
  241. display: none;
  242. text-align: center;
  243. position: fixed;
  244. width: 75px;
  245. height: 50px;
  246. transform: translate(-50%, 0%);
  247. }
  248. body.toggle-bottom-name .bottom-name {
  249. display: inline;
  250. }
  251. #spawners > button {
  252. display: none;
  253. font-size: 24pt;
  254. }
  255. #spawners > select {
  256. display: none;
  257. font-size: 24pt;
  258. }
  259. #spawners > select#category-picker {
  260. display: inline;
  261. }
  262. #spawners > button.category-visible,
  263. #spawners > select.category-visible {
  264. display: inline;
  265. }
  266. #menubar button {
  267. font-size: 24pt;
  268. }
  269. #help {
  270. display: none;
  271. flex-direction: column;
  272. justify-content: space-evenly;
  273. align-items: center;
  274. position: absolute;
  275. width: 60vw;
  276. height: 60vh;
  277. margin: 0pt;
  278. padding-top: 20vh;
  279. padding-bottom: 20vh;
  280. padding-left: 20vw;
  281. padding-right: 20vw;
  282. transition: 1s;
  283. text-align: center;
  284. background: #333;
  285. opacity: 0;
  286. z-index: 9999999;
  287. }
  288. #help.visible {
  289. display: flex;
  290. opacity: 0.9;
  291. transition: 1s;
  292. }
  293. #help h1 {
  294. font-size: 150%;
  295. }
  296. #help p {
  297. font-size: 125%;
  298. }
  299. #help button {
  300. width: 20vw;
  301. height: 10vh;
  302. font-size: 9vh;
  303. }
  304. a {
  305. color: #999;
  306. }