Hello,
I would like to change link colors only if there is a Red warning error
I tried some things with map object but it seems to not working very well, i'm explaining :
I created a new object item that I called tableA50 :
<!--Status Icons: Sizeable Icon on Status Related Background (custom colours)--> <div class="map_object map_icon2 map_icon_large <#sensor type="colorclassofstate" prefix="map_customcolour_" id="<@objectid>">" id="<@itemid>" objectid="<@objectid>" subid="<@subid>" style="<#mapobject type="coordinates" subid="<@subid>" mode="<@editmode>">"> <#mapobject type="objectgrip" mode="<@editmode>"> <#mapobject type="htmlbefore" subid="<@subid>"> <span> <#objectstatus name="downsens" id="<@objectid>"> <#objectstatus name="partialdownsens" id="<@objectid>"> <#objectstatus name="downacksens" id="<@objectid>"> <#objectstatus name="warnsens" id="<@objectid>"> <#objectstatus name="upsens" id="<@objectid>"> <#objectstatus name="pausedsens" id="<@objectid>"> <#objectstatus name="unusualsens" id="<@objectid>"> <#objectstatus name="undefinedsens" id="<@objectid>"> <br> <#objectproperty name="Name" id="<@objectid>"> </span> <#mapobject type="htmlafter" subid="<@subid>"> </div>
Then I added this code in my style_custom_V2 file :
.map_object.map_iconcolor_senso,.map_object.map_iconcolor_senso label,.map_object.map_iconcolor_senso span, .map_object.map_iconcolor_sensr,.map_object.map_iconcolor_sensr label,.map_object.map_iconcolor_sensr span, .map_object.map_iconcolor_sensq,.map_object.map_iconcolor_sensq label,.map_object.map_iconcolor_sensq span { background-color: <#colorcode color="statusdown">; color: #fff; } .map_object.map_icon2.map_iconcolor_sensg,.map_object.map_icon2.map_iconcolor_sensg label,.map_object.map_icon2.map_iconcolor_sensg span { background-color: <#colorcode color="statusup">; } .map_object.map_iconcolor_sensy,.map_object.map_iconcolor_sensy label,.map_object.map_iconcolor_sensy span { background-color: <#colorcode color="statuswarning">; } .map_object.map_iconcolor_sensb,.map_object.map_iconcolor_sensb label,.map_object.map_iconcolor_sensb span { background-color: <#colorcode color="statuspaused">; } .map_object.map_iconcolor_sensp,.map_object.map_iconcolor_sensp label,.map_object.map_iconcolor_sensp span { background-color: <#colorcode color="statusunusual">; } .map_object.map_iconcolor_sensx,.map_object.map_iconcolor_sensx label,.map_object.map_iconcolor_sensx span { background-color: <#colorcode color="statusunknown">; color: #fff; } .map_object.map_iconcolor_hasblack { background-color: #ddd; } .map_object.map_iconcolor_hasgreen { background-color: #D5FDDA; } .map_object.map_iconcolor_hasblue { background-color: #D5FDDA; } .map_object.map_iconcolor_hasorange { background-color: #FED78C; } .map_object.map_iconcolor_hasyellow { background-color: #D5FDDA; } .map_iconcolor_hasred,.map_iconcolor_haspartialred,.map_iconcolor_hasredok { background-color: #FFCCCC !important; }
I reseted my browser's cache and full reloaded my browser but there is no change at all...
If anyone could help me I would be very gratefull
Thanks for your answers
Friendly, Thomas
Add comment