meenie / munee

Munee: Standalone PHP 5.3 Asset Optimisation & Manipulation

Home Page:https://munee.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

attribute selectors and extend bug

aronduby opened this issue · comments

Using attribute ends with selector with extend is getting output as junk. Here's my usage:

.content-item{
  /* styles for content-item */

  h1{
    /* styles for content-item h1 */

    a::after{ @extend .fa; } /* this works */
    a[href$=".pdf"]:after{ /* this breaks everything */
      @extend .fa-file-pdf-o:before;
    }
  }
}

I'm expecting the a[href$="pdf"]:after selector to end up being:

.fa-file-pdf-o:before, 
.content-item h1 a[href$="pdf"]:after

but instead it gets mashed into:

.fa-file-pdf-o:before, 
.content-item h1 ".pdf"][href$=:after

Try using #47 it has a updated Less processor, which is most likely the reason why it's messing up.

Do you know if there's a way to be able to do that with Composer?

Yah add

    {
        "type": "vcs",
        "url": "https://github.com/modernmedia/munee.git"
    }

to your composer and change the meenie line too

       "meenie/Munee": "dev-fork",

And you'll get my repo. Or you can fork it and use your own, that part is up too you.

Dang it. I added the repository and tried it but it didn't work, needed to change the version. I got everything updated and unfortunately it's still outputting the same thing.

@aronduby I'm sorry this is so late. I've updated the SCSS library to the latest version and your SCSS is now outputting correctly. You can view the fix here: #69