diff options
author | B Mathis <brandon@imathis.com> | 2009-10-18 20:10:45 -0500 |
---|---|---|
committer | B Mathis <brandon@imathis.com> | 2009-10-18 20:10:45 -0500 |
commit | d8d51719fb2ec7cb2ee70dab4665c74baa0fb783 (patch) | |
tree | 1a3ba6a62eaa3c0d5b3bc8d5bcf5447ecd9335ec /source/stylesheets/library/_opacity.sass | |
parent | 82d0251da120186c27791b7c073aa103d73c2b31 (diff) | |
download | my_new_personal_website-d8d51719fb2ec7cb2ee70dab4665c74baa0fb783.tar.xz my_new_personal_website-d8d51719fb2ec7cb2ee70dab4665c74baa0fb783.zip |
added compass, added some basic stylesheets
Diffstat (limited to 'source/stylesheets/library/_opacity.sass')
-rw-r--r-- | source/stylesheets/library/_opacity.sass | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/source/stylesheets/library/_opacity.sass b/source/stylesheets/library/_opacity.sass new file mode 100644 index 00000000..f8d2a056 --- /dev/null +++ b/source/stylesheets/library/_opacity.sass @@ -0,0 +1,18 @@ +//** + Provides cross-browser css opacity. + @param !opacity + A number between 0 and 1, where 0 is transparent and 1 is opaque. +=opacity(!opacity) + :opacity= !opacity + :-moz-opacity= !opacity + :-khtml-opacity= !opacity + :-ms-filter= "progid:DXImageTransform.Microsoft.Alpha(Opacity=" + round(!opacity*100) + ")" + :filter= "alpha(opacity=" + round(!opacity*100) + ")" + +// Make an element completely transparent. +=transparent + +opacity(0) + +// Make an element completely opaque. +=opaque + +opacity(1) |