Skip to content

Commit

Permalink
Update style.css
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimihiro02399 authored Jan 13, 2024
1 parent 691f66f commit d05ab97
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -370,12 +370,18 @@ nav {
color: #CC0033;
}

#map {

#map_chi {
position: relative; /* This makes it a reference for absolute children positioning */
}

#map_score {
position: relative; /* This makes it a reference for absolute children positioning */
}


/* Style for the tooltip */
.tooltip {
.tooltip_score, .tooltip_chi {
position: absolute;
text-align: center;
padding: 6px;
Expand All @@ -387,16 +393,22 @@ nav {
opacity: 1;
}

#map-legend {
#map-legend_score, #map-legend_chi {
position: absolute;
top: 10px; /* Adjust as needed */
right: 10px; /* Adjust as needed, or change to left if you prefer */
top: 15px; /* Adjust as needed */
right: 15px; /* Adjust as needed, or change to left if you prefer */
z-index: 10; /* Higher than the map's z-index */
pointer-events: none; /* Makes it non-interactive so map can be interacted with */
}

/* Ensure the text and rects inside the legend are interactive for mouse events */
#map-legend text,
#map-legend rect {
#map-legend_score text,
#map-legend_score rect {
pointer-events: all;
}

/* Ensure the text and rects inside the legend are interactive for mouse events */
#map-legend_chi text,
#map-legend_chi rect {
pointer-events: all;
}

0 comments on commit d05ab97

Please sign in to comment.