Sha256: f76326a40fb9ec5ca4e012ed28a33f48068b830fd237e727f377419ee769dab5

Contents?: true

Size: 795 Bytes

Versions: 15

Compression:

Stored size: 795 Bytes

Contents

@function fixed-gutter($user-columns, $user-gutter, $user-gutter-style) {
  @if index($user-gutter-style, 'fixed') {
    // @debug 'Fixed in output style';
    @return true;
  }
  @else if type-of($user-columns) == 'number' and not unitless($user-gutter) {
    // @debug 'Equal columns with a unit based gutter';
    @return true;
  }
  @else if type-of($user-columns) == 'list' {
    @if unit(nth($user-columns, 1)) != unit($user-gutter) {
      // @debug 'Columns and gutters are different units';
      @return true;
    }
  }
  @else {
    @return false;
  }

  @return false;
}

@function gutter-property($user-columns, $user-gutter, $user-gutter-style) {
  @if fixed-gutter($user-columns, $user-gutter, $user-gutter-style) {
    @return 'padding';
  }
  @else {
    @return 'margin';
  }
}

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
singularitygs-1.8.0 stylesheets/singularitygs/gutter-styles/_helpers.scss
singularitygs-1.7.1 stylesheets/singularitygs/gutter-styles/_helpers.scss
singularitygs-1.7.0 stylesheets/singularitygs/gutter-styles/_helpers.scss
singularitygs-1.6.2 stylesheets/singularitygs/gutter-styles/_helpers.scss
singularitygs-1.6.1 stylesheets/singularitygs/gutter-styles/_helpers.scss
singularitygs-1.5.1 stylesheets/singularitygs/gutter-styles/_helpers.scss
singularitygs-1.5.0 stylesheets/singularitygs/gutter-styles/_helpers.scss
singularitygs-1.4.0 stylesheets/singularitygs/gutter-styles/_helpers.scss
singularitygs-1.3.0 stylesheets/singularitygs/gutter-styles/_helpers.scss
singularitygs-1.2.3 stylesheets/singularitygs/gutter-styles/_helpers.scss
singularitygs-1.2.1 stylesheets/singularitygs/gutter-styles/_helpers.scss
singularitygs-1.2.0 stylesheets/singularitygs/gutter-styles/_helpers.scss
singularitygs-1.2.0.rc.6 stylesheets/singularitygs/gutter-styles/_helpers.scss
singularitygs-1.2.0.rc.3 stylesheets/singularitygs/gutter-styles/_helpers.scss
singularitygs-1.2.0.rc.1 stylesheets/singularitygs/gutter-styles/_helpers.scss