Sample usage:
<stylevars>
map_height = 336px;
</stylevars>
<style>
#map
{
width: 336px;
height: %map_height%;
}
#bottom
{
height: calc(100% - %map_height%);
}
</style>
ID:1670093
Aug 30 2014, 9:34 pm
|
|||||||
| |||||||
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> |
Aug 31 2014, 2:49 am
|
|
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.
|