TravelUI.uss 7.7 KB

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