less copy protection, more size visualization
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

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