rewrote box shadow to have optional arguments, and defaults

This commit is contained in:
B Mathis 2009-11-21 11:10:23 -06:00
parent bdd1e2de33
commit ec7be709c2

View File

@ -1,12 +1,20 @@
//** //**
Provides cross-browser css box shadows Provides cross-browser css box shadows for Webkit, Gecko, and CSS3 standard
for Webkit and the future arguments are horizontal color, horizontal offset, vertical offset, and blur
arguments are horizontal offset, vertical offset, blur and color
=box-shadow(!ho, !vo, !b, !c ) //**
/* Webkit (Safari, Chrome) These defaults make the arguments optional for this mixin
-webkit-box-shadow= !ho !vo !b !c If you like, set different defaults in your project
/* Mozilla (Firefox, Camino)
-moz-box-shadow= !ho !vo !b !c !default_box_shadow_color ||= #333
/* CSS3 !default_box_shadow_h_offset ||= 1px
box-shadow= !ho !vo !b !c !default_box_shadow_v_offset ||= 1px
!default_box_shadow_blur ||= 5px
=box-shadow(!color = !default_box_shadow, !hoff = !default_box_shadow, !voff = !default_box_shadow, !blur = !default_box_shadow)
/* Webkit (Safari, Chrome) */
-webkit-box-shadow= !color !hoff !voff !blur
/* Gecko (Firefox, Camino) */
-moz-box-shadow= !color !hoff !voff !blur
/* CSS3 */
box-shadow= !color !hoff !voff !blur