{
  "id": "trending-posts-card",
  "name": "Trending Posts Card",
  "category": "cards",
  "tags": [
    "trending",
    "popular posts",
    "sidebar",
    "numbered list",
    "blog",
    "counter"
  ],
  "description": "A sidebar widget listing popular posts with large zero-padded numbers drawn by a CSS counter.",
  "url": "https://copy-css.com/snippets/trending-posts-card",
  "markdown": "https://copy-css.com/snippets/trending-posts-card.md",
  "html": "<section class=\"trending\" aria-labelledby=\"trending-title\">\n  <h3 id=\"trending-title\">Trending</h3>\n  <ol>\n    <li><a href=\"#\">The case for boring CSS</a><span>4 min read</span></li>\n    <li><a href=\"#\">Grid or flexbox, a field guide</a><span>6 min read</span></li>\n    <li><a href=\"#\">Writing forms people finish</a><span>8 min read</span></li>\n  </ol>\n</section>",
  "css": ".trending {\n  width: 260px;\n  padding: 16px 18px;\n  border-radius: 16px;\n  background: #fff;\n  color: #1c1917;\n  font-family: system-ui, sans-serif;\n}\n\n.trending h3 {\n  margin: 0 0 6px;\n  font-size: 13px;\n  letter-spacing: 0.08em;\n  text-transform: uppercase;\n}\n\n.trending ol {\n  margin: 0;\n  padding: 0;\n  list-style: none;\n  counter-reset: trending;\n}\n\n.trending li {\n  display: grid;\n  grid-template-columns: 38px 1fr;\n  padding: 8px 0;\n  border-top: 1px solid #f5f5f4;\n  counter-increment: trending;\n}\n\n.trending li::before {\n  content: counter(trending, decimal-leading-zero);\n  grid-row: span 2;\n  color: #eab308;\n  font-size: 24px;\n  font-weight: 800;\n  line-height: 1;\n}\n\n.trending a {\n  color: inherit;\n  font-size: 14px;\n  font-weight: 600;\n  line-height: 1.3;\n  text-decoration: none;\n}\n\n.trending a:hover {\n  text-decoration: underline;\n}\n\n.trending a:focus-visible {\n  outline: 2px solid #ca8a04;\n  outline-offset: 2px;\n}\n\n.trending span {\n  color: #a8a29e;\n  font-size: 12px;\n}",
  "features": [
    "CSS Grid",
    "keyboard focus styles"
  ],
  "customProperties": []
}
