|
|
@ -5,8 +5,8 @@ $plain-ui__spacing-direction: (
|
|
|
|
'right'
|
|
|
|
'right'
|
|
|
|
) !default;
|
|
|
|
) !default;
|
|
|
|
|
|
|
|
|
|
|
|
$plain-ui__helpers__spacing-gap: 0.25 !default;
|
|
|
|
$plain-ui__spacing-gap: 0.25 !default;
|
|
|
|
$plain-ui__helpers__spacing-steps: 10 !default;
|
|
|
|
$plain-ui__spacing-steps: 10 !default;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -19,24 +19,64 @@ $plain-ui__helpers__spacing-steps: 10 !default;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@each $direction in $plain-ui__spacing-direction {
|
|
|
|
@each $direction in $plain-ui__spacing-direction
|
|
|
|
|
|
|
|
{
|
|
|
|
@include spacing('m', 'margin', $direction, 0, 0);
|
|
|
|
@include spacing('m', 'margin', $direction, 0, 0);
|
|
|
|
@include spacing('m', 'margin', $direction, 1, 1px);
|
|
|
|
@include spacing('m', 'margin', $direction, 1, 1px);
|
|
|
|
|
|
|
|
|
|
|
|
@for $i from 2 through $plain-ui__helpers__spacing-steps {
|
|
|
|
@for $i from 2 through $plain-ui__spacing-steps {
|
|
|
|
$value: $plain-ui__helpers__spacing-gap * factor($i - 1) * 1rem;
|
|
|
|
$value: $plain-ui__spacing-gap * factor($i - 1) * 1rem;
|
|
|
|
@include spacing('m', 'margin', $direction, $i, $value);
|
|
|
|
@include spacing('m', 'margin', $direction, $i, $value);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@include plain-ui__media-xs() {
|
|
|
|
|
|
|
|
@include spacing('m', 'margin', $direction, 'xs-' + $i, $value);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@include plain-ui__media-sm() {
|
|
|
|
|
|
|
|
@include spacing('m', 'margin', $direction, 'sm-' + $i, $value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@each $direction in $plain-ui__spacing-direction {
|
|
|
|
@include plain-ui__media-md() {
|
|
|
|
|
|
|
|
@include spacing('m', 'margin', $direction, 'md-' + $i, $value);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@include plain-ui__media-lg() {
|
|
|
|
|
|
|
|
@include spacing('m', 'margin', $direction, 'lg-' + $i, $value);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@include plain-ui__media-xlg() {
|
|
|
|
|
|
|
|
@include spacing('m', 'margin', $direction, 'xlg-' + $i, $value);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@each $direction in $plain-ui__spacing-direction
|
|
|
|
|
|
|
|
{
|
|
|
|
@include spacing('p', 'padding', $direction, 0, 0);
|
|
|
|
@include spacing('p', 'padding', $direction, 0, 0);
|
|
|
|
@include spacing('p', 'padding', $direction, 1, 1px);
|
|
|
|
@include spacing('p', 'padding', $direction, 1, 1px);
|
|
|
|
|
|
|
|
|
|
|
|
@for $i from 0 through $plain-ui__helpers__spacing-steps {
|
|
|
|
@for $i from 0 through $plain-ui__spacing-steps {
|
|
|
|
$value: $plain-ui__helpers__spacing-gap * factor($i - 1) * 1rem;
|
|
|
|
$value: $plain-ui__spacing-gap * factor($i - 1) * 1rem;
|
|
|
|
@include spacing('p', 'padding', $direction, $i, $value);
|
|
|
|
@include spacing('p', 'padding', $direction, $i, $value);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@include plain-ui__media-xs() {
|
|
|
|
|
|
|
|
@include spacing('p', 'padding', $direction, 'xs-' + $i, $value);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@include plain-ui__media-sm() {
|
|
|
|
|
|
|
|
@include spacing('p', 'padding', $direction, 'sm-' + $i, $value);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@include plain-ui__media-md() {
|
|
|
|
|
|
|
|
@include spacing('p', 'padding', $direction, 'md-' + $i, $value);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@include plain-ui__media-lg() {
|
|
|
|
|
|
|
|
@include spacing('p', 'padding', $direction, 'lg-' + $i, $value);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@include plain-ui__media-xlg() {
|
|
|
|
|
|
|
|
@include spacing('p', 'padding', $direction, 'xlg-' + $i, $value);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|