Sha256: 4aa04fec8f0097c4b709d834ebbe2acd135e9d5c6dab57a20b7df103f32317c3

Contents?: true

Size: 1.09 KB

Versions: 83

Compression:

Stored size: 1.09 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: LTR !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 !global;
  } @else {
    $parent-columns: $grid-columns !global;
  }

  @return $parent-columns;
}

@function is-display-table($container-is-display-table, $display) {
  @return $container-is-display-table == true or $display == table;
}

Version data entries

83 entries across 76 versions & 16 rubygems

Version Path
federalist-basic-report-theme-0.1.7 _sass/uswds/lib/grid/_private.scss
uswds-jekyll-4.2.0 _sass/uswds/lib/grid/_private.scss
jekyll-theme-uswds-0.1.0 _sass/uswds/lib/grid/_private.scss
federalist-basic-report-theme-0.1.5 _sass/uswds/lib/grid/_private.scss
federalist-basic-report-theme-0.1.4 _sass/uswds/lib/grid/_private.scss
federalist-basic-report-theme-0.1.3 _sass/uswds/lib/grid/_private.scss
uswds-jekyll-4.1.0 _sass/uswds/lib/grid/_private.scss
uswds-jekyll-4.0.0 _sass/uswds/lib/grid/_private.scss
uswds-jekyll-3.0.0 _sass/uswds/lib/grid/_private.scss
uswds-jekyll-2.2.1 _sass/uswds/lib/grid/_private.scss
uswds-jekyll-2.2.1 assets/uswds/scss/lib/grid/_private.scss
uswds-jekyll-2.2.0 _sass/uswds/lib/grid/_private.scss
uswds-jekyll-2.2.0 assets/uswds/scss/lib/grid/_private.scss
uswds-jekyll-2.1.0 assets/uswds/scss/lib/grid/_private.scss
uswds-jekyll-2.1.0 _sass/uswds/lib/grid/_private.scss
uswds-jekyll-2.0.1 _sass/uswds/lib/grid/_private.scss
uswds-jekyll-2.0.1 assets/uswds/scss/lib/grid/_private.scss
uswds-jekyll-2.0.0 assets/uswds/scss/lib/grid/_private.scss
uswds-jekyll-2.0.0 _sass/uswds/lib/grid/_private.scss
uswds-jekyll-1.4.1 _sass/uswds/lib/grid/_private.scss