Is there a way to add a mixin into a variable in LESS -
can add mixin variable in less?
something this
@input-border-radius: .rounded(); or @h1: .font-size(46) // pulls rem calculator mixin.
looked @ less docs can't see way it.
there way.
you can define properties of (possibly immaginary) class , recall properties of class in style of different class. example:
.fontstyling { font-weight: bold; color: black; } h1 { font-size: 46px; .fontstyling; } h2 { font-size: 38px; .fontstyling; }
(thats not best way format headings - other exemples useful!)
Comments
Post a Comment