MapLegend.uss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. /* Map Legend UI Styles */
  2. .map-legend {
  3. position: absolute;
  4. top: 20px;
  5. left: 20px;
  6. width: 280px;
  7. min-width: 250px;
  8. max-width: 350px;
  9. flex-direction: column;
  10. }
  11. .legend-toggle-btn {
  12. background-color: rgba(32, 32, 32, 0.95);
  13. color: white;
  14. border-top-left-radius: 8px;
  15. border-top-right-radius: 8px;
  16. border-bottom-left-radius: 0px;
  17. border-bottom-right-radius: 0px;
  18. border-width: 0px;
  19. padding: 10px 15px;
  20. font-size: 14px;
  21. transition-duration: 0.3s;
  22. transition-property: background-color;
  23. }
  24. .legend-toggle-btn:hover {
  25. background-color: rgba(48, 48, 48, 0.95);
  26. }
  27. .legend-toggle-btn:active {
  28. background-color: rgba(64, 64, 64, 0.95);
  29. }
  30. .legend-content {
  31. background-color: rgba(16, 16, 16, 0.95);
  32. border-bottom-left-radius: 8px;
  33. border-bottom-right-radius: 8px;
  34. border-top-width: 1px;
  35. border-top-color: rgba(64, 64, 64, 0.8);
  36. padding: 15px;
  37. flex-direction: column;
  38. }
  39. .legend-title {
  40. font-size: 16px;
  41. color: white;
  42. -unity-font-style: bold;
  43. margin-bottom: 12px;
  44. -unity-text-align: upper-center;
  45. }
  46. .legend-section {
  47. margin-bottom: 15px;
  48. flex-direction: column;
  49. }
  50. .legend-section-title {
  51. font-size: 14px;
  52. color: rgb(220, 220, 220);
  53. -unity-font-style: bold;
  54. margin-bottom: 8px;
  55. padding-bottom: 4px;
  56. border-bottom-width: 1px;
  57. border-bottom-color: rgba(64, 64, 64, 0.6);
  58. }
  59. .legend-item {
  60. flex-direction: row;
  61. align-items: center;
  62. margin-bottom: 6px;
  63. padding: 2px 0px;
  64. }
  65. .color-box {
  66. width: 16px;
  67. height: 16px;
  68. border-radius: 2px;
  69. margin-right: 10px;
  70. border-width: 1px;
  71. border-color: rgba(255, 255, 255, 0.3);
  72. }
  73. .legend-text {
  74. color: rgb(200, 200, 200);
  75. font-size: 12px;
  76. flex-grow: 1;
  77. }
  78. .name-toggle {
  79. margin-bottom: 6px;
  80. color: rgb(200, 200, 200);
  81. }
  82. .name-toggle Label {
  83. color: rgb(200, 200, 200);
  84. font-size: 12px;
  85. }
  86. .name-toggle > .unity-toggle__input {
  87. background-color: rgba(64, 64, 64, 0.8);
  88. border-color: rgba(128, 128, 128, 0.6);
  89. border-radius: 3px;
  90. }
  91. .name-toggle > .unity-toggle__input:checked {
  92. background-color: rgba(0, 128, 255, 0.8);
  93. border-color: rgba(0, 128, 255, 1.0);
  94. }
  95. .name-toggle > .unity-toggle__input > .unity-toggle__checkmark {
  96. background-color: white;
  97. border-radius: 1px;
  98. }
  99. .controls-info {
  100. border-top-width: 1px;
  101. border-top-color: rgba(64, 64, 64, 0.6);
  102. padding-top: 10px;
  103. margin-bottom: 0px;
  104. }
  105. .controls-text {
  106. color: rgba(180, 180, 180, 0.9);
  107. font-size: 11px;
  108. margin-bottom: 3px;
  109. }
  110. /* Legacy styles for compatibility */
  111. .legend-container {
  112. position: absolute;
  113. top: 20px;
  114. left: 20px;
  115. background-color: rgba(0, 0, 0, 0.8);
  116. border-radius: 10px;
  117. padding: 15px;
  118. min-width: 250px;
  119. border-width: 2px;
  120. border-color: rgba(255, 255, 255, 0.3);
  121. }
  122. .legend-items {
  123. margin-bottom: 15px;
  124. }
  125. .controls-title {
  126. font-size: 16px;
  127. color: white;
  128. font-style: bold;
  129. margin-bottom: 5px;
  130. }
  131. .controls-text {
  132. color: rgba(255, 255, 255, 0.8);
  133. font-size: 12px;
  134. margin-bottom: 2px;
  135. }
  136. /* Color definitions matching your WorldMapGenerator colors */
  137. .ocean-color {
  138. background-color: rgb(0, 100, 200); /* Blue */
  139. }
  140. .river-color {
  141. background-color: rgb(64, 164, 223); /* Light Blue */
  142. }
  143. .plain-color {
  144. background-color: rgb(124, 178, 124); /* Light Green */
  145. }
  146. .forest-color {
  147. background-color: rgb(34, 139, 34); /* Forest Green */
  148. }
  149. .mountain-color {
  150. background-color: rgb(139, 139, 139); /* Gray */
  151. }
  152. .town-color {
  153. background-color: rgb(204, 102, 51); /* Orange-brown (0.8, 0.4, 0.2) */
  154. }
  155. .village-color {
  156. background-color: rgb(230, 179, 102); /* Light brown (0.9, 0.7, 0.4) */
  157. }
  158. .road-color {
  159. background-color: rgb(153, 128, 77); /* Brown (0.6, 0.5, 0.3) */
  160. }
  161. .dock-color {
  162. background-color: rgb(102, 77, 51); /* Dark brown (0.4, 0.3, 0.2) */
  163. }
  164. /* Location Name Label Styles */
  165. .location-name-label {
  166. position: absolute;
  167. font-size: 12px;
  168. color: white;
  169. padding: 2px 6px;
  170. background-color: rgba(0, 0, 0, 0.7);
  171. border-radius: 3px;
  172. white-space: nowrap;
  173. pointer-events: none;
  174. -unity-text-align: middle-center;
  175. border-width: 1px;
  176. border-color: rgba(255, 255, 255, 0.2);
  177. }
  178. .settlement-name {
  179. color: rgb(255, 215, 0); /* Gold */
  180. -unity-font-style: bold;
  181. font-size: 13px;
  182. }
  183. .forest-name {
  184. color: rgb(144, 238, 144); /* Light Green */
  185. }
  186. .lake-name {
  187. color: rgb(173, 216, 230); /* Light Blue */
  188. }
  189. .plain-name {
  190. color: rgb(255, 255, 224); /* Light Yellow */
  191. font-size: 11px;
  192. }
  193. .mountain-name {
  194. color: rgb(192, 192, 192); /* Silver */
  195. -unity-font-style: bold;
  196. }
  197. .river-name {
  198. color: rgb(135, 206, 250); /* Light Sky Blue */
  199. font-size: 11px;
  200. }