MapLegend.uss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. .legend-container {
  2. position: absolute;
  3. top: 20px;
  4. left: 20px;
  5. background-color: rgba(0, 0, 0, 0.8);
  6. border-radius: 10px;
  7. padding: 15px;
  8. min-width: 250px;
  9. border-width: 2px;
  10. border-color: rgba(255, 255, 255, 0.3);
  11. }
  12. .legend-title {
  13. font-size: 18px;
  14. color: white;
  15. font-style: bold;
  16. margin-bottom: 10px;
  17. text-align: center;
  18. }
  19. .legend-items {
  20. margin-bottom: 15px;
  21. }
  22. .legend-item {
  23. flex-direction: row;
  24. align-items: center;
  25. margin-bottom: 5px;
  26. }
  27. .color-box {
  28. width: 20px;
  29. height: 20px;
  30. margin-right: 10px;
  31. border-radius: 3px;
  32. border-width: 1px;
  33. border-color: rgba(255, 255, 255, 0.5);
  34. }
  35. .legend-text {
  36. color: white;
  37. font-size: 14px;
  38. flex-grow: 1;
  39. }
  40. .controls-info {
  41. border-top-width: 1px;
  42. border-top-color: rgba(255, 255, 255, 0.3);
  43. padding-top: 10px;
  44. }
  45. .controls-title {
  46. font-size: 16px;
  47. color: white;
  48. font-style: bold;
  49. margin-bottom: 5px;
  50. }
  51. .controls-text {
  52. color: rgba(255, 255, 255, 0.8);
  53. font-size: 12px;
  54. margin-bottom: 2px;
  55. }
  56. /* Color definitions matching your WorldMapGenerator colors */
  57. .ocean-color {
  58. background-color: rgb(0, 0, 255); /* Blue */
  59. }
  60. .river-color {
  61. background-color: rgb(0, 255, 255); /* Cyan */
  62. }
  63. .plain-color {
  64. background-color: rgb(0, 128, 0); /* Green */
  65. }
  66. .forest-color {
  67. background-color: rgb(51, 179, 51); /* Dark green (0.2, 0.7, 0.2) */
  68. }
  69. .mountain-color {
  70. background-color: rgb(128, 128, 128); /* Gray */
  71. }
  72. .town-color {
  73. background-color: rgb(204, 102, 51); /* Orange-brown (0.8, 0.4, 0.2) */
  74. }
  75. .village-color {
  76. background-color: rgb(230, 179, 102); /* Light brown (0.9, 0.7, 0.4) */
  77. }
  78. .road-color {
  79. background-color: rgb(153, 128, 77); /* Brown (0.6, 0.5, 0.3) */
  80. }
  81. .dock-color {
  82. background-color: rgb(102, 77, 51); /* Dark brown (0.4, 0.3, 0.2) */
  83. }