Sha256: 93006d92893f8a06fb0ed59c98cb2ccd2adbf5cdec133b889c023c6130f99adb

Contents?: true

Size: 720 Bytes

Versions: 11

Compression:

Stored size: 720 Bytes

Contents

// Make color very close to white
@function very-light($color, $adjust: 3){
  @if type-of($adjust) == 'number' and $adjust > 0 {
    @for $i from 0 through 100 {
      @if lighten($color, $i) == white and ($i - $adjust) > $adjust {
        @return lighten($color, $i - $adjust);
      }
    }
  }
  @else {
    @debug "Please correct $adjust value. It should be number and larger then 0. Currently it is '#{type-of($adjust)}' with value '#{$adjust}'"
  }
  @return $color;
};

// Quick fix for dynamic variables missing in SASS
@function get-value($prop, $val, $search) {
  $n1: index($prop, $search);
  $n2: index($val, $search);

  @if($n1) {
    @return nth($val, $n1);
  } @else {
    @return nth($prop, $n2);
  }
}

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
solidus_backend-2.8.6 app/assets/stylesheets/spree/backend/globals/_functions.scss
solidus_backend-2.6.6 app/assets/stylesheets/spree/backend/globals/_functions.scss
solidus_backend-2.7.4 app/assets/stylesheets/spree/backend/globals/_functions.scss
solidus_backend-2.8.5 app/assets/stylesheets/spree/backend/globals/_functions.scss
solidus_backend-2.7.3 app/assets/stylesheets/spree/backend/globals/_functions.scss
solidus_backend-2.6.5 app/assets/stylesheets/spree/backend/globals/_functions.scss
solidus_backend-2.5.2 app/assets/stylesheets/spree/backend/globals/_functions.scss
solidus_backend-2.9.1 app/assets/stylesheets/spree/backend/globals/_functions.scss
solidus_backend-2.9.0 app/assets/stylesheets/spree/backend/globals/_functions.scss
solidus_backend-2.9.0.rc.1 app/assets/stylesheets/spree/backend/globals/_functions.scss
solidus_backend-2.8.4 app/assets/stylesheets/spree/backend/globals/_functions.scss