less copy protection, more size visualization
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 

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