GameUI.uss 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  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: 60px;
  59. white-space: nowrap;
  60. }
  61. /* Time Controls */
  62. .time-controls {
  63. flex-direction: row;
  64. align-items: center;
  65. }
  66. .time-speed-label {
  67. color: white;
  68. font-size: 16px;
  69. -unity-font-style: bold;
  70. margin-right: 10px;
  71. background-color: rgba(0, 0, 0, 0.7);
  72. padding: 5px 10px;
  73. border-radius: 3px;
  74. }
  75. .time-button {
  76. margin-left: 5px;
  77. padding: 5px 10px;
  78. background-color: rgba(70, 130, 180, 0.8);
  79. border-color: rgba(255, 255, 255, 0.3);
  80. border-width: 1px;
  81. border-radius: 3px;
  82. color: white;
  83. font-size: 12px;
  84. }
  85. .time-button:hover {
  86. background-color: rgba(100, 149, 237, 0.9);
  87. }
  88. .time-button:active {
  89. background-color: rgba(30, 144, 255, 1);
  90. }
  91. /* Side Panel */
  92. .side-panel {
  93. position: absolute;
  94. right: 10px;
  95. top: 80px;
  96. width: 320px;
  97. height: auto;
  98. max-height: calc(100% - 180px);
  99. overflow-y: auto;
  100. }
  101. .info-panel {
  102. background-color: rgba(0, 0, 0, 0.8);
  103. border-color: rgba(255, 255, 255, 0.3);
  104. border-width: 1px;
  105. border-radius: 5px;
  106. padding: 10px;
  107. margin-bottom: 10px;
  108. width: 100%;
  109. overflow: hidden;
  110. box-sizing: border-box;
  111. }
  112. .panel-title {
  113. color: rgb(255, 215, 0);
  114. font-size: 14px;
  115. -unity-font-style: bold;
  116. margin-bottom: 8px;
  117. border-bottom-width: 1px;
  118. border-bottom-color: rgba(255, 215, 0, 0.5);
  119. padding-bottom: 3px;
  120. }
  121. .info-text {
  122. color: white;
  123. font-size: 12px;
  124. white-space: normal;
  125. margin-bottom: 5px;
  126. word-wrap: break-word;
  127. overflow-wrap: break-word;
  128. max-width: 100%;
  129. }
  130. .small-text {
  131. font-size: 10px;
  132. color: rgba(255, 255, 255, 0.8);
  133. }
  134. /* Job Buttons */
  135. .job-buttons-container {
  136. flex-direction: column;
  137. margin-top: 10px;
  138. }
  139. .job-buttons-container > Button {
  140. margin-bottom: 3px;
  141. padding: 3px 8px;
  142. background-color: rgba(34, 139, 34, 0.7);
  143. border-color: rgba(255, 255, 255, 0.3);
  144. border-width: 1px;
  145. border-radius: 3px;
  146. color: white;
  147. font-size: 11px;
  148. }
  149. .job-buttons-container > Button:hover {
  150. background-color: rgba(50, 205, 50, 0.8);
  151. }
  152. .job-buttons-container > Button:active {
  153. background-color: rgba(0, 128, 0, 1);
  154. }
  155. /* Bottom HUD */
  156. .bottom-hud {
  157. position: absolute;
  158. bottom: 10px;
  159. left: 10px;
  160. right: 10px;
  161. height: auto;
  162. background-color: rgba(0, 0, 0, 0.6);
  163. border-radius: 5px;
  164. padding: 8px;
  165. }
  166. .status-text {
  167. color: white;
  168. font-size: 12px;
  169. text-align: middle-center;
  170. }
  171. /* Build Menu Styles */
  172. .build-menu-panel {
  173. background-color: rgba(0, 0, 0, 0.8);
  174. border-color: rgba(255, 255, 255, 0.3);
  175. border-width: 1px;
  176. border-radius: 5px;
  177. padding: 10px;
  178. margin-bottom: 10px;
  179. width: 100%;
  180. overflow: hidden;
  181. box-sizing: border-box;
  182. }
  183. .build-toggle-button {
  184. padding: 8px 12px;
  185. background-color: rgba(139, 69, 19, 0.8);
  186. border-color: rgba(255, 255, 255, 0.5);
  187. border-width: 1px;
  188. border-radius: 5px;
  189. color: white;
  190. font-size: 14px;
  191. -unity-font-style: bold;
  192. margin-bottom: 5px;
  193. }
  194. .build-toggle-button:hover {
  195. background-color: rgba(160, 82, 45, 0.9);
  196. }
  197. .build-categories-container {
  198. flex-direction: row;
  199. justify-content: space-around;
  200. margin-bottom: 15px;
  201. flex-wrap: wrap;
  202. }
  203. .category-button {
  204. padding: 6px 10px;
  205. background-color: rgba(70, 130, 180, 0.8);
  206. border-color: rgba(255, 255, 255, 0.3);
  207. border-width: 1px;
  208. border-radius: 4px;
  209. color: white;
  210. font-size: 12px;
  211. margin: 2px;
  212. min-width: 60px;
  213. }
  214. .category-button:hover {
  215. background-color: rgba(100, 149, 237, 0.9);
  216. }
  217. .category-button.selected {
  218. background-color: rgba(30, 144, 255, 1);
  219. border-color: rgba(255, 255, 255, 0.8);
  220. }
  221. .build-items-container {
  222. flex-direction: column;
  223. }
  224. .build-item-button {
  225. padding: 8px;
  226. background-color: rgba(34, 139, 34, 0.8);
  227. border-color: rgba(255, 255, 255, 0.3);
  228. border-width: 1px;
  229. border-radius: 4px;
  230. color: white;
  231. font-size: 12px;
  232. margin-bottom: 5px;
  233. flex-direction: row;
  234. justify-content: space-between;
  235. align-items: center;
  236. }
  237. .build-item-button:hover {
  238. background-color: rgba(60, 179, 113, 0.9);
  239. }
  240. .build-item-button:active {
  241. background-color: rgba(34, 139, 34, 1);
  242. }
  243. .build-item-name {
  244. color: white;
  245. font-size: 12px;
  246. -unity-font-style: bold;
  247. }
  248. .build-item-cost {
  249. color: rgba(255, 215, 0, 0.9);
  250. font-size: 10px;
  251. }
  252. /* Housing Panel Styles */
  253. .housing-panel {
  254. background-color: rgba(0, 0, 0, 0.8);
  255. border-color: rgba(255, 255, 255, 0.3);
  256. border-width: 1px;
  257. border-radius: 5px;
  258. padding: 10px;
  259. margin-bottom: 10px;
  260. }
  261. .housing-status {
  262. color: white;
  263. font-size: 12px;
  264. margin-bottom: 5px;
  265. }
  266. .housing-warning {
  267. color: rgba(255, 100, 100, 1);
  268. font-size: 12px;
  269. -unity-font-style: bold;
  270. margin-bottom: 5px;
  271. }
  272. /* Responsive adjustments */
  273. @media screen and (max-width: 1024px) {
  274. .side-panel {
  275. width: 200px;
  276. }
  277. .resource-amount {
  278. font-size: 14px;
  279. }
  280. }