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

Popular posts from this blog

javascript - How to name a jQuery function to make a browser's back button work? -

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -