diff --git a/web-client/src/components/SrAtl03ColorLegend.vue b/web-client/src/components/SrAtl03ColorLegend.vue index d4343290..f7c58a99 100644 --- a/web-client/src/components/SrAtl03ColorLegend.vue +++ b/web-client/src/components/SrAtl03ColorLegend.vue @@ -76,39 +76,57 @@ + position: relative; /* Enable positioning for the legend */ +} + +/* Custom Fieldset legend style */ +:deep(.sr-legend-box .p-fieldset-legend) { + font-size: 0.75rem; /* Adjust font size */ + font-weight: normal; /* Optional: Adjust font weight */ + color:white; /* Adjust color */ + padding: 0.2rem; /* Adjust padding for a smaller appearance */ + text-align: center; /* Center text horizontally */ + position: absolute; /* Position relative to the Fieldset */ + top: 0.5rem; /* Align legend to the top */ + left: 50%; /* Center horizontally */ + transform: translate(-50%, -50%); /* Adjust position to center it over the top border */ + background: black; /* Match the background color */ + z-index: 1; /* Ensure it appears above the Fieldset border */ + padding: 0 0.5rem; /* Add spacing to prevent overlap with text */ +} +:deep(.p-fieldset-content-container) { + padding-top: 1.5rem; /* Adjust padding to prevent overlap with the legend */ +} + \ No newline at end of file