Sha256: 7bf2d14bae0c6552aa4d5049bed9371e3dcb2181839e2229b608edb36f5be244

Contents?: true

Size: 642 Bytes

Versions: 4

Compression:

Stored size: 642 Bytes

Contents

@function tartan-columns-width($columns) {
  @return ($columns * $tartan-column-width) + ($columns - 1) * $tartan-gutter-width;
}

@function tartan-columns($columns, $context: $tartan-column-count) {
  @return tartan-relative-width(tartan-columns-width($columns), $context)
}

@function tartan-gutter($context: $tartan-column-count) {
  @return tartan-relative-width($tartan-gutter-width, $context);
}

@function tartan-container-outer-width() {
  @return tartan-columns-width($tartan-column-count);
}

@function tartan-relative-width($width, $context: $tartan-column-count) {
  @return percentage($width / tartan-columns-width($context));
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tartan-grid-1.2.0 app/assets/stylesheets/_functions.scss
tartan-grid-1.1.0 app/assets/stylesheets/_functions.scss
tartan-grid-1.0.0 app/assets/stylesheets/_functions.scss
tartan-grid-0.0.7 app/assets/stylesheets/_functions.scss