| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238 |
- /* Map Legend UI Styles */
- .map-legend {
- position: absolute;
- top: 20px;
- left: 20px;
- width: 280px;
- min-width: 250px;
- max-width: 350px;
- flex-direction: column;
- }
- .legend-toggle-btn {
- background-color: rgba(32, 32, 32, 0.95);
- color: white;
- border-top-left-radius: 8px;
- border-top-right-radius: 8px;
- border-bottom-left-radius: 0px;
- border-bottom-right-radius: 0px;
- border-width: 0px;
- padding: 10px 15px;
- font-size: 14px;
- transition-duration: 0.3s;
- transition-property: background-color;
- }
- .legend-toggle-btn:hover {
- background-color: rgba(48, 48, 48, 0.95);
- }
- .legend-toggle-btn:active {
- background-color: rgba(64, 64, 64, 0.95);
- }
- .legend-content {
- background-color: rgba(16, 16, 16, 0.95);
- border-bottom-left-radius: 8px;
- border-bottom-right-radius: 8px;
- border-top-width: 1px;
- border-top-color: rgba(64, 64, 64, 0.8);
- padding: 15px;
- flex-direction: column;
- }
- .legend-title {
- font-size: 16px;
- color: white;
- -unity-font-style: bold;
- margin-bottom: 12px;
- -unity-text-align: upper-center;
- }
- .legend-section {
- margin-bottom: 15px;
- flex-direction: column;
- }
- .legend-section-title {
- font-size: 14px;
- color: rgb(220, 220, 220);
- -unity-font-style: bold;
- margin-bottom: 8px;
- padding-bottom: 4px;
- border-bottom-width: 1px;
- border-bottom-color: rgba(64, 64, 64, 0.6);
- }
- .legend-item {
- flex-direction: row;
- align-items: center;
- margin-bottom: 6px;
- padding: 2px 0px;
- }
- .color-box {
- width: 16px;
- height: 16px;
- border-radius: 2px;
- margin-right: 10px;
- border-width: 1px;
- border-color: rgba(255, 255, 255, 0.3);
- }
- .legend-text {
- color: rgb(200, 200, 200);
- font-size: 12px;
- flex-grow: 1;
- }
- .name-toggle {
- margin-bottom: 6px;
- color: rgb(200, 200, 200);
- }
- .name-toggle Label {
- color: rgb(200, 200, 200);
- font-size: 12px;
- }
- .name-toggle > .unity-toggle__input {
- background-color: rgba(64, 64, 64, 0.8);
- border-color: rgba(128, 128, 128, 0.6);
- border-radius: 3px;
- }
- .name-toggle > .unity-toggle__input:checked {
- background-color: rgba(0, 128, 255, 0.8);
- border-color: rgba(0, 128, 255, 1.0);
- }
- .name-toggle > .unity-toggle__input > .unity-toggle__checkmark {
- background-color: white;
- border-radius: 1px;
- }
- .controls-info {
- border-top-width: 1px;
- border-top-color: rgba(64, 64, 64, 0.6);
- padding-top: 10px;
- margin-bottom: 0px;
- }
- .controls-text {
- color: rgba(180, 180, 180, 0.9);
- font-size: 11px;
- margin-bottom: 3px;
- }
- /* Legacy styles for compatibility */
- .legend-container {
- position: absolute;
- top: 20px;
- left: 20px;
- background-color: rgba(0, 0, 0, 0.8);
- border-radius: 10px;
- padding: 15px;
- min-width: 250px;
- border-width: 2px;
- border-color: rgba(255, 255, 255, 0.3);
- }
- .legend-items {
- margin-bottom: 15px;
- }
- .controls-title {
- font-size: 16px;
- color: white;
- font-style: bold;
- margin-bottom: 5px;
- }
- .controls-text {
- color: rgba(255, 255, 255, 0.8);
- font-size: 12px;
- margin-bottom: 2px;
- }
- /* Color definitions matching your WorldMapGenerator colors */
- .ocean-color {
- background-color: rgb(0, 100, 200); /* Blue */
- }
- .river-color {
- background-color: rgb(64, 164, 223); /* Light Blue */
- }
- .plain-color {
- background-color: rgb(124, 178, 124); /* Light Green */
- }
- .forest-color {
- background-color: rgb(34, 139, 34); /* Forest Green */
- }
- .mountain-color {
- background-color: rgb(139, 139, 139); /* Gray */
- }
- .town-color {
- background-color: rgb(204, 102, 51); /* Orange-brown (0.8, 0.4, 0.2) */
- }
- .village-color {
- background-color: rgb(230, 179, 102); /* Light brown (0.9, 0.7, 0.4) */
- }
- .road-color {
- background-color: rgb(153, 128, 77); /* Brown (0.6, 0.5, 0.3) */
- }
- .dock-color {
- background-color: rgb(102, 77, 51); /* Dark brown (0.4, 0.3, 0.2) */
- }
- /* Location Name Label Styles */
- .location-name-label {
- position: absolute;
- font-size: 12px;
- color: white;
- padding: 2px 6px;
- background-color: rgba(0, 0, 0, 0.7);
- border-radius: 3px;
- white-space: nowrap;
- pointer-events: none;
- -unity-text-align: middle-center;
- border-width: 1px;
- border-color: rgba(255, 255, 255, 0.2);
- }
- .settlement-name {
- color: rgb(255, 215, 0); /* Gold */
- -unity-font-style: bold;
- font-size: 13px;
- }
- .forest-name {
- color: rgb(144, 238, 144); /* Light Green */
- }
- .lake-name {
- color: rgb(173, 216, 230); /* Light Blue */
- }
- .plain-name {
- color: rgb(255, 255, 224); /* Light Yellow */
- font-size: 11px;
- }
- .mountain-name {
- color: rgb(192, 192, 192); /* Silver */
- -unity-font-style: bold;
- }
- .river-name {
- color: rgb(135, 206, 250); /* Light Sky Blue */
- font-size: 11px;
- }
|