/* ============================================================================
   07-UTILITIES -> #TEXT
   ========================================================================= */

//
// SCSS imports
//

@use '../01-settings' as *;
@use '../02-tools' as *;


//
// Settings
//

$_spacing-directions:(
    'top': (
        't',
        'y',
    ),
    'right': (
        'r',
        'x',
    ),
    'bottom': (
        'b',
        'y',
    ),
    'left': (
        'l',
        'x',
    ),
);


/**
 * Spacing property utility classes
 */

@include generate-utility((
    'property':    'padding',
    'prefix':      'p',
    'values':      $spacing,
    'responsive':  true,
    'directions': $_spacing-directions,
));


@include generate-utility((
    'property':    'margin',
    'prefix':      'm',
    'values':      map-merge($spacing, ('auto': auto)),
    'responsive':  true,
    'directions': $_spacing-directions,
));