Is there a way in less or (css3 in general) to access parent's background-color
without knowing it?
Something like:
.child-class {
background-color: lighten(parent-background-color, 30%);
}
A less variable would be the obvious approach but in this case I simply don't know the parent's background-color
as it can be dynamically styled.
Anybody got something in her trick box to help out?
See Question&Answers more detail:os