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

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

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