Box shadows
Use box shadow modifiers to add shadows to elements. Box shadows are used to to describe the visual hierarchy of objects.
box-shadow-key-* modifiers add directional shadows (heavier on the bottom than the top). box-shadow-amb-* modifiers add shadows that are even on all sides, emulating ambient light. box-shadow-* modifiers combine them both.
Classes
| Modifier | Purpose |
|---|---|
box-shadow-key-1 | Add light key shadow |
box-shadow-key-2 | Add medium key shadow |
box-shadow-key-3 | Add heavy key shadow |
box-shadow-amb-1 | Add light ambient shadow |
box-shadow-amb-2 | Add medium ambient shadow |
box-shadow-amb-3 | Add heavy ambient shadow |
box-shadow-1 | Add light shadow |
box-shadow-2 | Add medium shadow |
box-shadow-3 | Add heavy shadow |
Basic example
box-shadow-key-1box-shadow-amb-1box-shadow-1box-shadow-key-2box-shadow-amb-2box-shadow-2box-shadow-key-3box-shadow-amb-3box-shadow-3Imports
Import CSS:
import 'pivotal-ui/css/box-shadows';