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

Added option to inject CSS Styles into the generated HTML #42

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

benbek
Copy link

@benbek benbek commented Jan 11, 2016

Resolves #24.

Puts all CSS styles into the HTML as “style” attribute.
This approach is well suited to environments where one cannot have HTML
with an accompanying CSS file.
Shortcomings:

  • Not all CSS rules are convertible to HTML Style attributes. For
    example, no pseudo-selectors (such as ’:hover’, ‘:before’, ‘:after’)
    can be rendered.

Also, I felt that a more natural place for non-filters such as SameRulesCombiner and HTMLStylesCombiner would be a new processors directory.

Puts all CSS styles into the HTML as “style” attribute.
This approach is well suited to environments where one cannot have HTML
with an accompanying CSS file.
Shortcomings:
- Not all CSS rules are convertible to HTML Style attributes. For
example, no pseudo-selectors (such as ’:hover’, ‘:before’, ‘:after’)
can be rendered.
@kdzwinel
Copy link
Owner

Looks great! I'll try it out (and merge it) this week.

@jumbojett
Copy link

bump

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.

3 participants