Skip to content

Instantly share code, notes, and snippets.

@johno
Last active August 29, 2015 14:16
Show Gist options
  • Save johno/338a39c14f75a0da4301 to your computer and use it in GitHub Desktop.
Save johno/338a39c14f75a0da4301 to your computer and use it in GitHub Desktop.
Proposed immutable.css functionality/API.
.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) */
}
immutableCss.lint('vendor.css', 'app.css', { immutablePrefixes: ['.u-'] })
.awesome {
color: green;
}
@jxnblk
Copy link

jxnblk commented Mar 11, 2015

Okay, I think this makes more sense now...

You're too fast, i'll move convo over to your repo

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