Home LESS CSS Has More with 1.2.0

LESS CSS Has More with 1.2.0

The LESS dynamic stylesheet language was one of ReadWriteWeb’s [top Web developer tools for 2011], and it’s starting off 2012 strong as well. LESS maintainer Alexis Sellier has released LESS 1.2.0 with a few interesting new features and fixes for WebKit and Internet Explorer.

LESS adds functionality that should be in CSS in the first place. For example, LESS gives Web developers variables, functions, operators and other features that CSS doesn’t have.

LESS supports mixins, which are properties that can be copied from one ruleset to another. With 1.2.0, Sellier has added conditional execution with its mixins, so that developers can change behavior of the mixin based on the value of parameters passed to it. For instance, developers might change values depending on screen size.

You might be familiar with, Sass, the extension of CSS3. In 1.2.0, Sellier borrows some of the type-checking functions and the mix function from Sass.

The 1.2.0 release also adds support for !important after mixin calls, a percentage function and a color function for parsing JavaScript strings as a hex color.

LESS is available under the Apache 2.0 license and code is available on GitHub.

About ReadWrite’s Editorial Process

The ReadWrite Editorial policy involves closely monitoring the tech industry for major developments, new product launches, AI breakthroughs, video game releases and other newsworthy events. Editors assign relevant stories to staff writers or freelance contributors with expertise in each particular topic area. Before publication, articles go through a rigorous round of editing for accuracy, clarity, and to ensure adherence to ReadWrite's style guidelines.

Get the biggest tech headlines of the day delivered to your inbox

    By signing up, you agree to our Terms and Privacy Policy. Unsubscribe anytime.

    Tech News

    Explore the latest in tech with our Tech News. We cut through the noise for concise, relevant updates, keeping you informed about the rapidly evolving tech landscape with curated content that separates signal from noise.

    In-Depth Tech Stories

    Explore tech impact in In-Depth Stories. Narrative data journalism offers comprehensive analyses, revealing stories behind data. Understand industry trends for a deeper perspective on tech's intricate relationships with society.

    Expert Reviews

    Empower decisions with Expert Reviews, merging industry expertise and insightful analysis. Delve into tech intricacies, get the best deals, and stay ahead with our trustworthy guide to navigating the ever-changing tech market.