GameUI.uss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. /* Main Container Styles */
  2. .main-container {
  3. width: 100%;
  4. height: 100%;
  5. position: absolute;
  6. top: 0;
  7. left: 0;
  8. }
  9. /* Top HUD Styles */
  10. .top-hud {
  11. flex-direction: row;
  12. justify-content: space-between;
  13. align-items: flex-start;
  14. width: 100%;
  15. height: auto;
  16. padding: 10px;
  17. background-color: rgba(0, 0, 0, 0.3);
  18. border-bottom-width: 2px;
  19. border-bottom-color: rgba(255, 255, 255, 0.2);
  20. }
  21. .resources-panel {
  22. flex-direction: row;
  23. align-items: center;
  24. }
  25. .resource-item {
  26. flex-direction: row;
  27. align-items: center;
  28. margin-right: 20px;
  29. padding: 5px 10px;
  30. background-color: rgba(0, 0, 0, 0.5);
  31. border-radius: 5px;
  32. }
  33. .resource-icon {
  34. width: 24px;
  35. height: 24px;
  36. margin-right: 5px;
  37. border-radius: 3px;
  38. }
  39. .wood-icon {
  40. background-color: rgb(139, 69, 19);
  41. }
  42. .stone-icon {
  43. background-color: rgb(128, 128, 128);
  44. }
  45. .food-icon {
  46. background-color: rgb(255, 215, 0);
  47. }
  48. .resource-label {
  49. color: white;
  50. font-size: 14px;
  51. margin-right: 5px;
  52. -unity-font-style: bold;
  53. }
  54. .resource-amount {
  55. color: rgb(255, 255, 0);
  56. font-size: 16px;
  57. -unity-font-style: bold;
  58. min-width: 40px;
  59. }
  60. /* Time Controls */
  61. .time-controls {
  62. flex-direction: row;
  63. align-items: center;
  64. }
  65. .time-speed-label {
  66. color: white;
  67. font-size: 16px;
  68. -unity-font-style: bold;
  69. margin-right: 10px;
  70. background-color: rgba(0, 0, 0, 0.7);
  71. padding: 5px 10px;
  72. border-radius: 3px;
  73. }
  74. .time-button {
  75. margin-left: 5px;
  76. padding: 5px 10px;
  77. background-color: rgba(70, 130, 180, 0.8);
  78. border-color: rgba(255, 255, 255, 0.3);
  79. border-width: 1px;
  80. border-radius: 3px;
  81. color: white;
  82. font-size: 12px;
  83. }
  84. .time-button:hover {
  85. background-color: rgba(100, 149, 237, 0.9);
  86. }
  87. .time-button:active {
  88. background-color: rgba(30, 144, 255, 1);
  89. }
  90. /* Side Panel */
  91. .side-panel {
  92. position: absolute;
  93. right: 10px;
  94. top: 80px;
  95. width: 250px;
  96. height: auto;
  97. max-height: 70%;
  98. }
  99. .info-panel {
  100. background-color: rgba(0, 0, 0, 0.8);
  101. border-color: rgba(255, 255, 255, 0.3);
  102. border-width: 1px;
  103. border-radius: 5px;
  104. padding: 10px;
  105. margin-bottom: 10px;
  106. }
  107. .panel-title {
  108. color: rgb(255, 215, 0);
  109. font-size: 14px;
  110. -unity-font-style: bold;
  111. margin-bottom: 8px;
  112. border-bottom-width: 1px;
  113. border-bottom-color: rgba(255, 215, 0, 0.5);
  114. padding-bottom: 3px;
  115. }
  116. .info-text {
  117. color: white;
  118. font-size: 12px;
  119. white-space: normal;
  120. margin-bottom: 5px;
  121. }
  122. .small-text {
  123. font-size: 10px;
  124. color: rgba(255, 255, 255, 0.8);
  125. }
  126. /* Job Buttons */
  127. .job-buttons-container {
  128. flex-direction: column;
  129. margin-top: 10px;
  130. }
  131. .job-buttons-container > Button {
  132. margin-bottom: 3px;
  133. padding: 3px 8px;
  134. background-color: rgba(34, 139, 34, 0.7);
  135. border-color: rgba(255, 255, 255, 0.3);
  136. border-width: 1px;
  137. border-radius: 3px;
  138. color: white;
  139. font-size: 11px;
  140. }
  141. .job-buttons-container > Button:hover {
  142. background-color: rgba(50, 205, 50, 0.8);
  143. }
  144. .job-buttons-container > Button:active {
  145. background-color: rgba(0, 128, 0, 1);
  146. }
  147. /* Bottom HUD */
  148. .bottom-hud {
  149. position: absolute;
  150. bottom: 10px;
  151. left: 10px;
  152. right: 10px;
  153. height: auto;
  154. background-color: rgba(0, 0, 0, 0.6);
  155. border-radius: 5px;
  156. padding: 8px;
  157. }
  158. .status-text {
  159. color: white;
  160. font-size: 12px;
  161. text-align: middle-center;
  162. }
  163. /* Responsive adjustments */
  164. @media screen and (max-width: 1024px) {
  165. .side-panel {
  166. width: 200px;
  167. }
  168. .resource-amount {
  169. font-size: 14px;
  170. }
  171. }