How to modify other attributes of this class based on element attribute values by less

there are two sibling elements An and B (the checkbox button implemented by svg) in svg, where the opacity attribute value in An is 1 and the opacity in B is 0.5. Want to fill and stroke different colors according to the change of opacity when the two elements switch between clicks.
I don"t have a good idea after flipping through less documents. Do you have any good style rewriting ideas? orz

Jun.06,2022
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b31898-40de3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b31898-40de3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?