From 511a47c8964c43927563ee88b62b3f215bf9b7d1 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Mon, 28 Mar 2022 20:25:21 +0200 Subject: Update --- src/layouts/_container.scss | 65 ++++----------------------------------------- 1 file changed, 5 insertions(+), 60 deletions(-) (limited to 'src/layouts') diff --git a/src/layouts/_container.scss b/src/layouts/_container.scss index 3f81758..521262d 100644 --- a/src/layouts/_container.scss +++ b/src/layouts/_container.scss @@ -5,77 +5,22 @@ @include iro.props-namespace('container') { @include iro.props-store(( --dims: ( - --content-width: iro.fn-px-to-rem(700px), - --sm-content-width: iro.fn-px-to-rem(360px), - --pad-x: fn.global-dim(--size --700), - --pad-y: fn.global-dim(--size --700), + --width: iro.fn-px-to-rem(700px), + --width-50: iro.fn-px-to-rem(360px), ) ), 'dims'); @include iro.bem-layout(iro.props-namespace()) { - overflow: hidden; - - @include iro.bem-elem('inner') { - margin-top: calc(-1 * fn.global-dim(--size --700)); - margin-bottom: calc(-1 * fn.global-dim(--size --700)); - - &::before, - &::after { - content: ''; - display: block; - width: 0; - height: 0; - } - - &::before { - margin-bottom: fn.global-dim(--size --700); - } - - &::after { - margin-top: fn.global-dim(--size --700); - } - } - - @include iro.bem-modifier('pad-x') { - padding-right: fn.dim(--pad-x); - padding-left: fn.dim(--pad-x); - } - - @include iro.bem-modifier('pad-y') { - padding-top: fn.dim(--pad-y); - padding-bottom: fn.dim(--pad-y); - } - @include iro.bem-modifier('narrow') { - max-width: fn.dim(--content-width); + max-width: fn.dim(--width); margin-right: auto; margin-left: auto; - - @each $breakpoint in map-keys(media.$breakpoints) { - @include media.media('<=#{$breakpoint}') { - @include iro.bem-suffix('#{$breakpoint}-down') { - max-width: fn.dim(--content-width); - margin-right: auto; - margin-left: auto; - } - } - } } - @include iro.bem-modifier('sm-narrow') { - max-width: fn.dim(--sm-content-width); + @include iro.bem-modifier('narrow-50') { + max-width: fn.dim(--width-50); margin-right: auto; margin-left: auto; - - @each $breakpoint in map-keys(media.$breakpoints) { - @include media.media('<=#{$breakpoint}') { - @include iro.bem-suffix('#{$breakpoint}-down') { - max-width: fn.dim(--sm-content-width); - margin-right: auto; - margin-left: auto; - } - } - } } } } -- cgit v1.2.3-70-g09d2