You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
now... I want to add some theming variations to it:
.foo-bar {
&--sm {
// here something to change the height of my 3 elements...
}
[...]
}
Obviously I don't want to apply the --sm variation to each element of my component, but I want to add it just to the component and changing the rest accordingly.
How to proceed?
Should I repeat all the elements name by hand?
Doing so, when I want to rename a component, I'll have to manually rename all of them.
This discussion was converted from issue #80 on September 12, 2022 19:54.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have this LESS:
now... I want to add some theming variations to it:
Obviously I don't want to apply the
--sm
variation to each element of my component, but I want to add it just to the component and changing the rest accordingly.How to proceed?
Should I repeat all the elements name by hand?
Doing so, when I want to rename a component, I'll have to manually rename all of them.
Beta Was this translation helpful? Give feedback.
All reactions