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.
 
 
 

211 satır
3.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. }
  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: space-evenly;
  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. .menubar-group {
  117. display: flex;
  118. flex-direction: row;
  119. justify-content: center;
  120. align-items: center;
  121. }
  122. .menubar-group button,
  123. .menubar-group select {
  124. height: 5vh;
  125. }
  126. .menu-item {
  127. font-size: 24px;
  128. color: #ccc;
  129. margin: 20px;
  130. }
  131. #display {
  132. width: 100%;
  133. height: 100%;
  134. background: #333;
  135. }
  136. #options .options-label {
  137. flex: 0 1;
  138. width: 100%;
  139. font-size: 150%;
  140. }
  141. .options-label {
  142. text-align: center;
  143. }
  144. .options-row .options-field-numeric {
  145. flex: 2;
  146. width: 100%;
  147. font-size: 150%;
  148. }
  149. .options-row .options-field-text {
  150. flex: 1;
  151. width: 100%;
  152. font-size: 150%;
  153. }
  154. .options-row .options-field-unit {
  155. flex: 1;
  156. width: 100%;
  157. font-size: 150%;
  158. }
  159. .options-row .options-button {
  160. flex: 1;
  161. width: 100%;
  162. font-size: 150%;
  163. }
  164. body #test-canvas {
  165. position: fixed;
  166. top: 100vh;
  167. }
  168. .bottom-name {
  169. display: none;
  170. text-align: center;
  171. position: fixed;
  172. width: 75px;
  173. height: 50px;
  174. transform: translate(-50%, 0%);
  175. }
  176. body.toggle-bottom-name .bottom-name {
  177. display: inline;
  178. }