Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin: gradient previewer #783

Merged
merged 3 commits into from
Oct 6, 2015

Conversation

Golmote
Copy link
Contributor

@Golmote Golmote commented Sep 30, 2015

Previewer for gradients. It should support all gradients syntaxes but the old webkit one (-webkit-gradient()). Old syntaxes are converted to the W3C-valid one.

The plugin will work only in browsers supporting the W3C syntax, unprefixed.

prism-previewer-gradient
prism-previewer-gradient-repeating

@nauzilus
Copy link
Contributor

nauzilus commented Oct 1, 2015

Should this also work alongside with previewer-colour? It seems which ever comes first out of gradient and colour will take precedence:

It might just be one of those edge cases like strings inside comments that can't really be helped, just thought I'd bring it up :)

@Golmote
Copy link
Contributor Author

Golmote commented Oct 1, 2015

Thanks for reporting this behaviour. I think gradient should always take precedence if included (no matter the order). I'll see if I can fix this.

@Golmote
Copy link
Contributor Author

Golmote commented Oct 1, 2015

@nauzilus The issue should be fixed. Now the gradient previewer should take precedence over the color previewer if both are included, even if the color previewer is included first.

Golmote added a commit that referenced this pull request Oct 6, 2015
@Golmote Golmote merged commit 9a63483 into PrismJS:gh-pages Oct 6, 2015
@Golmote Golmote deleted the prism-previewer-gradient branch October 6, 2015 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants