ID:1670093
 
Applies to:Webclient
Status: Open

Issue hasn't been assigned a status value.
There should be a <stylevar> declaration or something like that in the .dms that you can use to define variables for stylesheets.

Sample usage:
<stylevars>
map_height = 336px;
</stylevars>
<style>
#map
{
width: 336px;
height: %map_height%;
}

#bottom
{
height: calc(100% - %map_height%);
}
</style>
So like... LESS implementation?
In response to EnigmaticGallivanter
EnigmaticGallivanter wrote:
So like... LESS implementation?

Yup.
Actually I quite agree here. I have a basic set of classes setup (which I forgot to add to the docs) but I really would prefer we parse the CSS for vars. However I'm thinking more along the lines of just providing vars for the default foreground and background colors, and a way of calculating shades from each.