less copy protection, more size visualization
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

267 行
4.1 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. flex: 1 0 15vw;
  67. display: flex;
  68. justify-content: start;
  69. flex-direction: column;
  70. background: #444;
  71. }
  72. .options-row {
  73. display: flex;
  74. text-align: center;
  75. max-width: 15vw;
  76. }
  77. .options-block {
  78. display: flex;
  79. text-align: center;
  80. max-width: 15vw;
  81. flex-direction: column;
  82. }
  83. @media (max-aspect-ratio: 1/1) {
  84. .options-row {
  85. flex-direction: column;
  86. }
  87. .options-row > .options-field-numeric {
  88. width: 100%;
  89. }
  90. .options-row > .options-field-unit {
  91. width: 100%;
  92. }
  93. }
  94. .options-header {
  95. text-align: center;
  96. font-size: 24pt;
  97. margin-top: 10px;
  98. margin-bottom: 10px;
  99. }
  100. #entities {
  101. position: relative;
  102. user-select: none;
  103. }
  104. #world {
  105. flex: 9 0 85vw;
  106. min-height: 85vh;
  107. max-height: 85vh;
  108. overflow: hidden;
  109. }
  110. #menubar {
  111. display: flex;
  112. flex-direction: row;
  113. justify-content: space-evenly;
  114. align-items: center;
  115. flex-wrap: wrap;
  116. min-height: 10vh;
  117. min-width: 100vw;
  118. background: #222;
  119. transition: 0.25s;
  120. }
  121. #menubar.hover-delete {
  122. background: #922;
  123. }
  124. .menubar-group {
  125. display: flex;
  126. flex-direction: row;
  127. justify-content: center;
  128. align-items: center;
  129. }
  130. .menubar-group button,
  131. .menubar-group select {
  132. height: 5vh;
  133. }
  134. .menu-item {
  135. font-size: 24px;
  136. color: #ccc;
  137. margin: 20px;
  138. }
  139. select.menu-item {
  140. color: #000;
  141. }
  142. #display {
  143. width: 100%;
  144. height: 100%;
  145. background: #333;
  146. }
  147. #options .options-label {
  148. flex: 0 1;
  149. width: 100%;
  150. font-size: 150%;
  151. }
  152. .options-label {
  153. text-align: center;
  154. }
  155. .options-row .options-field-numeric {
  156. flex: 2;
  157. width: 100%;
  158. font-size: 150%;
  159. }
  160. .options-row .options-field-text {
  161. flex: 1;
  162. width: 100%;
  163. font-size: 150%;
  164. }
  165. .options-row .options-field-unit {
  166. flex: 1;
  167. width: 100%;
  168. font-size: 150%;
  169. }
  170. .options-row .options-button {
  171. flex: 1;
  172. width: 100%;
  173. font-size: 150%;
  174. }
  175. .options-block .options-button {
  176. flex: 1;
  177. width: 100%;
  178. font-size: 150%;
  179. }
  180. .options-row label {
  181. flex: 1;
  182. width: 100%;
  183. font-size: 150%;
  184. }
  185. body #test-canvas {
  186. position: fixed;
  187. top: 100vh;
  188. }
  189. .switch {
  190. height: 24pt;
  191. }
  192. .switch input {
  193. transform: scale(2);
  194. }
  195. .bottom-name {
  196. display: none;
  197. text-align: center;
  198. position: fixed;
  199. width: 75px;
  200. height: 50px;
  201. transform: translate(-50%, 0%);
  202. }
  203. body.toggle-bottom-name .bottom-name {
  204. display: inline;
  205. }
  206. #spawners > button {
  207. display: none;
  208. font-size: 200%;
  209. }
  210. #spawners > select {
  211. display: none;
  212. font-size: 200%;
  213. margin-right: 50px;
  214. }
  215. #spawners > select#category-picker {
  216. display: inline;
  217. }
  218. #spawners > button.category-visible,
  219. #spawners > select.category-visible {
  220. display: inline;
  221. }
  222. #menubar button {
  223. font-size: 300%;
  224. }