MapLocationNaming_Fixed.uss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /* Unity UI Toolkit Compatible Location Naming Styles */
  2. /* Base location label styling */
  3. .location-label {
  4. position: absolute;
  5. font-size: 12px;
  6. color: white;
  7. padding: 2px 6px;
  8. background-color: rgba(0, 0, 0, 0.7);
  9. border-radius: 3px;
  10. white-space: nowrap;
  11. transition-property: opacity;
  12. transition-duration: 0.3s;
  13. }
  14. /* Location type specific styles */
  15. .location-town {
  16. color: rgb(255, 215, 0);
  17. -unity-font-style: bold;
  18. }
  19. .location-village {
  20. color: rgb(255, 165, 0);
  21. }
  22. .location-forest {
  23. color: rgb(34, 139, 34);
  24. }
  25. .location-mountain {
  26. color: rgb(169, 169, 169);
  27. }
  28. .location-landmark {
  29. color: rgb(255, 255, 0);
  30. -unity-font-style: bold;
  31. }
  32. /* Capital city special styling */
  33. .location-capital {
  34. color: rgb(255, 215, 0);
  35. -unity-font-style: bold;
  36. font-size: 14px;
  37. background-color: rgba(25, 25, 25, 0.9);
  38. border-color: rgb(255, 215, 0);
  39. border-width: 1px;
  40. padding: 4px 8px;
  41. }
  42. /* Undiscovered location styling */
  43. .location-label.undiscovered {
  44. opacity: 0.5;
  45. color: rgb(128, 128, 128);
  46. }
  47. /* Hover effects */
  48. .location-label:hover {
  49. opacity: 1;
  50. background-color: rgba(0, 0, 0, 0.9);
  51. }
  52. /* Message display */
  53. .location-message {
  54. font-size: 16px;
  55. -unity-font-style: bold;
  56. -unity-text-align: middle-center;
  57. background-color: rgba(25, 25, 25, 0.95);
  58. border-color: rgba(255, 255, 255, 0.3);
  59. border-width: 2px;
  60. border-radius: 6px;
  61. padding: 8px 12px;
  62. color: white;
  63. position: absolute;
  64. top: 50%;
  65. left: 50%;
  66. translate: -50% -50%;
  67. }
  68. /* Tooltip styling */
  69. .location-tooltip {
  70. position: absolute;
  71. background-color: rgba(25, 25, 25, 0.95);
  72. border-color: rgb(139, 69, 19);
  73. border-width: 2px;
  74. border-radius: 6px;
  75. padding: 8px 12px;
  76. min-width: 120px;
  77. font-size: 12px;
  78. color: white;
  79. }
  80. .tooltip-title {
  81. font-size: 14px;
  82. -unity-font-style: bold;
  83. color: rgb(255, 215, 0);
  84. margin-bottom: 4px;
  85. }
  86. .tooltip-status {
  87. font-size: 11px;
  88. color: rgb(100, 200, 255);
  89. -unity-font-style: italic;
  90. }
  91. .tooltip-instructions {
  92. font-size: 10px;
  93. color: rgb(200, 200, 200);
  94. margin-top: 4px;
  95. -unity-font-style: italic;
  96. }