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.
 
 
 

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