In an SSA context I have the following
This is coming from an MRR.
I want to make a few changes to the legend text. They should look like
10% Hazard Category Z2
0<1
1
2
3
...
AND
10% Hazard Category ZAEM1
0 - No mapped flow
1 - H1 – Relatively benign flow
2 - H2 – Unsafe for small vehicles
3 - H3 – Unsafe for all vehicles
4 - H4 – Unsafe for all people & vehicles
5 - H5 – Unsafe – buildings require engineering design
6 - H6 – Unconditionally dangerous
I am using the current version of Spectrum and SSA with all patches.
An SSA guru friend suggested the following code in the brand.css
[title="1"]
{
visibility:hidden;
}
[title="1.0"]::before
{
content:"0<1";
visibility: visible;
}
But the issue is that it then changes all the 1.0 values in every context/project.
Is it possible to apply the changes based on the div that it is within
<div class="col-8 padding-left wordBreak" title="10% - Hazard Category ZAEM1"> 10% - Hazard Category ZAEM1 </div>
Or is there another solution. In previous versions I was informed that you could do the following but this no longer works.
CSS branding update in CSS files.
/* Legend raster override styles */
#Reservoir\ Catchment\ Serviceability> pb-spatial-legends> div:not(Reservoir\
Catchment\ Serviceability) > div:nth-child(7) > div:nth-child(2),
#Reservoir\ Catchment\ Serviceability> pb-spatial-legends> div:not(Reservoir\
Catchment\ Serviceability) > div:nth-child(8) > div:nth-child(2),
#Reservoir\ Catchment\ Serviceability> pb-spatial-legends> div:not(Reservoir\
Catchment\ Serviceability) > div:nth-child(9) > div:nth-child(2),
#Reservoir\ Catchment\ Serviceability> pb-spatial-legends> div:not(Reservoir\
Catchment\ Serviceability) > div:nth-child(10) > div:nth-child(2),
#Reservoir\ Catchment\ Serviceability> pb-spatial-legends> div:not(Reservoir\
Catchment\ Serviceability) > div:nth-child(11) > div:nth-child(2),
#Reservoir\ Catchment\ Serviceability> pb-spatial-legends> div:not(Reservoir\
Catchment\ Serviceability) > div:nth-child(12) > div:nth-child(2),
#Reservoir\ Catchment\ Serviceability> pb-spatial-legends> div:not(Reservoir\
Catchment\ Serviceability) > div:nth-child(13) > div:nth-child(2),
/* Reservoir Catchment Serviceability Legend */
#Reservoir\ Catchment\ Serviceability> pb-spatial-legends> div:not(Reservoir\
Catchment\ Serviceability) > div:nth-child(7):after {
content: "High Pressure >80m expected";
}
After changes
#Reservoir\ Catchment\ Serviceability> pb-spatial-legends> div:not(Reservoir\
Catchment\ Serviceability) > div:nth-child(8):after {
content: "Pressures <80m and >60m expected";
}
#Reservoir\ Catchment\ Serviceability> pb-spatial-legends> div:not(Reservoir\
Catchment\ Serviceability) > div:nth-child(9):after {
content: "Pressures >35m and <60m expected";
}
#Reservoir\ Catchment\ Serviceability> pb-spatial-legends> div:not(Reservoir\
Catchment\ Serviceability) > div:nth-child(10):after {
content: "Pressures >30m and <35m expected";
}
#Reservoir\ Catchment\ Serviceability> pb-spatial-legends> div:not(Reservoir\
Catchment\ Serviceability) > div:nth-child(11):after {
content: "Low Range Pressures >22m and <30m expected";
}
#Reservoir\ Catchment\ Serviceability> pb-spatial-legends> div:not(Reservoir\
Catchment\ Serviceability) > div:nth-child(12):after {
content: "Low Pressure <22m expected";
}
#Reservoir\ Catchment\ Serviceability> pb-spatial-legends> div:not(Reservoir\
Catchment\ Serviceability) > div:nth-child(13):after {
content: "Unserviceable elevation > Res TWL";
}
------------------------------
George Corea
Data Guru
Mangoesmapping
MOOMIN QLD
------------------------------