Sha256: 225b5da5cd99471708dd7768d6dde0e5ffd91baf08032c98c6efc4fd9979f88c

Contents?: true

Size: 1.19 KB

Versions: 245

Compression:

Stored size: 1.19 KB

Contents

$parent-columns: $grid-columns !default;
$fg-column: $column;
$fg-gutter: $gutter;
$fg-max-columns: $grid-columns;
$container-display-table: false !default;
$layout-direction: nil !default;

@function flex-grid($columns, $container-columns: $fg-max-columns) {
  $width: $columns * $fg-column + ($columns - 1) * $fg-gutter;
  $container-width: $container-columns * $fg-column + ($container-columns - 1) * $fg-gutter;
  @return percentage($width / $container-width);
}

@function flex-gutter($container-columns: $fg-max-columns, $gutter: $fg-gutter) {
  $container-width: $container-columns * $fg-column + ($container-columns - 1) * $fg-gutter;
  @return percentage($gutter / $container-width);
}

@function grid-width($n) {
  @return $n * $gw-column + ($n - 1) * $gw-gutter;
}

@function get-parent-columns($columns) {
  @if $columns != $grid-columns {
    $parent-columns: $columns;
  } @else {
    $parent-columns: $grid-columns;
  }

  @return $parent-columns;
}

@function is-display-table($container-is-display-table, $display) {
  $display-table: false;

  @if $container-is-display-table == true {
    $display-table: true;
  } @else if $display == table {
    $display-table: true;
  }

  @return $display-table;
}

Version data entries

245 entries across 245 versions & 3 rubygems

Version Path
smock-0.1.268 app/assets/stylesheets/thirdparty/neat/grid/_private.scss
smock-0.1.267 app/assets/stylesheets/thirdparty/neat/grid/_private.scss
smock-0.1.266 app/assets/stylesheets/thirdparty/neat/grid/_private.scss
smock-0.1.265 app/assets/stylesheets/thirdparty/neat/grid/_private.scss
smock-0.1.264 app/assets/stylesheets/thirdparty/neat/grid/_private.scss
smock-0.1.263 app/assets/stylesheets/thirdparty/neat/grid/_private.scss
smock-0.1.262 app/assets/stylesheets/thirdparty/neat/grid/_private.scss
smock-0.1.261 app/assets/stylesheets/thirdparty/neat/grid/_private.scss
smock-0.1.260 app/assets/stylesheets/thirdparty/neat/grid/_private.scss
smock-0.1.259 app/assets/stylesheets/thirdparty/neat/grid/_private.scss
smock-0.1.258 app/assets/stylesheets/thirdparty/neat/grid/_private.scss
smock-0.1.256 app/assets/stylesheets/thirdparty/neat/grid/_private.scss
smock-0.1.255 app/assets/stylesheets/thirdparty/neat/grid/_private.scss
smock-0.1.254 app/assets/stylesheets/thirdparty/neat/grid/_private.scss
smock-0.1.253 app/assets/stylesheets/thirdparty/neat/grid/_private.scss
smock-0.1.252 app/assets/stylesheets/thirdparty/neat/grid/_private.scss
smock-0.1.251 app/assets/stylesheets/thirdparty/neat/grid/_private.scss
smock-0.1.250 app/assets/stylesheets/thirdparty/neat/grid/_private.scss
smock-0.1.249 app/assets/stylesheets/thirdparty/neat/grid/_private.scss
smock-0.1.247 app/assets/stylesheets/thirdparty/neat/grid/_private.scss