Created
April 26, 2024 14:18
-
-
Save andyford/7c55c479f1503c759bcefc50ab3b3410 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .z-layout-container { | |
| --z-layout-container-gutter-width: 16px; | |
| --z-layout-container-max-width: 551px; | |
| --z-layout-container-max-width-no-gutter: calc(var(--z-layout-container-max-width) - (var(--z-layout-container-gutter-width) * 2)); | |
| max-width: var(--z-layout-container-max-width); | |
| margin-inline: auto; | |
| padding-inline: var(--z-layout-container-gutter-width); | |
| @media (min-width: 600px) { | |
| --z-layout-container-max-width: 1087px; | |
| --z-layout-container-gutter-width: 32px; | |
| } | |
| @media (min-width: 1200px) { | |
| --z-layout-container-max-width: 1600px; | |
| --z-layout-container-gutter-width: 80px; | |
| } | |
| } | |
| /* | |
| to calculate the bp max-width | |
| // 1199 - 160 = 1039 + 64 = 1103 - 16 = 1087 | |
| // 599 - 64 = 535 + 32 = 567 - 16 = 551 | |
| // max screen width | |
| // - next bp gutters | |
| // + own bp gutters | |
| // - scrollbar width (~16px) | |
| */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment