<commit_before>// Sass Grid

// Repository: https://github.com/thiamsantos/sassgrid.git
// Author: <NAME>
// Version: 0.1
// Licence: MIT - https://github.com/thiamsantos/sassgrid/LICENSE

// Variables
//------------------------------------------------//
$gutter-width: 1rem
$num-cols: 12

// Box Model
// ------------------------------------------------//
*
  box-sizing: border-box

// Prefixer
// ------------------------------------------------//
=flexbox
  display: -webkit-box
  display: -webkit-flex
  display: -ms-flexbox
  display: flex

=flex($fg: 1, $fs: null, $fb: null)
  $fg-boxflex: $fg
  @if type-of($fg) == "list"
    $fg-boxflex: nth($fg, 1)
  -webkit-box-flex: $fg-boxflex
  -webkit-flex: $fg $fs $fb
  -ms-flex: $fg $fs $fb
  flex: $fg $fs $fb

=flex-flow($value)
  -webkit-flex-flow: $value
  -ms-flex-flow: $value
  flex-flow: $value

=justify-content($value: flex-start)
  @if $value == flex-start
    -webkit-box-pack: start
    -ms-flex-pack: start
  @else if $value == flex-end
    -webkit-box-pack: end
    -ms-flex-pack: end
  @else if $value == space-between
    -webkit-box-pack: justify
    -ms-flex-pack: justify
  @else if $value == space-around
    -ms-flex-pack: distribute
  @else
    -webkit-box-pack: $value
    -ms-flex-pack: $value
  -webkit-justify-content: $value
  justify-content: $value

=align-items($value: stretch)
  @if $value == flex-start
    -webkit-box-align: start
    -ms-flex-align: start
  @else if $value == flex-end
    -webkit-box-align: end
    -ms-flex-align: end
  @else
    -webkit-box-align: $value
    -ms-flex-align: $value
  -webkit-align-items: $value
  align-items: $value

=align-content($value: stretch)
  -webkit-align-content: $value
  -moz-align-content: $value
  @if $value == flex-start
    -ms-flex-line-pack: start
  @else if $value == flex-end
    -ms-flex-line-pack: end
  @else
    -ms-flex-line-pack: $value
  align-content: $value

// Row
//------------------------------------------------//
%row
  +flexbox
  +flex(0 1 auto)
  +flex-flow(row wrap)
  margin: 0 -($gutter-width / 2) $gutter-width -($gutter-width / 2)

// Gutter
//------------------------------------------------//
%gutter
  padding: 0 $gutter-width / 2

// Columns
//------------------------------------------------//

// mixin
=col($col: flex)
  @if $col == flex
    +flex(1)
  @else if unit($col) == "" and $col >= 1 and $col <= $num-cols
    $perc: 100% / ($num-cols / $col)
    +flex(0 0 $perc)
  @else
    +flex(1 0 $col)

  @extend %gutter

// extends the mixin
%col-flex
  +col

@for $i from 1 through $num-cols
  %col-#{$i}
    +col($i)

// Offset
//------------------------------------------------//

@for $i from 1 through ($num-cols - 1)
  // mixin
  =offset($number-of-offset)
    margin-left: 100% / ($num-cols / $number-of-offset)

  // extends the mixin
  %offset-#{$i}
    +offset($i)

// Flex Container
//------------------------------------------------//

// mixin
=justify($content-value)
  @if $content-value == left
    +justify-content(flex-start)
  @if $content-value == right
    +justify-content(flex-end)
  @if $content-value == center
    +justify-content(center)
  @if $content-value == between
    +justify-content(space-between)
  @if $content-value == around
    +justify-content(space-around)

// extends the mixin
%justify-left
  +justify(left)

%justify-right
  +justify(right)

%justify-center
  +justify(center)

%justify-between
  +justify(between)

%justify-around
  +justify(around)

// Flex Itens
//------------------------------------------------//

// mixin
=vertical-align($vertical-value)
  @if $vertical-value == top
    +align-items(flex-start)
    +align-content(flex-start)
  @if $vertical-value == middle
    +align-items(center)
    +align-content(center)
  @if $vertical-value == bottom
    +align-items(flex-end)
    +align-content(flex-end)

// extends the mixin
%vertical-align-top
  +vertical-align(top)

%vertical-align-middle
  +vertical-align(middle)

%vertical-align-bottom
  +vertical-align(bottom)
<commit_msg>adding column<commit_after>// Sass Grid

// Repository: https://github.com/thiamsantos/sassgrid.git
// Author: <NAME>
// Version: 0.1
// Licence: MIT - https://github.com/thiamsantos/sassgrid/LICENSE

// Variables
//------------------------------------------------//
$gutter-width: 1rem
$num-cols: 12

// Box Model
// ------------------------------------------------//
*
  box-sizing: border-box

// Prefixer
// ------------------------------------------------//
=flexbox
  display: -webkit-box
  display: -webkit-flex
  display: -ms-flexbox
  display: flex

=flex($fg: 1, $fs: null, $fb: null)
  $fg-boxflex: $fg
  @if type-of($fg) == "list"
    $fg-boxflex: nth($fg, 1)
  -webkit-box-flex: $fg-boxflex
  -webkit-flex: $fg $fs $fb
  -ms-flex: $fg $fs $fb
  flex: $fg $fs $fb

=flex-flow($value)
  -webkit-flex-flow: $value
  -ms-flex-flow: $value
  flex-flow: $value

=justify-content($value: flex-start)
  @if $value == flex-start
    -webkit-box-pack: start
    -ms-flex-pack: start
  @else if $value == flex-end
    -webkit-box-pack: end
    -ms-flex-pack: end
  @else if $value == space-between
    -webkit-box-pack: justify
    -ms-flex-pack: justify
  @else if $value == space-around
    -ms-flex-pack: distribute
  @else
    -webkit-box-pack: $value
    -ms-flex-pack: $value
  -webkit-justify-content: $value
  justify-content: $value

=align-items($value: stretch)
  @if $value == flex-start
    -webkit-box-align: start
    -ms-flex-align: start
  @else if $value == flex-end
    -webkit-box-align: end
    -ms-flex-align: end
  @else
    -webkit-box-align: $value
    -ms-flex-align: $value
  -webkit-align-items: $value
  align-items: $value

=align-content($value: stretch)
  -webkit-align-content: $value
  -moz-align-content: $value
  @if $value == flex-start
    -ms-flex-line-pack: start
  @else if $value == flex-end
    -ms-flex-line-pack: end
  @else
    -ms-flex-line-pack: $value
  align-content: $value

// Row
//------------------------------------------------//
%row
  +flexbox
  +flex(0 1 auto)
  +flex-flow(row wrap)
  margin: 0 -($gutter-width / 2) $gutter-width -($gutter-width / 2)

%column
  +flexbox
  +flex(0 1 auto)
  +flex-flow(column wrap)

// Gutter
//------------------------------------------------//
%gutter
  padding: 0 $gutter-width / 2

// Columns
//------------------------------------------------//

// mixin
=col($col: flex)
  @if $col == flex
    +flex(1)
  @else if unit($col) == "" and $col >= 1 and $col <= $num-cols
    $perc: 100% / ($num-cols / $col)
    +flex(0 0 $perc)
  @else
    +flex(1 0 $col)

  @extend %gutter

// extends the mixin
%col-flex
  +col

@for $i from 1 through $num-cols
  %col-#{$i}
    +col($i)

// Offset
//------------------------------------------------//

@for $i from 1 through ($num-cols - 1)
  // mixin
  =offset($number-of-offset)
    margin-left: 100% / ($num-cols / $number-of-offset)

  // extends the mixin
  %offset-#{$i}
    +offset($i)

// Flex Container
//------------------------------------------------//

// mixin
=justify($content-value)
  @if $content-value == left
    +justify-content(flex-start)
  @if $content-value == right
    +justify-content(flex-end)
  @if $content-value == center
    +justify-content(center)
  @if $content-value == between
    +justify-content(space-between)
  @if $content-value == around
    +justify-content(space-around)

// extends the mixin
%justify-left
  +justify(left)

%justify-right
  +justify(right)

%justify-center
  +justify(center)

%justify-between
  +justify(between)

%justify-around
  +justify(around)

// Flex Itens
//------------------------------------------------//

// mixin
=align($vertical-value)
  @if $vertical-value == top
    +align-items(flex-start)
    +align-content(flex-start)
  @if $vertical-value == middle
    +align-items(center)
    +align-content(center)
  @if $vertical-value == bottom
    +align-items(flex-end)
    +align-content(flex-end)

// extends the mixin
%align-top
  +align(top)

%align-middle
  +align(middle)

%align-bottom
  +align(bottom)

{'fraction_non_alphanumeric': 0.2684897451833437, 'fraction_numerical': 0.0074580484773151025, 'mean_word_length': 1.9005046863734678, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '2586232', 'n_tokens_mistral': 2939, 'n_tokens_neox': 2841, 'n_words': 612}