box-shadow mixin

549 views
Skip to first unread message

manfred louis

unread,
Dec 4, 2011, 6:22:42 PM12/4/11
to Compass
If I enter simply in my css:" box-shadow: #333 0 1px 5px 0 " I have a
nice shadow over my box but if I use the mixin @include box-
shadow(#333 0 1px 5px 0); it generates something like:

-moz-box-shadow: #333333 0 1px 5px 0 1px 1px 5px 0;
-webkit-box-shadow: #333333 0 1px 5px 0 1px 1px 5px 0;
-o-box-shadow: #333333 0 1px 5px 0 1px 1px 5px 0;
box-shadow: #333333 0 1px 5px 0 1px 1px 5px 0;


which doesn't show any shadow at all. What is the right syntax please?

Chris Eppstein

unread,
Dec 5, 2011, 1:15:25 PM12/5/11
to compas...@googlegroups.com
Syntax looks right. What versions of sass and compass are you using?


--
You received this message because you are subscribed to the Google Groups "Compass" group.
To post to this group, send email to compas...@googlegroups.com.
To unsubscribe from this group, send email to compass-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/compass-users?hl=en.


manfred louis

unread,
Dec 5, 2011, 8:05:38 PM12/5/11
to Compass
compass 0.10.6
sass-3.2.0.alpha.35

Rohith Mohan

unread,
Dec 5, 2011, 11:54:09 PM12/5/11
to compas...@googlegroups.com
Your syntax for passing arguments is wrong.
use this @include box-shadow(#333, 0, 1px, 5px, 0);

you missed the commas. :)

iGbanam

unread,
Dec 7, 2011, 9:00:41 AM12/7/11
to compas...@googlegroups.com
If push is coming to shove, look into using the +single-box-shadow mixin.

Sent from an Asteroid in Space™

spav freak

unread,
Dec 5, 2011, 1:27:43 AM12/5/11
to compas...@googlegroups.com

manfred louis

unread,
Dec 7, 2011, 4:32:38 PM12/7/11
to Compass
Exactly: that example shows:

#box-shadow-custom {
@include box-shadow(red 2px 2px 10px); }

as a working code but instead I had to do what IGbanam suggested which
is:

#box-shadow-custom {
@include box-shadow(red, 2px, 2px, 10px); }

On Dec 5, 8:27 am, spav freak <spa...@gmail.com> wrote:
> see this ..http://compass-style.org/examples/compass/css3/box_shadow/

Reply all
Reply to author
Forward
0 new messages