less copy protection, more size visualization
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 

489 řádky
8.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. 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. body.toggle-entity-glow .entity-box:not(.selected) > img{
  61. filter: drop-shadow(0px 0px 2px white);
  62. }
  63. #main-area {
  64. min-height: 0px;
  65. display: flex;
  66. flex: 1 1 90vh;
  67. width: 100%;
  68. flex-direction: row;
  69. }
  70. #options {
  71. min-width: 120pt;
  72. flex: 1 0 15vw;
  73. display: flex;
  74. justify-content: start;
  75. flex-direction: column;
  76. background: #444;
  77. overflow-x: hidden;
  78. overflow-y: scroll;
  79. height: 100%;
  80. scrollbar-color: #e1e1e1 #888;
  81. }
  82. #options-attribution {
  83. display: none;
  84. }
  85. #options::-webkit-scrollbar {
  86. height: 2px;
  87. }
  88. #options::-webkit-scrollbar-button {
  89. width: 0px;
  90. height: 0px;
  91. }
  92. #options::-webkit-scrollbar-thumb {
  93. background: #e1e1e1;
  94. border: 0px none #ffffff;
  95. border-radius: 50px;
  96. }
  97. #options::-webkit-scrollbar-thumb:hover {
  98. background: #ffffff;
  99. }
  100. #options::-webkit-scrollbar-thumb:active {
  101. background: #000000;
  102. }
  103. #options::-webkit-scrollbar-track {
  104. background: #00000000;
  105. border: 0px none #ffffff;
  106. border-radius: 50px;
  107. }
  108. #options::-webkit-scrollbar-track:hover {
  109. background: #666666;
  110. }
  111. #options::-webkit-scrollbar-track:active {
  112. background: #333333;
  113. }
  114. #options::-webkit-scrollbar-corner {
  115. background: transparent;
  116. }
  117. .options-two-buttons {
  118. display: flex;
  119. justify-content: space-evenly;
  120. }
  121. .options-row {
  122. display: flex;
  123. text-align: center;
  124. width: 100%;
  125. margin-top: 10px;
  126. margin-bottom: 10px;
  127. }
  128. .options-block {
  129. display: flex;
  130. text-align: center;
  131. min-width: 100%;
  132. flex-direction: column;
  133. }
  134. @media (max-aspect-ratio: 1/1) {
  135. .options-row {
  136. flex-direction: column;
  137. }
  138. .options-row > .options-field-numeric {
  139. width: 100%;
  140. }
  141. .options-row > .options-field-unit {
  142. width: 100%;
  143. }
  144. }
  145. .options-header {
  146. text-align: center;
  147. font-size: 24pt;
  148. margin-top: 10px;
  149. margin-bottom: 10px;
  150. }
  151. .options-selector {
  152. font-size: 150%;
  153. width: 100%;
  154. }
  155. #entities {
  156. position: absolute;
  157. user-select: none;
  158. width: 100%;
  159. height: 100%;
  160. }
  161. #world {
  162. position: relative;
  163. flex: 1 0 85vw;
  164. height: 100%;
  165. overflow: hidden;
  166. }
  167. #menubar {
  168. display: flex;
  169. flex: 1 0 5vh;
  170. flex-direction: row;
  171. justify-content: space-evenly;
  172. align-items: center;
  173. flex-wrap: wrap;
  174. min-width: 100vw;
  175. background: #222;
  176. }
  177. #menubar.hover-delete {
  178. background: #922;
  179. }
  180. .menubar-group {
  181. display: flex;
  182. flex-direction: row;
  183. justify-content: center;
  184. align-items: center;
  185. }
  186. .menu-item {
  187. font-size: 24px;
  188. color: #ccc;
  189. margin: 20px;
  190. }
  191. select.menu-item {
  192. color: #000;
  193. }
  194. #display {
  195. width: 100%;
  196. height: 100%;
  197. background: #333;
  198. }
  199. #options .options-label {
  200. flex: 0 1;
  201. width: 100%;
  202. font-size: 150%;
  203. }
  204. .options-label {
  205. text-align: center;
  206. }
  207. .options-row .options-field-numeric {
  208. flex: 1 1 60%;
  209. min-width: 0px;
  210. font-size: 150%;
  211. }
  212. .options-row .options-field-text {
  213. flex: 1 1 100%;
  214. min-width: 0px;
  215. font-size: 150%;
  216. }
  217. .options-row .options-field-unit {
  218. flex: 1 1 40%;
  219. min-width: 0px;
  220. font-size: 150%;
  221. }
  222. .options-row .options-button {
  223. flex: 1;
  224. width: 100%;
  225. font-size: 150%;
  226. }
  227. .options-block .options-button {
  228. flex: 1;
  229. width: 100%;
  230. font-size: 150%;
  231. }
  232. .options-row label {
  233. flex: 1;
  234. width: 100%;
  235. font-size: 150%;
  236. }
  237. body #test-canvas {
  238. position: fixed;
  239. top: 500vh;
  240. }
  241. .switch {
  242. height: 24pt;
  243. }
  244. .switch input {
  245. transform: scale(2);
  246. }
  247. .bottom-name {
  248. display: none;
  249. text-align: center;
  250. position: fixed;
  251. width: 150px;
  252. height: 50px;
  253. transform: translate(-50%, 20pt);
  254. }
  255. body.toggle-bottom-name .bottom-name {
  256. display: inline;
  257. }
  258. #spawners > button {
  259. display: none;
  260. font-size: 24pt;
  261. }
  262. #spawners > select {
  263. display: none;
  264. font-size: 24pt;
  265. }
  266. #spawners > select#category-picker {
  267. display: inline;
  268. }
  269. #spawners > button.category-visible,
  270. #spawners > select.category-visible {
  271. display: inline;
  272. }
  273. #menubar button {
  274. font-size: 28pt;
  275. height: 36pt;
  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: fixed;
  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. }
  379. input[type=checkbox] {
  380. transform: scale(2);
  381. margin-left: 10px;
  382. margin-right: 10px;
  383. }
  384. input ~ label {
  385. user-select: none;
  386. }
  387. body.toggle-height-bars .height-bar {
  388. display: block;
  389. }
  390. .height-bar {
  391. display: none;
  392. min-width: calc(var(--xpos));
  393. min-height: 3px;
  394. height: 3px;
  395. position: absolute;
  396. opacity: 50%;
  397. background: repeating-linear-gradient(90deg, #ffffff, #ffffff 20px, #ffffff00 20px, #ffffff00 40px);
  398. top: calc(-100% + var(--extra));
  399. left: calc(-1 * var(--xpos));
  400. transition: 0s all;
  401. z-index: -1;
  402. }
  403. .height-bar::before {
  404. display: block;
  405. background: gray;
  406. position: absolute;
  407. content: var(--entity-height);
  408. transition: 0s all;
  409. }
  410. .height-bar::after {
  411. display: block;
  412. min-width: 24px;
  413. min-height: 3px;
  414. background: #ffffff;
  415. position: absolute;
  416. left: calc(var(--xpos) - 24px);
  417. transition: 0s all;
  418. content: "";
  419. }