Last active
August 29, 2015 14:16
-
-
Save johno/338a39c14f75a0da4301 to your computer and use it in GitHub Desktop.
Proposed immutable.css functionality/API.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.u-i-will-be-opened-twice { | |
color: yellow; | |
} | |
.u-actually-immutable-selector { | |
content: 'I am not being reopened'; | |
} | |
.awesome { | |
font-variant: small-caps; /* Raises linting error (opened vendor.css selector) */ | |
} | |
.u-i-will-be-opened-twice { | |
background-color: red; /* Raises linting error (re-opened a util selector) */ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
immutableCss.lint('vendor.css', 'app.css', { immutablePrefixes: ['.u-'] }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.awesome { | |
color: green; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Okay, I think this makes more sense now...
You're too fast, i'll move convo over to your repo