less copy protection, more size visualization
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

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