less copy protection, more size visualization
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

445 lines
7.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. transition: left 0.2s cubic-bezier(.1,.41,.18,.99), top 0.2s cubic-bezier(.1,.41,.18,.99), height 0.2s cubic-bezier(.1,.41,.18,.99), max-height 0.2s cubic-bezier(.1,.41,.18,.99);
  30. }
  31. .entity-image {
  32. position: absolute;
  33. height: 100%;
  34. pointer-events: auto;
  35. -webkit-user-drag: none;
  36. -khtml-user-drag: none;
  37. -moz-user-drag: none;
  38. -o-user-drag: none;
  39. --offset: -100%;
  40. transform: translate(-50%, var(--offset));
  41. }
  42. .entity-name {
  43. display: none;
  44. position: absolute;
  45. top: calc(-100% + var(--extra) / 2);
  46. left: 0%;
  47. transform: translate(-50%, -36px);
  48. font-size: 24px;
  49. pointer-events: none;
  50. max-width: 250px;
  51. width: 250px;
  52. transition: all 0s;
  53. }
  54. body.toggle-entity-name .entity-name {
  55. display: inline;
  56. }
  57. .entity-box.selected > img {
  58. filter: drop-shadow(0px 0px 5px gold);
  59. }
  60. .entity-box:not(.selected) > img{
  61. filter: drop-shadow(0px 0px 2px white);
  62. }
  63. #main-area {
  64. display: flex;
  65. min-width: 100vw;
  66. height: 90vh;
  67. flex-direction: row;
  68. }
  69. #options {
  70. min-width: 120pt;
  71. flex: 1 0 15vw;
  72. display: flex;
  73. justify-content: start;
  74. flex-direction: column;
  75. background: #444;
  76. overflow-x: hidden;
  77. overflow-y: scroll;
  78. height: 100%;
  79. scrollbar-color: #e1e1e1 #888;
  80. }
  81. #options-attribution {
  82. display: none;
  83. }
  84. #options::-webkit-scrollbar {
  85. height: 2px;
  86. }
  87. #options::-webkit-scrollbar-button {
  88. width: 0px;
  89. height: 0px;
  90. }
  91. #options::-webkit-scrollbar-thumb {
  92. background: #e1e1e1;
  93. border: 0px none #ffffff;
  94. border-radius: 50px;
  95. }
  96. #options::-webkit-scrollbar-thumb:hover {
  97. background: #ffffff;
  98. }
  99. #options::-webkit-scrollbar-thumb:active {
  100. background: #000000;
  101. }
  102. #options::-webkit-scrollbar-track {
  103. background: #00000000;
  104. border: 0px none #ffffff;
  105. border-radius: 50px;
  106. }
  107. #options::-webkit-scrollbar-track:hover {
  108. background: #666666;
  109. }
  110. #options::-webkit-scrollbar-track:active {
  111. background: #333333;
  112. }
  113. #options::-webkit-scrollbar-corner {
  114. background: transparent;
  115. }
  116. .options-two-buttons {
  117. display: flex;
  118. justify-content: space-evenly;
  119. }
  120. .options-row {
  121. display: flex;
  122. text-align: center;
  123. width: 100%;
  124. }
  125. .options-block {
  126. display: flex;
  127. text-align: center;
  128. min-width: 100%;
  129. flex-direction: column;
  130. }
  131. @media (max-aspect-ratio: 1/1) {
  132. .options-row {
  133. flex-direction: column;
  134. }
  135. .options-row > .options-field-numeric {
  136. width: 100%;
  137. }
  138. .options-row > .options-field-unit {
  139. width: 100%;
  140. }
  141. }
  142. .options-header {
  143. text-align: center;
  144. font-size: 24pt;
  145. margin-top: 10px;
  146. margin-bottom: 10px;
  147. }
  148. .options-selector {
  149. font-size: 150%;
  150. width: 100%;
  151. }
  152. #entities {
  153. position: relative;
  154. user-select: none;
  155. }
  156. #world {
  157. position: relative;
  158. flex: 9 0 85vw;
  159. min-height: 85vh;
  160. max-height: 85vh;
  161. overflow: hidden;
  162. }
  163. #menubar {
  164. display: flex;
  165. flex-direction: row;
  166. justify-content: space-evenly;
  167. align-items: center;
  168. flex-wrap: wrap;
  169. min-height: 10vh;
  170. min-width: 100vw;
  171. background: #222;
  172. transition: 0.25s;
  173. }
  174. #menubar.hover-delete {
  175. background: #922;
  176. }
  177. .menubar-group {
  178. display: flex;
  179. flex-direction: row;
  180. justify-content: center;
  181. align-items: center;
  182. }
  183. .menubar-group button,
  184. .menubar-group select {
  185. height: 5vh;
  186. }
  187. .menu-item {
  188. font-size: 24px;
  189. color: #ccc;
  190. margin: 20px;
  191. }
  192. select.menu-item {
  193. color: #000;
  194. }
  195. #display {
  196. width: 100%;
  197. height: 100%;
  198. background: #333;
  199. }
  200. #options .options-label {
  201. flex: 0 1;
  202. width: 100%;
  203. font-size: 150%;
  204. }
  205. .options-label {
  206. text-align: center;
  207. }
  208. .options-row .options-field-numeric {
  209. flex: 1 1 60%;
  210. min-width: 0px;
  211. font-size: 150%;
  212. }
  213. .options-row .options-field-text {
  214. flex: 1 1 100%;
  215. min-width: 0px;
  216. font-size: 150%;
  217. }
  218. .options-row .options-field-unit {
  219. flex: 1 1 40%;
  220. min-width: 0px;
  221. font-size: 150%;
  222. }
  223. .options-row .options-button {
  224. flex: 1;
  225. width: 100%;
  226. font-size: 150%;
  227. }
  228. .options-block .options-button {
  229. flex: 1;
  230. width: 100%;
  231. font-size: 150%;
  232. }
  233. .options-row label {
  234. flex: 1;
  235. width: 100%;
  236. font-size: 150%;
  237. }
  238. body #test-canvas {
  239. position: fixed;
  240. top: 100vh;
  241. }
  242. .switch {
  243. height: 24pt;
  244. }
  245. .switch input {
  246. transform: scale(2);
  247. }
  248. .bottom-name {
  249. display: none;
  250. text-align: center;
  251. position: fixed;
  252. width: 150px;
  253. height: 50px;
  254. transform: translate(-50%, 0%);
  255. }
  256. body.toggle-bottom-name .bottom-name {
  257. display: inline;
  258. }
  259. #spawners > button {
  260. display: none;
  261. font-size: 24pt;
  262. }
  263. #spawners > select {
  264. display: none;
  265. font-size: 24pt;
  266. }
  267. #spawners > select#category-picker {
  268. display: inline;
  269. }
  270. #spawners > button.category-visible,
  271. #spawners > select.category-visible {
  272. display: inline;
  273. }
  274. #menubar button {
  275. font-size: 24pt;
  276. }
  277. #help {
  278. display: none;
  279. flex-direction: column;
  280. justify-content: space-evenly;
  281. align-items: center;
  282. position: absolute;
  283. width: 60vw;
  284. height: 60vh;
  285. margin: 0pt;
  286. padding-top: 20vh;
  287. padding-bottom: 20vh;
  288. padding-left: 20vw;
  289. padding-right: 20vw;
  290. transition: 1s;
  291. text-align: center;
  292. background: #333;
  293. opacity: 0;
  294. z-index: 9999999;
  295. }
  296. #help.visible {
  297. display: flex;
  298. opacity: 0.9;
  299. transition: 1s;
  300. }
  301. #help h1 {
  302. font-size: 150%;
  303. }
  304. #help p {
  305. font-size: 125%;
  306. }
  307. #help button {
  308. width: 20vw;
  309. height: 10vh;
  310. font-size: 9vh;
  311. }
  312. a {
  313. color: #999;
  314. }
  315. #options-attribution-authors {
  316. text-align: center;
  317. }
  318. #options-attribution-owners {
  319. text-align: center;
  320. }
  321. #options-attribution-source {
  322. text-align: center;
  323. }
  324. .floating-slider {
  325. position: absolute;
  326. z-index: 1000;
  327. width: 250px;
  328. height: 50px;
  329. }
  330. #slider-scale {
  331. top: 1%;
  332. left: 5%;
  333. }
  334. #slider-scale:before {
  335. content: "World scale";
  336. position: absolute;
  337. left: 50%;
  338. transform: translate(-50%, 0%);
  339. font-size: 20px;
  340. }
  341. #slider-entity-scale {
  342. top: 1%;
  343. right: 5%;
  344. }
  345. #slider-entity-scale:before {
  346. content: "Entity scale";
  347. position: absolute;
  348. left: 50%;
  349. transform: translate(-50%, 0%);
  350. font-size: 20px;
  351. }
  352. .no-transition {
  353. transition: 0s !important;
  354. }
  355. .corner-ribbon {
  356. width: 200px;
  357. background: #e43;
  358. position: absolute;
  359. top: 25px;
  360. left: -50px;
  361. text-align: center;
  362. padding: 10px;
  363. letter-spacing: 1px;
  364. color: #f0f0f0;
  365. transform: rotate(-45deg);
  366. -webkit-transform: rotate(-45deg);
  367. }
  368. .corner-ribbon.bottom-right{
  369. top: auto;
  370. right: -50px;
  371. bottom: 25px;
  372. left: auto;
  373. transform: rotate(-45deg);
  374. -webkit-transform: rotate(-45deg);
  375. }
  376. a.corner-ribbon {
  377. text-decoration: none;
  378. }