GameUI.uss 6.0 KB

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