I would like to create a theme based off the default theme but want to use a template conditional for differences between the variations in extra.less.
Does anyone know the new template conditionals for the new theme yet or attempted this?
You'll typically want to use the .m-colorScheme mixin to target color schemes (light/dark):
Less:
.some-class
{
// normal rules (default color scheme -- light in the default style)
.m-colorScheme({{ $xf.style.getAlternateStyleType() }},
{
// alternate rules (alternate color scheme -- dark in the default style)
});
}
However you can target specific variations if you want:
If your saying you only want some changes in the child style via extra.less, by applying them in the child style they will not affect the master.
Or did I miss understand the question?
If your saying you only want some changes in the child style via extra.less, by applying them in the child style they will not affect the master.
Or did I miss understand the question?
As far as I know, styles cannot be specified.
That is handled by the hierarchy.
Master controls child.
If you want the child different you have to change each child.
The style is assumed by the one you select when editing.
You'll typically want to use the .m-colorScheme mixin to target color schemes (light/dark):
Less:
.some-class
{
// normal rules (default color scheme -- light in the default style)
.m-colorScheme({{ $xf.style.getAlternateStyleType() }},
{
// alternate rules (alternate color scheme -- dark in the default style)
});
}
However you can target specific variations if you want:
You'll typically want to use the .m-colorScheme mixin to target color schemes (light/dark):
Less:
.some-class
{
// normal rules (default color scheme -- light in the default style)
.m-colorScheme({{ $xf.style.getAlternateStyleType() }},
{
// alternate rules (alternate color scheme -- dark in the default style)
});
}
However you can target specific variations if you want: