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

CSS3 Support, other optimisations #47

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

Conversation

arminrosu
Copy link

Hello,

Used Gritter on a project and thought I might thank you by adding support for css3 (with a fallback for IE7/8). Tested in Chrome and IE7:

  • added css to style notifications without images (ok, 1 image, the cross would've taken more css than to base64 encode)
  • added a support test for border radius
    • this will add a .no-borderradius class to body (same class as used by Modernizr)
  • added .jshintrc; jshinted
  • added License comment to css
  • moved IE specific code into border-radius fallback
  • removed .gritter-top, as .gritter-item is enough (I think it was a vestige from when the images were not yet sprited)
  • removed _hoverState from JS as even IE7 handles :hover, as long as you have a proper doctype
  • optimised images
  • css is generated from sass

Also, I was wondering, why are you still supporting IE7?

HTH,
Armin

arminrosu and others added 4 commits August 28, 2013 13:40
* added a css support test for border radius
* added css to style notifications without images
* added License comment to css
* moved IE specific code into border-radius fallback
* removed .gritter-top, moved to .gritter-item
* removed _hoverState from JS as even IE7 handles :hover
* optimised images
* css is generated from sass
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.

1 participant