less copy protection, more size visualization
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

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