From 248a90eb5fe1f5fa624423b81d0b18df85fabe35 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Mon, 14 Feb 2022 18:45:32 +0100 Subject: Restructured size variables --- src/layouts/_container.scss | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/layouts/_container.scss') diff --git a/src/layouts/_container.scss b/src/layouts/_container.scss index d3ecb5f..b8fc879 100644 --- a/src/layouts/_container.scss +++ b/src/layouts/_container.scss @@ -7,9 +7,9 @@ --dims: ( --content-width: iro.fn-px-to-rem(700px), --sm-content-width: iro.fn-px-to-rem(360px), - --pad-x: fn.global-dim(--spacing --xl), - --pad-y: fn.global-dim(--spacing --xl), - --in-page-spacing-y: fn.global-dim(--spacing --xl), + --pad-x: fn.global-dim(--size --700), + --pad-y: fn.global-dim(--size --700), + --in-page-spacing-y: fn.global-dim(--size --700), ) ), 'dims'); @@ -17,8 +17,8 @@ overflow: hidden; @include iro.bem-elem('inner') { - margin-top: calc(-1 * fn.global-dim(--spacing --xl)); - margin-bottom: calc(-1 * fn.global-dim(--spacing --xl)); + margin-top: calc(-1 * fn.global-dim(--size --700)); + margin-bottom: calc(-1 * fn.global-dim(--size --700)); &::before, &::after { @@ -29,11 +29,11 @@ } &::before { - margin-bottom: fn.global-dim(--spacing --xl); + margin-bottom: fn.global-dim(--size --700); } &::after { - margin-top: fn.global-dim(--spacing --xl); + margin-top: fn.global-dim(--size --700); } } -- cgit v1.2.3-70-g09d2