missing icon indicating copy to clipboard operation
missing copied to clipboard

Deprecate and replace the grid system

Open geoffrey-eisenbarth opened this issue 6 months ago • 1 comments

Deprecate the convoluted grid system. Replace its docs page with a guide on defining grids tersely with @scope. - Missing Roadmap

Blocked: @scope in Firefox. Blocked: attr() for <custom-ident> in Firefox (I think? mdn isn't clear on this)

Possible new syntax from @dz4k

<style>
.grid {
  [id] {
    grid-area: attr(id);
  }
}
</style>

<div class="grid" style="
  grid-template: if(
    media(width < 768px), 'title' 'nav' 'content',
    'title title' 'nav content' / auto 1fr
  )
">
  <h1 id=title>...</h1>
  <nav id=nav>...</nav>
  <div id=content>...</nav>

geoffrey-eisenbarth avatar Jun 12 '25 14:06 geoffrey-eisenbarth