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

Add opactity mixin #270

Open
neysimoes opened this issue Jul 18, 2014 · 1 comment
Open

Add opactity mixin #270

neysimoes opened this issue Jul 18, 2014 · 1 comment
Labels

Comments

@neysimoes
Copy link

Mixin for opacity with IE suport

opacity(n)
  -khtml-opacity n
  -moz-opacity n
  opacity n
  -ms-filter unquote('"progid:DXImageTransform.Microsoft.Alpha(Opacity=' + round(n * 100) + ')"')
  filter unquote('alpha(opacity=' + round(n * 100) + ')')
@notslang notslang added the docs label Aug 11, 2014
@notslang
Copy link
Collaborator

pretty sure we already have this: https://github.com/visionmedia/nib/blob/701efeecde722790cdd95654b4a9c40f02d63efb/lib/nib/vendor.styl#L268

...you just need to enable IE support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants