rewrote box shadow to have optional arguments, and defaults
This commit is contained in:
parent
bdd1e2de33
commit
ec7be709c2
@ -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
|
Loading…
Reference in New Issue
Block a user