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.
 
 
 

163 line
2.6 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. transform: translate(-50%, -100%);
  39. }
  40. .entity-name {
  41. position: absolute;
  42. top: -100%;
  43. left: 0%;
  44. transform: translate(-50%, -36px);
  45. font-size: 24px;
  46. pointer-events: none
  47. }
  48. .selected {
  49. filter: drop-shadow(0px 0px 15px gold);
  50. }
  51. #main-area {
  52. display: flex;
  53. min-width: 100vw;
  54. height: 100%;
  55. flex-direction: row;
  56. }
  57. #options {
  58. flex: 1 0 15vw;
  59. display: flex;
  60. justify-content: start;
  61. flex-direction: column;
  62. background: #444;
  63. }
  64. .options-row {
  65. display: flex;
  66. text-align: center;
  67. max-width: 15vw;
  68. }
  69. @media (max-aspect-ratio: 1/1) {
  70. .options-row {
  71. flex-direction: column;
  72. }
  73. .options-row > .options-field-numeric {
  74. width: 100%;
  75. }
  76. .options-row > .options-field-unit {
  77. width: 100%;
  78. }
  79. }
  80. .options-header {
  81. text-align: center;
  82. font-size: 24pt;
  83. margin-top: 10px;
  84. margin-bottom: 10px;
  85. }
  86. #entities {
  87. position: relative;
  88. user-select: none;
  89. }
  90. #world {
  91. flex: 9 0 85vw;
  92. min-height: 90vh;
  93. max-height: 90vh;
  94. overflow: hidden;
  95. }
  96. #menubar {
  97. display: flex;
  98. flex-direction: row;
  99. justify-content: center;
  100. align-items: center;
  101. min-height: 10vh;
  102. min-width: 100vw;
  103. background: #222;
  104. }
  105. .menu-item {
  106. font-size: 24px;
  107. color: #ccc;
  108. margin: 20px;
  109. }
  110. #display {
  111. width: 100%;
  112. height: 100%;
  113. background: #333;
  114. }
  115. #options .options-label {
  116. flex: 0 1;
  117. width: 100%;
  118. font-size: 150%;
  119. }
  120. .options-label {
  121. text-align: center;
  122. }
  123. .options-row .options-field-numeric {
  124. flex: 2;
  125. font-size: 150%;
  126. }
  127. .options-row .options-field-text {
  128. flex: 1;
  129. font-size: 150%;
  130. }
  131. .options-row .options-field-unit {
  132. flex: 1;
  133. font-size: 150%;
  134. }
  135. body #test-canvas {
  136. position: fixed;
  137. top: 100vh;
  138. }