Skip to content

Selector Inheritance #759

Closed
Closed

Description

@chrisui

Forgive me if this has been discussed before or is in development but I haven't managed to find anything from a quick search.

Could we please have selector inheritance? (@extend from http://sass-lang.com#extend) Is anyone working on this? (is there a fork?) Is there a reason why it has not been included?

My only issue with less ever is that if you really want to write your code with a heavy DRY approach (which in fairness is the main reason you'd use a preprocessor like less) then you can end up with a lot of duplicate code after compiling where you simply wanted two separate classes to share styles.

Activity

  1. zachshallbetter commented on May 14, 2012

    @zachshallbetter

    I use CSS grouping quite a bit for identical declarations w/ adjustments. Adding selector inheritance to LESS would make a huge difference in my workflow.

  2. lbkilgore commented on Jun 5, 2012

    @lbkilgore

    Yes, I 'third' this. I find myself actually using plain ole CSS when it comes to this.

  3. icholy commented on Jun 26, 2012

    @icholy

    this is a dupe of #509

  4. lukeapage commented on Jul 23, 2012

    @lukeapage
    Member

    agree- duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions