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.
 
 
 

374 lines
6.0 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. flex: 9 0 85vw;
  155. min-height: 85vh;
  156. max-height: 85vh;
  157. overflow: hidden;
  158. }
  159. #menubar {
  160. display: flex;
  161. flex-direction: row;
  162. justify-content: space-evenly;
  163. align-items: center;
  164. flex-wrap: wrap;
  165. min-height: 10vh;
  166. min-width: 100vw;
  167. background: #222;
  168. transition: 0.25s;
  169. }
  170. #menubar.hover-delete {
  171. background: #922;
  172. }
  173. .menubar-group {
  174. display: flex;
  175. flex-direction: row;
  176. justify-content: center;
  177. align-items: center;
  178. }
  179. .menubar-group button,
  180. .menubar-group select {
  181. height: 5vh;
  182. }
  183. .menu-item {
  184. font-size: 24px;
  185. color: #ccc;
  186. margin: 20px;
  187. }
  188. select.menu-item {
  189. color: #000;
  190. }
  191. #display {
  192. width: 100%;
  193. height: 100%;
  194. background: #333;
  195. }
  196. #options .options-label {
  197. flex: 0 1;
  198. width: 100%;
  199. font-size: 150%;
  200. }
  201. .options-label {
  202. text-align: center;
  203. }
  204. .options-row .options-field-numeric {
  205. flex: 1 1 60%;
  206. min-width: 0px;
  207. font-size: 150%;
  208. }
  209. .options-row .options-field-text {
  210. flex: 1 1 100%;
  211. min-width: 0px;
  212. font-size: 150%;
  213. }
  214. .options-row .options-field-unit {
  215. flex: 1 1 40%;
  216. min-width: 0px;
  217. font-size: 150%;
  218. }
  219. .options-row .options-button {
  220. flex: 1;
  221. width: 100%;
  222. font-size: 150%;
  223. }
  224. .options-block .options-button {
  225. flex: 1;
  226. width: 100%;
  227. font-size: 150%;
  228. }
  229. .options-row label {
  230. flex: 1;
  231. width: 100%;
  232. font-size: 150%;
  233. }
  234. body #test-canvas {
  235. position: fixed;
  236. top: 100vh;
  237. }
  238. .switch {
  239. height: 24pt;
  240. }
  241. .switch input {
  242. transform: scale(2);
  243. }
  244. .bottom-name {
  245. display: none;
  246. text-align: center;
  247. position: fixed;
  248. width: 150px;
  249. height: 50px;
  250. transform: translate(-50%, 0%);
  251. }
  252. body.toggle-bottom-name .bottom-name {
  253. display: inline;
  254. }
  255. #spawners > button {
  256. display: none;
  257. font-size: 24pt;
  258. }
  259. #spawners > select {
  260. display: none;
  261. font-size: 24pt;
  262. }
  263. #spawners > select#category-picker {
  264. display: inline;
  265. }
  266. #spawners > button.category-visible,
  267. #spawners > select.category-visible {
  268. display: inline;
  269. }
  270. #menubar button {
  271. font-size: 24pt;
  272. }
  273. #help {
  274. display: none;
  275. flex-direction: column;
  276. justify-content: space-evenly;
  277. align-items: center;
  278. position: absolute;
  279. width: 60vw;
  280. height: 60vh;
  281. margin: 0pt;
  282. padding-top: 20vh;
  283. padding-bottom: 20vh;
  284. padding-left: 20vw;
  285. padding-right: 20vw;
  286. transition: 1s;
  287. text-align: center;
  288. background: #333;
  289. opacity: 0;
  290. z-index: 9999999;
  291. }
  292. #help.visible {
  293. display: flex;
  294. opacity: 0.9;
  295. transition: 1s;
  296. }
  297. #help h1 {
  298. font-size: 150%;
  299. }
  300. #help p {
  301. font-size: 125%;
  302. }
  303. #help button {
  304. width: 20vw;
  305. height: 10vh;
  306. font-size: 9vh;
  307. }
  308. a {
  309. color: #999;
  310. }
  311. #options-attribution-authors {
  312. text-align: center;
  313. }
  314. #options-attribution-owners {
  315. text-align: center;
  316. }
  317. #options-attribution-source {
  318. text-align: center;
  319. }