Sha256: 931f88278ab8f2afea8346648f1409b42743b7e17f3a8300bcb25f43f5c0da99

Contents?: true

Size: 945 Bytes

Versions: 46

Compression:

Stored size: 945 Bytes

Contents

$margin-xs: $global-margin * .5;
$margin-s: $global-margin * 1;
$margin-sm: $global-margin * 2;
$margin-m: $global-margin * 3;
$margin-l: $global-margin * 5;

//Sections

.section{
  margin-bottom: $margin-sm;
  word-wrap: break-word;

  @include breakpoint(large){
    margin-bottom: $margin-m;
  }
}

.m-bottom{
  margin-bottom: $margin-s;
}

// helpers
$size: (
  none: 0,
  xs: $margin-xs,
  s: $margin-s,
  sm: $margin-sm,
  m: $margin-m,
  l: $margin-l,
) !default;

$property: (
  p: padding,
  m: margin,
) !default;

$side: (
  t: top,
  r: right,
  b: bottom,
  l: left,
) !default;

@mixin make-spaces(){
  @each $p-key, $prop in $property{
    @each $v-key, $value in $size{
      .#{$p-key}-#{$v-key}{
        #{$prop}: #{$value} !important;
      }

      @each $s-key, $side in $side{
        .#{$p-key}#{$s-key}-#{$v-key}{
          #{$prop}-#{$side}: #{$value} !important;
        }
      }
    }
  }
}

@include make-spaces();

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
decidim-core-0.27.9 app/packs/stylesheets/decidim/modules/_margins.scss
decidim-core-0.27.8 app/packs/stylesheets/decidim/modules/_margins.scss
decidim-core-0.27.7 app/packs/stylesheets/decidim/modules/_margins.scss
decidim-core-0.27.6 app/packs/stylesheets/decidim/modules/_margins.scss
decidim-core-0.26.10 app/packs/stylesheets/decidim/modules/_margins.scss
decidim-core-0.26.9 app/packs/stylesheets/decidim/modules/_margins.scss
decidim-core-0.27.5 app/packs/stylesheets/decidim/modules/_margins.scss
decidim-core-0.26.8 app/packs/stylesheets/decidim/modules/_margins.scss
decidim-core-0.27.4 app/packs/stylesheets/decidim/modules/_margins.scss
decidim-core-0.27.3 app/packs/stylesheets/decidim/modules/_margins.scss
decidim-core-0.26.7 app/packs/stylesheets/decidim/modules/_margins.scss
decidim-core-0.26.5 app/packs/stylesheets/decidim/modules/_margins.scss
decidim-core-0.27.2 app/packs/stylesheets/decidim/modules/_margins.scss
decidim-core-0.27.1 app/packs/stylesheets/decidim/modules/_margins.scss
decidim-core-0.26.4 app/packs/stylesheets/decidim/modules/_margins.scss
decidim-core-0.27.0 app/packs/stylesheets/decidim/modules/_margins.scss
decidim-core-0.26.3 app/packs/stylesheets/decidim/modules/_margins.scss
decidim-core-0.27.0.rc2 app/packs/stylesheets/decidim/modules/_margins.scss
decidim-core-0.27.0.rc1 app/packs/stylesheets/decidim/modules/_margins.scss
decidim-core-0.26.2 app/packs/stylesheets/decidim/modules/_margins.scss