style: convert project sizing to scalable rem units with responsive root font scaling
This commit is contained in:
@@ -21,65 +21,65 @@
|
||||
--color-border-strong-light: #A9BEDA;
|
||||
--color-border-strong-dark: #426B9D;
|
||||
--color-black: #000000;
|
||||
--space-0: 0px;
|
||||
--space-1: 4px;
|
||||
--space-2: 8px;
|
||||
--space-3: 12px;
|
||||
--space-4: 16px;
|
||||
--space-5: 24px;
|
||||
--space-6: 32px;
|
||||
--space-7: 40px;
|
||||
--space-8: 48px;
|
||||
--space-9: 64px;
|
||||
--space-10: 80px;
|
||||
--space-11: 96px;
|
||||
--space-12: 120px;
|
||||
--radius-sm: 8px;
|
||||
--radius-md: 12px;
|
||||
--radius-lg: 16px;
|
||||
--radius-xl: 24px;
|
||||
--radius-pill: 999px;
|
||||
--space-0: 0;
|
||||
--space-1: 0.25rem;
|
||||
--space-2: 0.5rem;
|
||||
--space-3: 0.75rem;
|
||||
--space-4: 1rem;
|
||||
--space-5: 1.5rem;
|
||||
--space-6: 2rem;
|
||||
--space-7: 2.5rem;
|
||||
--space-8: 3rem;
|
||||
--space-9: 4rem;
|
||||
--space-10: 5rem;
|
||||
--space-11: 6rem;
|
||||
--space-12: 7.5rem;
|
||||
--radius-sm: 0.5rem;
|
||||
--radius-md: 0.75rem;
|
||||
--radius-lg: 1rem;
|
||||
--radius-xl: 1.5rem;
|
||||
--radius-pill: 9999px;
|
||||
--stroke-default: 1px;
|
||||
--stroke-strong: 2px;
|
||||
--layout-frame: 1440px;
|
||||
--layout-container: 1320px;
|
||||
--layout-page-gutter: 60px;
|
||||
--layout-grid-gutter: 24px;
|
||||
--layout-grid-column: 88px;
|
||||
--layout-section-gap: 120px;
|
||||
--layout-section-padding: 96px;
|
||||
--layout-text-measure: 720px;
|
||||
--size-icon-sm: 16px;
|
||||
--size-icon-md: 20px;
|
||||
--size-icon-lg: 24px;
|
||||
--size-icon-button: 44px;
|
||||
--size-button-height: 48px;
|
||||
--size-social-button: 56px;
|
||||
--size-avatar: 200px;
|
||||
--size-journey-image: 96px;
|
||||
--size-project-width: 360px;
|
||||
--size-project-media-height: 225px;
|
||||
--size-tool-tile: 72px;
|
||||
--font-size-display-hero: 64px;
|
||||
--font-size-display-footer: 48px;
|
||||
--font-size-h1: 40px;
|
||||
--font-size-h2: 32px;
|
||||
--font-size-h3: 20px;
|
||||
--font-size-body-large: 18px;
|
||||
--font-size-body-default: 16px;
|
||||
--font-size-body-small: 14px;
|
||||
--font-size-label-small: 12px;
|
||||
--font-size-button: 15px;
|
||||
--line-height-display-hero: 72px;
|
||||
--line-height-display-footer: 56px;
|
||||
--line-height-h1: 52px;
|
||||
--line-height-h2: 42px;
|
||||
--line-height-h3: 28px;
|
||||
--line-height-body-large: 30px;
|
||||
--line-height-body-default: 26px;
|
||||
--line-height-body-small: 22px;
|
||||
--line-height-label-small: 18px;
|
||||
--line-height-button: 20px;
|
||||
--layout-page-gutter: 3.75rem;
|
||||
--layout-grid-gutter: 1.5rem;
|
||||
--layout-grid-column: 5.5rem;
|
||||
--layout-section-gap: 7.5rem;
|
||||
--layout-section-padding: 6rem;
|
||||
--layout-text-measure: 45rem;
|
||||
--size-icon-sm: 1rem;
|
||||
--size-icon-md: 1.25rem;
|
||||
--size-icon-lg: 1.5rem;
|
||||
--size-icon-button: 2.75rem;
|
||||
--size-button-height: 3rem;
|
||||
--size-social-button: 3.5rem;
|
||||
--size-avatar: 12.5rem;
|
||||
--size-journey-image: 6rem;
|
||||
--size-project-width: 22.5rem;
|
||||
--size-project-media-height: 14.0625rem;
|
||||
--size-tool-tile: 4.5rem;
|
||||
--font-size-display-hero: 4rem;
|
||||
--font-size-display-footer: 3rem;
|
||||
--font-size-h1: 2.5rem;
|
||||
--font-size-h2: 2rem;
|
||||
--font-size-h3: 1.25rem;
|
||||
--font-size-body-large: 1.125rem;
|
||||
--font-size-body-default: 1rem;
|
||||
--font-size-body-small: 0.875rem;
|
||||
--font-size-label-small: 0.75rem;
|
||||
--font-size-button: 0.9375rem;
|
||||
--line-height-display-hero: 4.5rem;
|
||||
--line-height-display-footer: 3.5rem;
|
||||
--line-height-h1: 3.25rem;
|
||||
--line-height-h2: 2.625rem;
|
||||
--line-height-h3: 1.75rem;
|
||||
--line-height-body-large: 1.875rem;
|
||||
--line-height-body-default: 1.625rem;
|
||||
--line-height-body-small: 1.375rem;
|
||||
--line-height-label-small: 1.125rem;
|
||||
--line-height-button: 1.25rem;
|
||||
--letter-spacing-eyebrow: 0.16em;
|
||||
--motion-duration-fast: 140ms;
|
||||
--motion-duration-default: 200ms;
|
||||
@@ -161,14 +161,14 @@
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
:root {
|
||||
--layout-page-gutter: 32px;
|
||||
--layout-section-padding: 80px;
|
||||
--layout-page-gutter: 2rem;
|
||||
--layout-section-padding: 5rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
@media (max-width: 650px) {
|
||||
:root {
|
||||
--layout-page-gutter: 20px;
|
||||
--layout-section-padding: 64px;
|
||||
--layout-page-gutter: 1.25rem;
|
||||
--layout-section-padding: 4rem;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user