<commit_before>// Foundation for Sites by ZURB
// foundation.zurb.com
// Licensed under MIT Open Source

////
/// @group prototype-spacing
////

/// Map containing all the `spacing` classes
/// @type Map
$prototype-spacing-classes: (
  margin: m, 
  padding: p
) !default;

/// Default value for `prototype-spacer`
/// @type Number
$prototype-spacer: rem-calc(10px) !default;

/// Map containing all the spacer values.
/// @type Map
$prototype-spacers: (
  0: (
    x: 0,
    y: 0
  ),
  10: (
    x: ($prototype-spacer * 1),
    y: ($prototype-spacer * 1)
  ),
  20: (
    x: ($prototype-spacer * 2),
    y: ($prototype-spacer * 2)
  ),
  30: (
    x: ($prototype-spacer * 3),
    y: ($prototype-spacer * 3)
  ),
  40: (
    x: ($prototype-spacer * 4),
    y: ($prototype-spacer * 4)
  ),
  50: (
    x: ($prototype-spacer * 5),
    y: ($prototype-spacer * 5)
  )
) !default;

@mixin foundation-prototype-spacing {

  @each $prop, $abbrev in $prototype-spacing-classes {
    @each $size, $lengths in $prototype-spacers {
      $length-x:   map-get($lengths, x);
      $length-y:   map-get($lengths, y);

      .#{$abbrev}-a-#{$size} { 
        #{$prop}: $length-y $length-x !important; 
      } // a = All sides
      .#{$abbrev}-t-#{$size} { 
        #{$prop}-top: $length-y !important; 
      } // t = top
      .#{$abbrev}-r-#{$size} { 
        #{$prop}-right: $length-x !important; 
      } // r = right
      .#{$abbrev}-b-#{$size} { 
        #{$prop}-bottom: $length-y !important; 
      } // b = bottom
      .#{$abbrev}-l-#{$size} { 
        #{$prop}-left: $length-x !important; 
      } // l = left

      // Axes
      .#{$abbrev}-x-#{$size} {
        #{$prop}-right: $length-x !important;
        #{$prop}-left: $length-x !important;
      } // x = Horizontal Line
      .#{$abbrev}-y-#{$size} {
        #{$prop}-top: $length-y !important;
        #{$prop}-bottom: $length-y !important;
      } // y = vertical line
    }
  }
}
<commit_msg>Spacing Utilities: Added negative margin to the code!<commit_after>// Foundation for Sites by ZURB
// foundation.zurb.com
// Licensed under MIT Open Source

////
/// @group prototype-spacing
////

/// Map containing all the `spacing` classes
/// @type Map
$prototype-spacing-classes: (
  margin: m, 
  padding: p
) !default;

/// Default value for `prototype-spacer`
/// @type Number
$prototype-spacer: rem-calc(10px) !default;

/// Map containing all the spacer values.
/// @type Map
$prototype-spacers: (
  0: (
    x: 0,
    y: 0
  ),
  10: (
    x: ($prototype-spacer * 1),
    y: ($prototype-spacer * 1)
  ),
  20: (
    x: ($prototype-spacer * 2),
    y: ($prototype-spacer * 2)
  ),
  30: (
    x: ($prototype-spacer * 3),
    y: ($prototype-spacer * 3)
  ),
  40: (
    x: ($prototype-spacer * 4),
    y: ($prototype-spacer * 4)
  ),
  50: (
    x: ($prototype-spacer * 5),
    y: ($prototype-spacer * 5)
  )
) !default;

@mixin foundation-prototype-spacing {

  @each $prop, $abbrev in $prototype-spacing-classes {
    @each $size, $lengths in $prototype-spacers {
      $length-x:   map-get($lengths, x);
      $length-y:   map-get($lengths, y);

      // Positive Margin & Padding
      .#{$abbrev}-a-#{$size} { 
        #{$prop}: $length-y $length-x !important; 
      } // a = All sides
      .#{$abbrev}-t-#{$size} { 
        #{$prop}-top: $length-y !important; 
      } // t = top
      .#{$abbrev}-r-#{$size} { 
        #{$prop}-right: $length-x !important; 
      } // r = right
      .#{$abbrev}-b-#{$size} { 
        #{$prop}-bottom: $length-y !important; 
      } // b = bottom
      .#{$abbrev}-l-#{$size} { 
        #{$prop}-left: $length-x !important; 
      } // l = left

      // Axes
      .#{$abbrev}-x-#{$size} {
        #{$prop}-right: $length-x !important;
        #{$prop}-left: $length-x !important;
      } // x = Horizontal Line
      .#{$abbrev}-y-#{$size} {
        #{$prop}-top: $length-y !important;
        #{$prop}-bottom: $length-y !important;
      } // y = vertical line

      // Negative margin
      @if ($prop == margin ) {
        .#{$abbrev}-a-#{$size}n { 
          #{$prop}: ($length-y * -1) ($length-x * -1) !important; 
        } // a = All sides
        .#{$abbrev}-t-#{$size}n { 
          #{$prop}-top: ($length-y * -1) !important; 
        } // t = top
        .#{$abbrev}-r-#{$size}n { 
          #{$prop}-right: ($length-x * -1) !important; 
        } // r = right
        .#{$abbrev}-b-#{$size}n { 
          #{$prop}-bottom: ($length-y * -1) !important; 
        } // b = bottom
        .#{$abbrev}-l-#{$size}n { 
          #{$prop}-left: ($length-x * -1) !important; 
        } // l = left

        // Axes
        .#{$abbrev}-x-#{$size}n {
          #{$prop}-right: ($length-x * -1) !important;
          #{$prop}-left: ($length-x * -1) !important;
        } // x = Horizontal Line
        .#{$abbrev}-y-#{$size}n {
          #{$prop}-top: ($length-y * -1) !important;
          #{$prop}-bottom: ($length-y * -1) !important;
        } // y = vertical line
      }
    }
  }
}

{'fraction_non_alphanumeric': 0.21754807692307693, 'fraction_numerical': 0.01201923076923077, 'mean_word_length': 1.9233021077283372, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5297369', 'n_tokens_mistral': 1934, 'n_tokens_neox': 1745, 'n_words': 394}