{
  "id": "one-sided-shadows",
  "name": "One-Sided Shadows",
  "category": "shadows",
  "tags": [
    "bottom only",
    "negative spread",
    "top",
    "side",
    "box-shadow"
  ],
  "description": "Box shadows on just one edge (top, right, bottom or left) using a negative spread value.",
  "url": "https://copy-css.com/snippets/one-sided-shadows",
  "markdown": "https://copy-css.com/snippets/one-sided-shadows.md",
  "html": "<div class=\"side-shadow-top\">Top</div>\n<div class=\"side-shadow-right\">Right</div>\n<div class=\"side-shadow-bottom\">Bottom</div>\n<div class=\"side-shadow-left\">Left</div>",
  "css": "/* The negative spread (-6px) hides the shadow on the other three sides */\n.side-shadow-top,\n.side-shadow-right,\n.side-shadow-bottom,\n.side-shadow-left {\n  display: grid;\n  place-items: center;\n  width: 96px;\n  height: 64px;\n  border-radius: 12px;\n  background: #ffffff;\n  color: #475569;\n  font: 600 13px system-ui, sans-serif;\n}\n\n.side-shadow-top {\n  box-shadow: 0 -8px 10px -6px #0f172a59;\n}\n\n.side-shadow-right {\n  box-shadow: 8px 0 10px -6px #0f172a59;\n}\n\n.side-shadow-bottom {\n  box-shadow: 0 8px 10px -6px #0f172a59;\n}\n\n.side-shadow-left {\n  box-shadow: -8px 0 10px -6px #0f172a59;\n}",
  "features": [
    "box shadows",
    "CSS Grid"
  ],
  "customProperties": []
}
