String replace in LESS

.text(@size: 10) { font-size: e(%("%dpx", @size)); line-height: e(%("%dem", @size/10)); } h1 { .text(50); } // Result: h1 { font-size: 50px; line-height: 5em; }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.