SmolCSS - Responsive CSS Grid

PHOTO EMBED

Thu Apr 21 2022 05:49:24 GMT+0000 (UTC)

Saved by @alexmwalker #css

.smol-css-grid {
  --min: 15ch;
  --gap: 1rem;

  display: grid;
  grid-gap: var(--gap);
  /* min() with 100% prevents overflow
  in extra narrow spaces */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min)), 1fr));
}
content_copyCOPY

https://smolcss.dev/