TravelUI.uss 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. /* Travel UI Styles */
  2. .travel-container {
  3. /* Position to the left-center instead of right to avoid TeamOverview overlap */
  4. position: absolute !important;
  5. top: 50% !important;
  6. left: 50% !important;
  7. right: auto !important;
  8. bottom: auto !important;
  9. width: auto !important;
  10. height: auto !important;
  11. background-color: transparent !important;
  12. justify-content: center !important;
  13. align-items: center !important;
  14. transform: translate(-50%, -50%) !important;
  15. display: none;
  16. }
  17. .travel-panel {
  18. background-color: rgba(45, 45, 45, 0.95) !important;
  19. border-width: 2px !important;
  20. border-color: rgb(80, 80, 80) !important;
  21. border-radius: 8px !important;
  22. padding: 15px !important;
  23. width: 320px !important;
  24. min-height: 420px !important;
  25. max-height: 600px !important;
  26. flex-direction: column;
  27. flex-shrink: 0;
  28. cursor: move;
  29. }
  30. .travel-header {
  31. flex-direction: row !important;
  32. justify-content: space-between !important;
  33. align-items: center !important;
  34. margin-bottom: 10px !important;
  35. background-color: rgba(60, 60, 60, 0.8) !important;
  36. margin: -20px -20px 10px -20px !important;
  37. padding: 10px 20px !important;
  38. border-top-left-radius: 6px !important;
  39. border-top-right-radius: 6px !important;
  40. }
  41. .travel-title {
  42. font-size: 14px !important;
  43. -unity-font-style: bold !important;
  44. color: rgb(220, 220, 220) !important;
  45. margin: 0 !important;
  46. flex-grow: 1 !important;
  47. }
  48. .close-button {
  49. width: 24px !important;
  50. height: 24px !important;
  51. margin: 0 !important;
  52. padding: 0 !important;
  53. background-color: transparent !important;
  54. border-width: 0 !important;
  55. color: rgb(200, 200, 200) !important;
  56. font-size: 16px !important;
  57. -unity-font-style: bold !important;
  58. }
  59. .close-button:hover {
  60. background-color: rgba(200, 50, 50, 0.7) !important;
  61. color: white !important;
  62. }
  63. .travel-info {
  64. flex-direction: column;
  65. margin-bottom: 10px;
  66. padding: 10px;
  67. background-color: rgba(30, 30, 30, 0.8);
  68. border-radius: 5px;
  69. border-width: 1px;
  70. border-color: rgba(100, 100, 100, 0.5);
  71. height: 120px;
  72. flex-shrink: 0;
  73. overflow: hidden;
  74. }
  75. .info-label {
  76. font-size: 14px;
  77. color: rgb(240, 240, 240) !important;
  78. margin-bottom: 3px;
  79. -unity-font-style: normal;
  80. height: auto;
  81. min-height: 18px;
  82. flex-shrink: 0;
  83. }
  84. .button-container {
  85. flex-direction: row;
  86. justify-content: space-between;
  87. margin-top: auto;
  88. /* Note: gap not supported in Unity, use margins on children instead */
  89. }
  90. .travel-button {
  91. flex: 1;
  92. padding: 8px 12px;
  93. font-size: 12px;
  94. -unity-font-style: bold;
  95. border-width: 0;
  96. border-radius: 5px;
  97. min-height: 35px;
  98. white-space: normal;
  99. -unity-text-align: middle-center;
  100. margin-left: 4px;
  101. margin-right: 4px;
  102. }
  103. .primary-button {
  104. background-color: rgb(34, 139, 34);
  105. color: rgb(255, 255, 255);
  106. }
  107. .primary-button:hover {
  108. background-color: rgb(50, 180, 50);
  109. }
  110. .primary-button:disabled {
  111. background-color: rgb(80, 80, 80) !important;
  112. color: rgb(150, 150, 150) !important;
  113. }
  114. .primary-button:disabled:hover {
  115. background-color: rgb(80, 80, 80) !important;
  116. color: rgb(150, 150, 150) !important;
  117. }
  118. .secondary-button {
  119. background-color: rgb(180, 50, 50);
  120. color: rgb(255, 255, 255);
  121. }
  122. .secondary-button:hover {
  123. background-color: rgb(220, 70, 70);
  124. }
  125. /* Route Options Section */
  126. .route-options {
  127. flex-direction: column;
  128. margin-bottom: 15px;
  129. padding: 10px;
  130. background-color: rgba(25, 25, 35, 0.8);
  131. border-radius: 5px;
  132. border-width: 1px;
  133. border-color: rgba(100, 100, 120, 0.5);
  134. flex-grow: 1;
  135. min-height: 200px;
  136. max-height: 300px;
  137. flex-shrink: 0;
  138. overflow: hidden;
  139. }
  140. .section-title {
  141. font-size: 14px;
  142. -unity-font-style: bold;
  143. color: rgb(220, 220, 255) !important;
  144. margin-bottom: 8px;
  145. }
  146. .toggle-container {
  147. flex-direction: column;
  148. flex-grow: 1;
  149. /* Note: gap not supported in Unity, using margin-bottom on children instead */
  150. }
  151. .route-toggle {
  152. color: rgb(240, 240, 240) !important;
  153. font-size: 13px;
  154. margin-bottom: 5px;
  155. }
  156. .route-toggle > .unity-toggle__checkmark {
  157. background-color: rgba(50, 50, 50, 0.9) !important;
  158. border-color: rgb(120, 120, 120) !important;
  159. border-width: 1px !important;
  160. border-radius: 3px !important;
  161. }
  162. .route-toggle:checked > .unity-toggle__checkmark {
  163. background-color: rgb(34, 139, 34) !important;
  164. border-color: rgb(50, 180, 50) !important;
  165. }
  166. .route-toggle > .unity-toggle__text {
  167. color: rgb(240, 240, 240) !important;
  168. }
  169. .special-costs {
  170. color: rgb(255, 200, 100);
  171. -unity-font-style: bold;
  172. white-space: normal;
  173. -unity-text-align: upper-left;
  174. overflow: visible;
  175. flex-shrink: 0;
  176. min-height: 20px;
  177. max-height: 60px;
  178. }
  179. .warning-section {
  180. flex-direction: column;
  181. margin-bottom: 10px;
  182. height: 20px;
  183. flex-shrink: 0;
  184. }
  185. .insufficient-funds {
  186. color: rgb(255, 100, 100) !important;
  187. -unity-font-style: bold !important;
  188. font-size: 12px !important;
  189. -unity-text-align: middle-center;
  190. background-color: rgba(150, 30, 30, 0.3);
  191. border-radius: 3px;
  192. padding: 3px;
  193. border-width: 1px;
  194. border-color: rgba(255, 100, 100, 0.5);
  195. height: 18px;
  196. flex-shrink: 0;
  197. }
  198. .alternative-button {
  199. background-color: rgb(100, 100, 150);
  200. color: rgb(255, 255, 255);
  201. margin-top: auto;
  202. margin-bottom: 2px;
  203. font-size: 11px;
  204. padding: 6px 8px;
  205. min-height: 28px;
  206. }
  207. .alternative-button:hover {
  208. background-color: rgb(130, 130, 180);
  209. }
  210. /* Responsive adjustments */
  211. @media (max-width: 800px) {
  212. .travel-container {
  213. left: 10px;
  214. right: 10px;
  215. max-width: none;
  216. }
  217. .travel-panel {
  218. padding: 15px;
  219. }
  220. .button-container {
  221. flex-direction: column;
  222. /* Note: gap not supported, using margin on children */
  223. }
  224. .travel-button {
  225. min-height: 35px;
  226. font-size: 13px;
  227. margin-bottom: 8px;
  228. margin-left: 0;
  229. margin-right: 0;
  230. }
  231. }
  232. /* Route List Styles */
  233. .route-list {
  234. flex-direction: column;
  235. flex-grow: 1;
  236. margin-top: 5px;
  237. overflow: scroll;
  238. max-height: 250px;
  239. }
  240. .route-option {
  241. flex-direction: row;
  242. background-color: rgba(40, 40, 40, 0.8);
  243. border-width: 1px;
  244. border-color: rgba(80, 80, 80, 0.5);
  245. border-radius: 4px;
  246. margin-bottom: 4px;
  247. padding: 8px;
  248. min-height: 70px;
  249. cursor: link;
  250. overflow: hidden;
  251. }
  252. .route-option:hover {
  253. background-color: rgba(60, 60, 60, 0.9);
  254. border-color: rgba(120, 120, 120, 0.8);
  255. }
  256. .route-selected {
  257. background-color: rgba(34, 139, 34, 0.3) !important;
  258. border-color: rgb(50, 180, 50) !important;
  259. border-width: 2px !important;
  260. }
  261. .route-color-indicator {
  262. width: 8px;
  263. min-width: 8px;
  264. margin-right: 10px;
  265. border-radius: 4px;
  266. background-color: rgb(100, 100, 100);
  267. flex-shrink: 0;
  268. }
  269. .route-details {
  270. flex-direction: column;
  271. flex-grow: 1;
  272. justify-content: flex-start;
  273. overflow: hidden;
  274. }
  275. .route-header {
  276. font-size: 13px;
  277. -unity-font-style: bold;
  278. color: rgb(220, 220, 220);
  279. margin-bottom: 3px;
  280. white-space: nowrap;
  281. overflow: hidden;
  282. text-overflow: ellipsis;
  283. }
  284. .route-time {
  285. font-size: 11px;
  286. color: rgb(180, 220, 180);
  287. margin-bottom: 2px;
  288. white-space: nowrap;
  289. }
  290. .route-cost {
  291. font-size: 11px;
  292. color: rgb(220, 180, 180);
  293. margin-bottom: 2px;
  294. white-space: nowrap;
  295. }
  296. .route-special {
  297. font-size: 10px;
  298. color: rgb(255, 200, 100);
  299. -unity-font-style: italic;
  300. white-space: normal;
  301. overflow: hidden;
  302. }
  303. .route-debug {
  304. font-size: 9px;
  305. color: rgb(150, 150, 150);
  306. -unity-font-style: italic;
  307. margin-top: 2px;
  308. white-space: nowrap;
  309. overflow: hidden;
  310. }