-
Notifications
You must be signed in to change notification settings - Fork 2
Layout docs #1615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Layout docs #1615
Conversation
|
| & | ||
| > *:not([class^="col-span-"]):not([class^="col-end-"]):not( | ||
| [class*=" col-span-"] | ||
| ):not([class*=" col-end-"]):not([class*=" sm:col-span-"]):not( | ||
| [class*=" sm:col-end-"] | ||
| ):not([class^="sm:col-span-"]):not([class^="sm:col-end-"]) { | ||
| @apply sm:col-span-12; | ||
| } | ||
|
|
||
| & | ||
| > *:not([class^="col-start-"]):not([class^="col-span-full"]):not( | ||
| [class*=" col-start-"] | ||
| ):not([class*=" col-span-full"]):not([class*=" sm:col-start-"]):not( | ||
| [class*=" sm:col-span-full"] | ||
| ):not([class^="sm:col-start-"]):not([class^="sm:col-span-full"]) { | ||
| @apply sm:col-start-2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
denne ble jo helt monster 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eeeh jepp 😅
Layout documentation page
This PR adds a new documentation page for the layout utilities in Grunnmuren, along with some improvements to the underlying CSS utilities.
Documentation (
apps/docs)/profil/layoutpage documenting:containerutility for centering content with a max-width and page paddinglayout-grid,layout-grid-container,layout-subgrid-*)layout-gap-x,layout-gap-y,layout-grid-gap-x)Tailwind utilities (
packages/tailwind)layout-grid-container: Improved to allow overridingcol-start,col-end, andcol-spanvalues. Previously, all children were forced tocol-start-2 col-span-12, making customization impossible.layout-subgrid-13,layout-subgrid-14, andlayout-subgrid-fullStorybook
OverridedColSpansstory demonstrating column span overridesGridContainerWithSubGridsstory to use correct column spans