<commit_before>/* -------------------------------------------------------------------------
 * PACK
 *
 * The pack object simply causes any number of elements pack up horizontally to
 * automatically fill an equal, fluid width of their parent.
 *
 * Params:
 * SPACE .............................. Horizontal separation between image and body
 * ALIGNMENT .......................... Vertical items alignment
 *
 */


// Object variables
// --------------------------------------------------

// Object toggling

$o-pack--enabled:                           true !default;

// Object Params

$o-pack__space:                             $g-reset__spacing--horizontal !default;

// Modifiers Spaces

$o-pack__mod-spaces--enabled:               true !default;
$o-pack-spaces:                             map_remove($f-spaces, "large", "huge") !default;

// Modifiers Alignments

$o-pack__mod-alignments--enabled:           true !default;
$o-pack__mod-alignments:                    (top, middle, bottom) !default;

// Modifier Reverse

$o-pack__mod-reverse--enabled:              true !default;

// Modifier Auto Width

$o-pack__mod-auto--enabled:                 true !default;


// Object as a mixin
// --------------------------------------------------

@mixin o-pack($_space-value: $o-pack__space) {
  width: 100%;
  margin-left: 0;
  display: table;
  table-layout: fixed;
  border-spacing: s-core-px-to-rem($_space-value);
}

@mixin o-pack__item() {
  display: table-cell;
  vertical-align: top;
}


// Object selector output
// --------------------------------------------------

@if ($o-pack--enabled) {
  .o-pack {
    @include o-pack();
  }

  .o-pack__item {
    @include o-pack__item();
  }

}


// Space modifiers
// --------------------------------------------------

@mixin o-pack--space($_space-name: "none", $_space-value: 0) {
  .o-pack--space-#{$_space-name} {
    border-spacing: s-core-px-to-rem($_space-value);
  }
}

@if ($o-pack--enabled and $o-pack__mod-spaces--enabled) {
  @each $_space-name, $_space-value in $o-pack-spaces {
    @include o-pack--space($_space-name, $_space-value);
  }
}


// Alignment modifiers
// --------------------------------------------------

@mixin o-pack__mod-alignment($_vertical-alignment: top) {
  .o-pack--#{$_vertical-alignment} > .o-pack__item {
    vertical-align: $_vertical-alignment;
  }
}

@if ($o-pack--enabled and $o-pack__mod-alignments--enabled) {
  @each $_vertical-alignment in $o-pack__mod-alignments {
    @include o-pack__mod-alignment($_vertical-alignment);
  }

}


// Reverse modifier
// --------------------------------------------------

@mixin o-pack--reverse() {
  direction: rtl;
}

@mixin o-pack__item--reverse() {
  direction: ltr;
}

@if ($o-pack--enabled and $o-pack__mod-reverse--enabled) {
  .o-pack--reverse {
    @include o-pack--reverse();

    > .o-pack__item {
      @include o-pack__item--reverse();
    }

  }

}


// Auto-Width modifier
// --------------------------------------------------

@mixin o-pack--auto() {
  table-layout: auto;
}

@if ($o-pack--enabled and $o-pack__mod-auto--enabled) {
  .o-pack--auto {
    @include o-pack--auto();
  }
}


// Unset as a mixin
// --------------------------------------------------

@mixin o-pack--unset() {
  width: auto;
  margin-left: inherit;
  display: inherit;
  table-layout: inherit;
  border-spacing: inherit;
}

@mixin o-pack__item--unset() {
  display: inherit;
  vertical-align: inherit;
}<commit_msg>Fixing o-pack object for the situation of the parent having the "border-collapse" property setted to "collapse", in that case the spacing of the object were not correctly applyed cause the spacing is set via border-spacing (such as the elements is build with display-table). For more information about this property check:<commit_after>/* -------------------------------------------------------------------------
 * PACK
 *
 * The pack object simply causes any number of elements pack up horizontally to
 * automatically fill an equal, fluid width of their parent.
 *
 * Params:
 * SPACE .............................. Horizontal separation between image and body
 * ALIGNMENT .......................... Vertical items alignment
 *
 */


// Object variables
// --------------------------------------------------

// Object toggling

$o-pack--enabled:                           true !default;

// Object Params

$o-pack__space:                             $g-reset__spacing--horizontal !default;

// Modifiers Spaces

$o-pack__mod-spaces--enabled:               true !default;
$o-pack-spaces:                             map_remove($f-spaces, "large", "huge") !default;

// Modifiers Alignments

$o-pack__mod-alignments--enabled:           true !default;
$o-pack__mod-alignments:                    (top, middle, bottom) !default;

// Modifier Reverse

$o-pack__mod-reverse--enabled:              true !default;

// Modifier Auto Width

$o-pack__mod-auto--enabled:                 true !default;


// Object as a mixin
// --------------------------------------------------

@mixin o-pack($_space-value: $o-pack__space) {
  width: 100%;
  margin-left: 0;
  display: table;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: s-core-px-to-rem($_space-value);
}

@mixin o-pack__item() {
  display: table-cell;
  vertical-align: top;
}


// Object selector output
// --------------------------------------------------

@if ($o-pack--enabled) {
  .o-pack {
    @include o-pack();
  }

  .o-pack__item {
    @include o-pack__item();
  }

}


// Space modifiers
// --------------------------------------------------

@mixin o-pack--space($_space-name: "none", $_space-value: 0) {
  .o-pack--space-#{$_space-name} {
    border-spacing: s-core-px-to-rem($_space-value);
  }
}

@if ($o-pack--enabled and $o-pack__mod-spaces--enabled) {
  @each $_space-name, $_space-value in $o-pack-spaces {
    @include o-pack--space($_space-name, $_space-value);
  }
}


// Alignment modifiers
// --------------------------------------------------

@mixin o-pack__mod-alignment($_vertical-alignment: top) {
  .o-pack--#{$_vertical-alignment} > .o-pack__item {
    vertical-align: $_vertical-alignment;
  }
}

@if ($o-pack--enabled and $o-pack__mod-alignments--enabled) {
  @each $_vertical-alignment in $o-pack__mod-alignments {
    @include o-pack__mod-alignment($_vertical-alignment);
  }

}


// Reverse modifier
// --------------------------------------------------

@mixin o-pack--reverse() {
  direction: rtl;
}

@mixin o-pack__item--reverse() {
  direction: ltr;
}

@if ($o-pack--enabled and $o-pack__mod-reverse--enabled) {
  .o-pack--reverse {
    @include o-pack--reverse();

    > .o-pack__item {
      @include o-pack__item--reverse();
    }

  }

}


// Auto-Width modifier
// --------------------------------------------------

@mixin o-pack--auto() {
  table-layout: auto;
}

@if ($o-pack--enabled and $o-pack__mod-auto--enabled) {
  .o-pack--auto {
    @include o-pack--auto();
  }
}


// Unset as a mixin
// --------------------------------------------------

@mixin o-pack--unset() {
  width: auto;
  margin-left: inherit;
  display: inherit;
  table-layout: inherit;
  border-collapse: inherit;
  border-spacing: inherit;
}

@mixin o-pack__item--unset() {
  display: inherit;
  vertical-align: inherit;
}
{'fraction_non_alphanumeric': 0.27952105697770435, 'fraction_numerical': 0.0013762730525736307, 'mean_word_length': 1.6055934026532808, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3844789', 'n_tokens_mistral': 2237, 'n_tokens_neox': 2154, 'n_words': 471}