less copy protection, more size visualization
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

454 wiersze
7.4 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. margin-top: 10px;
  125. margin-bottom: 10px;
  126. }
  127. .options-block {
  128. display: flex;
  129. text-align: center;
  130. min-width: 100%;
  131. flex-direction: column;
  132. }
  133. @media (max-aspect-ratio: 1/1) {
  134. .options-row {
  135. flex-direction: column;
  136. }
  137. .options-row > .options-field-numeric {
  138. width: 100%;
  139. }
  140. .options-row > .options-field-unit {
  141. width: 100%;
  142. }
  143. }
  144. .options-header {
  145. text-align: center;
  146. font-size: 24pt;
  147. margin-top: 10px;
  148. margin-bottom: 10px;
  149. }
  150. .options-selector {
  151. font-size: 150%;
  152. width: 100%;
  153. }
  154. #entities {
  155. position: relative;
  156. user-select: none;
  157. }
  158. #world {
  159. position: relative;
  160. flex: 9 0 85vw;
  161. min-height: 85vh;
  162. max-height: 85vh;
  163. overflow: hidden;
  164. }
  165. #menubar {
  166. display: flex;
  167. flex-direction: row;
  168. justify-content: space-evenly;
  169. align-items: center;
  170. flex-wrap: wrap;
  171. min-height: 10vh;
  172. min-width: 100vw;
  173. background: #222;
  174. transition: 0.25s;
  175. }
  176. #menubar.hover-delete {
  177. background: #922;
  178. }
  179. .menubar-group {
  180. display: flex;
  181. flex-direction: row;
  182. justify-content: center;
  183. align-items: center;
  184. }
  185. .menubar-group button,
  186. .menubar-group select {
  187. height: 5vh;
  188. }
  189. .menu-item {
  190. font-size: 24px;
  191. color: #ccc;
  192. margin: 20px;
  193. }
  194. select.menu-item {
  195. color: #000;
  196. }
  197. #display {
  198. width: 100%;
  199. height: 100%;
  200. background: #333;
  201. }
  202. #options .options-label {
  203. flex: 0 1;
  204. width: 100%;
  205. font-size: 150%;
  206. }
  207. .options-label {
  208. text-align: center;
  209. }
  210. .options-row .options-field-numeric {
  211. flex: 1 1 60%;
  212. min-width: 0px;
  213. font-size: 150%;
  214. }
  215. .options-row .options-field-text {
  216. flex: 1 1 100%;
  217. min-width: 0px;
  218. font-size: 150%;
  219. }
  220. .options-row .options-field-unit {
  221. flex: 1 1 40%;
  222. min-width: 0px;
  223. font-size: 150%;
  224. }
  225. .options-row .options-button {
  226. flex: 1;
  227. width: 100%;
  228. font-size: 150%;
  229. }
  230. .options-block .options-button {
  231. flex: 1;
  232. width: 100%;
  233. font-size: 150%;
  234. }
  235. .options-row label {
  236. flex: 1;
  237. width: 100%;
  238. font-size: 150%;
  239. }
  240. body #test-canvas {
  241. position: fixed;
  242. top: 100vh;
  243. }
  244. .switch {
  245. height: 24pt;
  246. }
  247. .switch input {
  248. transform: scale(2);
  249. }
  250. .bottom-name {
  251. display: none;
  252. text-align: center;
  253. position: fixed;
  254. width: 150px;
  255. height: 50px;
  256. transform: translate(-50%, 0%);
  257. }
  258. body.toggle-bottom-name .bottom-name {
  259. display: inline;
  260. }
  261. #spawners > button {
  262. display: none;
  263. font-size: 24pt;
  264. }
  265. #spawners > select {
  266. display: none;
  267. font-size: 24pt;
  268. }
  269. #spawners > select#category-picker {
  270. display: inline;
  271. }
  272. #spawners > button.category-visible,
  273. #spawners > select.category-visible {
  274. display: inline;
  275. }
  276. #menubar button {
  277. font-size: 24pt;
  278. }
  279. #help {
  280. display: none;
  281. flex-direction: column;
  282. justify-content: space-evenly;
  283. align-items: center;
  284. position: absolute;
  285. width: 60vw;
  286. height: 60vh;
  287. margin: 0pt;
  288. padding-top: 20vh;
  289. padding-bottom: 20vh;
  290. padding-left: 20vw;
  291. padding-right: 20vw;
  292. transition: 1s;
  293. text-align: center;
  294. background: #333;
  295. opacity: 0;
  296. z-index: 9999999;
  297. }
  298. #help.visible {
  299. display: flex;
  300. opacity: 0.9;
  301. transition: 1s;
  302. }
  303. #help h1 {
  304. font-size: 150%;
  305. }
  306. #help p {
  307. font-size: 125%;
  308. }
  309. #help button {
  310. width: 20vw;
  311. height: 10vh;
  312. font-size: 9vh;
  313. }
  314. a {
  315. color: #999;
  316. }
  317. #options-attribution-authors {
  318. text-align: center;
  319. }
  320. #options-attribution-owners {
  321. text-align: center;
  322. }
  323. #options-attribution-source {
  324. text-align: center;
  325. }
  326. .floating-slider {
  327. position: absolute;
  328. z-index: 1000;
  329. width: 250px;
  330. height: 50px;
  331. }
  332. #slider-scale {
  333. top: 1%;
  334. left: 5%;
  335. }
  336. #slider-scale:before {
  337. content: "World scale";
  338. position: absolute;
  339. left: 50%;
  340. transform: translate(-50%, 0%);
  341. font-size: 20px;
  342. }
  343. #slider-entity-scale {
  344. top: 1%;
  345. right: 5%;
  346. }
  347. #slider-entity-scale:before {
  348. content: "Entity scale";
  349. position: absolute;
  350. left: 50%;
  351. transform: translate(-50%, 0%);
  352. font-size: 20px;
  353. }
  354. .no-transition {
  355. transition: 0s !important;
  356. }
  357. .corner-ribbon {
  358. width: 200px;
  359. background: #e43;
  360. position: absolute;
  361. top: 25px;
  362. left: -50px;
  363. text-align: center;
  364. padding: 10px;
  365. letter-spacing: 1px;
  366. color: #f0f0f0;
  367. transform: rotate(-45deg);
  368. -webkit-transform: rotate(-45deg);
  369. }
  370. .corner-ribbon.bottom-right{
  371. top: auto;
  372. right: -50px;
  373. bottom: 25px;
  374. left: auto;
  375. transform: rotate(-45deg);
  376. -webkit-transform: rotate(-45deg);
  377. }
  378. a.corner-ribbon {
  379. text-decoration: none;
  380. }
  381. input[type=checkbox] {
  382. transform: scale(2);
  383. }
  384. input ~ label {
  385. user-select: none;
  386. }