{
  "id": "compact-pagination",
  "name": "Compact Pagination",
  "category": "navigation",
  "tags": [
    "pagination",
    "page x of y",
    "mobile",
    "arrows",
    "pager"
  ],
  "description": "A small pager that shows \"Page 2 of 9\" between previous and next arrows, ideal for mobile.",
  "url": "https://copy-css.com/snippets/compact-pagination",
  "markdown": "https://copy-css.com/snippets/compact-pagination.md",
  "html": "<nav class=\"compact-pager\" aria-label=\"Pagination\">\n  <a href=\"#\" aria-label=\"Previous page\">‹</a>\n  <span>Page <b>2</b> of 9</span>\n  <a href=\"#\" aria-label=\"Next page\">›</a>\n</nav>",
  "css": ".compact-pager {\n  display: inline-flex;\n  align-items: center;\n  overflow: hidden;\n  border-radius: 12px;\n  background: #ffffff;\n  box-shadow: 0 0 0 1px #e2e8f0;\n  color: #475569;\n  font: 500 14px system-ui, sans-serif;\n}\n\n.compact-pager span {\n  padding: 0 16px;\n  border-inline: 1px solid #e2e8f0;\n  line-height: 40px;\n}\n\n.compact-pager b {\n  color: #0f172a;\n}\n\n.compact-pager a {\n  display: grid;\n  place-items: center;\n  width: 40px;\n  height: 40px;\n  color: #0f172a;\n  font-size: 22px;\n  text-decoration: none;\n}\n\n.compact-pager a:hover {\n  background: #f1f5f9;\n}\n\n.compact-pager a:focus-visible {\n  outline: 2px solid #2563eb;\n  outline-offset: -2px;\n}\n\n/* Add aria-disabled=\"true\" on the first and last page */\n.compact-pager [aria-disabled=\"true\"] {\n  color: #cbd5e1;\n  pointer-events: none;\n}",
  "features": [
    "box shadows",
    "CSS Grid",
    "Flexbox",
    "keyboard focus styles"
  ],
  "customProperties": []
}
