Skip to content

Instantly share code, notes, and snippets.

@AdamMescher
Last active January 10, 2024 22:05
Show Gist options
  • Select an option

  • Save AdamMescher/118f61f1fdc1962289c58476b454ae75 to your computer and use it in GitHub Desktop.

Select an option

Save AdamMescher/118f61f1fdc1962289c58476b454ae75 to your computer and use it in GitHub Desktop.
https://buildexcellentwebsit.es/: Be the browser’s mentor, not its micromanager. For forth and build great websites!
.flow > * + * {
margin-inline-start: var(--flow-space, 1em);
}
.grid {
display: grid;
grid-template-columns: repeat(
var(--grid-placement, auto-fill),
minmax(var(--grid-min-item-size, 16rem), 1fr)
);
gap: var(--gutter, var(--space-s-l));
}
.region {
padding-inline-start: var(--region-space, var(--space-l-2xl));
padding-inline-end: var(--region-space, var(--space-l-2xl));
}
<ul class="grid" role="list">
...
</ul>
<style>
[role='list'] {
padding: 0;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment