less copy protection, more size visualization
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

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