less copy protection, more size visualization
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

307 行
4.9 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. #entities {
  138. position: relative;
  139. user-select: none;
  140. }
  141. #world {
  142. flex: 9 0 85vw;
  143. min-height: 85vh;
  144. max-height: 85vh;
  145. overflow: hidden;
  146. }
  147. #menubar {
  148. display: flex;
  149. flex-direction: row;
  150. justify-content: space-evenly;
  151. align-items: center;
  152. flex-wrap: wrap;
  153. min-height: 10vh;
  154. min-width: 100vw;
  155. background: #222;
  156. transition: 0.25s;
  157. }
  158. #menubar.hover-delete {
  159. background: #922;
  160. }
  161. .menubar-group {
  162. display: flex;
  163. flex-direction: row;
  164. justify-content: center;
  165. align-items: center;
  166. }
  167. .menubar-group button,
  168. .menubar-group select {
  169. height: 5vh;
  170. }
  171. .menu-item {
  172. font-size: 24px;
  173. color: #ccc;
  174. margin: 20px;
  175. }
  176. select.menu-item {
  177. color: #000;
  178. }
  179. #display {
  180. width: 100%;
  181. height: 100%;
  182. background: #333;
  183. }
  184. #options .options-label {
  185. flex: 0 1;
  186. width: 100%;
  187. font-size: 150%;
  188. }
  189. .options-label {
  190. text-align: center;
  191. }
  192. .options-row .options-field-numeric {
  193. flex: 1 1 60%;
  194. min-width: 0px;
  195. font-size: 150%;
  196. }
  197. .options-row .options-field-text {
  198. flex: 1 1 100%;
  199. min-width: 0px;
  200. font-size: 150%;
  201. }
  202. .options-row .options-field-unit {
  203. flex: 1 1 40%;
  204. min-width: 0px;
  205. font-size: 150%;
  206. }
  207. .options-row .options-button {
  208. flex: 1;
  209. width: 100%;
  210. font-size: 150%;
  211. }
  212. .options-block .options-button {
  213. flex: 1;
  214. width: 100%;
  215. font-size: 150%;
  216. }
  217. .options-row label {
  218. flex: 1;
  219. width: 100%;
  220. font-size: 150%;
  221. }
  222. body #test-canvas {
  223. position: fixed;
  224. top: 100vh;
  225. }
  226. .switch {
  227. height: 24pt;
  228. }
  229. .switch input {
  230. transform: scale(2);
  231. }
  232. .bottom-name {
  233. display: none;
  234. text-align: center;
  235. position: fixed;
  236. width: 75px;
  237. height: 50px;
  238. transform: translate(-50%, 0%);
  239. }
  240. body.toggle-bottom-name .bottom-name {
  241. display: inline;
  242. }
  243. #spawners > button {
  244. display: none;
  245. font-size: 24pt;
  246. }
  247. #spawners > select {
  248. display: none;
  249. font-size: 24pt;
  250. }
  251. #spawners > select#category-picker {
  252. display: inline;
  253. }
  254. #spawners > button.category-visible,
  255. #spawners > select.category-visible {
  256. display: inline;
  257. }
  258. #menubar button {
  259. font-size: 24pt;
  260. }