Global CSS Variables
robotdance
It would be nice to add global CSS variables, so you use could these for any type of css settings.
For example: Set a global CSS variable and add these variable for any spacing, size, or for any other setting.
At the moment you could define classes (which is also fine to set custom "presets"), but what if you like to add many predefined spaces or sizings. You need to add many custom classes.
With variables you need to only specify the values.
Yes, at the moment it is possible with custom code and choose "custom" (spacing) and then add: var(--my-custom...). But it would be nice to have a selector like the classes panel!
These variables could also be responsive.
So the system should be very fluid.
Abu Sayed
Team please add global CSS variable manager.
robotdance
....we need it also for colors ;-)
Rodolphe Bertozzo
yep please. it's necessary when we worked with CSS
Dan
Isn't that exactly what "selectors" are for?
B
Bob
Dan: Not really, if I want to set the margin bottom to small, and padding top to something else and do some other stuff I end up adding a lot classes. Plus if I wanted to put a different variable on margin bottom on mobile for a some modules, this would be really complicated with just selectors and create a lot of selectors.
B
Bob
I saw this post on FB where the idea is to add an option below "custom" and call it "variable" where it shows all the variables we can set in Global Settings and give them a label like "Padding Bottom Small" or "Medium" etc.
robotdance
Bob: This is what I mean for example ;-)