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

How to load styles from external stylesheet, and don't append into the <head> tag? #114

Open
skcin7 opened this issue Dec 19, 2017 · 0 comments

Comments

@skcin7
Copy link

skcin7 commented Dec 19, 2017

There doesn't seem to be a way currently to tell Notify.js to look for CSS in an external file. Instead, it just appends CSS in <style> tags inside the <head>. This works and is great and all but I can't help feel that it's just cleaner, nicer, and more elegant code to load instead from an external CSS file.

Notify.js does not currently support this, and I think it should. Anybody know the best way to easily support this? I may submit a pull request soon and submit a solution.

In a related topic, Notify.js currently does not support pseudo CSS elements such as :before and :after. If you need those for some reason, you can still get them by manually adding them to an external stylesheet file, but Notify.js should support this.

@skcin7 skcin7 changed the title Any way to use styles from external stylesheet? Any way to use styles from external stylesheet, and support pseudo CSS elements such as :before and :after? Dec 19, 2017
@skcin7 skcin7 changed the title Any way to use styles from external stylesheet, and support pseudo CSS elements such as :before and :after? Load styles from external stylesheet. Don't inject inside the <head> tag. Dec 19, 2017
@skcin7 skcin7 changed the title Load styles from external stylesheet. Don't inject inside the <head> tag. How to load styles from external stylesheet, and don't append into the <head> tag? Dec 19, 2017
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

No branches or pull requests

1 participant