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.
 
 
 

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