Sha256: 488bc891578bffe25ff893d6ee2e01077d833b569e6e34e7cf84d3004bbea08c

Contents?: true

Size: 572 Bytes

Versions: 6

Compression:

Stored size: 572 Bytes

Contents

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

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

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

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tartan-grid-0.0.6 app/assets/stylesheets/_functions.scss
tartan-grid-0.0.5 app/assets/stylesheets/_functions.scss
tartan-grid-0.0.4 app/assets/stylesheets/_functions.scss
tartan-grid-0.0.3 app/assets/stylesheets/_functions.scss
tartan-grid-0.0.2 app/assets/stylesheets/_functions.scss
tartan-grid-0.0.1 app/assets/stylesheets/_functions.scss