mirror of
https://github.com/locomotivemtl/locomotive-boilerplate.git
synced 2026-01-15 00:55:08 +08:00
Replace vh based spacing values
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"version": 1706549368176
|
"version": 1711466115649
|
||||||
}
|
}
|
||||||
@@ -2,16 +2,45 @@
|
|||||||
// Settings / Config / Spacers
|
// Settings / Config / Spacers
|
||||||
// ==========================================================================
|
// ==========================================================================
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--spacing-2xs-mobile: 6;
|
||||||
|
--spacing-2xs-desktop: 10;
|
||||||
|
|
||||||
|
--spacing-xs-mobile: 12;
|
||||||
|
--spacing-xs-desktop: 16;
|
||||||
|
|
||||||
|
--spacing-sm-mobile: 22;
|
||||||
|
--spacing-sm-desktop: 32;
|
||||||
|
|
||||||
|
--spacing-md-mobile: 32;
|
||||||
|
--spacing-md-desktop: 56;
|
||||||
|
|
||||||
|
--spacing-lg-mobile: 48;
|
||||||
|
--spacing-lg-desktop: 96;
|
||||||
|
|
||||||
|
--spacing-xl-mobile: 64;
|
||||||
|
--spacing-xl-desktop: 128;
|
||||||
|
|
||||||
|
--spacing-2xl-mobile: 88;
|
||||||
|
--spacing-2xl-desktop: 176;
|
||||||
|
|
||||||
|
--spacing-3xl-mobile: 122;
|
||||||
|
--spacing-3xl-desktop: 224;
|
||||||
|
}
|
||||||
|
|
||||||
// Spacers
|
// Spacers
|
||||||
// ==========================================================================
|
// ==========================================================================
|
||||||
|
|
||||||
$spacers: (
|
$spacers: (
|
||||||
'gutter': var(--grid-gutter),
|
'gutter': var(--grid-gutter),
|
||||||
'xs': #{vh(5)},
|
'2xs': #{spacingClamp('2xs')},
|
||||||
'sm': #{vh(7.5)},
|
'xs': #{spacingClamp('xs')},
|
||||||
'md': #{vh(10)},
|
'sm': #{spacingClamp('sm')},
|
||||||
'lg': #{vh(12.5)},
|
'md': #{spacingClamp('md')},
|
||||||
'xl': #{vh(15)},
|
'lg': #{spacingClamp('lg')},
|
||||||
|
'xl': #{spacingClamp('xl')},
|
||||||
|
'2xl': #{spacingClamp('2xl')},
|
||||||
|
'3xl': #{spacingClamp('3xl')},
|
||||||
);
|
);
|
||||||
|
|
||||||
// Function
|
// Function
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user