Sha256: 6977a8deee2e7895b864632985fd30bd29f54a3a1c92cad9eb8d0452ef1c5632

Contents?: true

Size: 704 Bytes

Versions: 176

Compression:

Stored size: 704 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}'"
  }
};

// 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

176 entries across 176 versions & 5 rubygems

Version Path
solidus_backend-2.8.3 app/assets/stylesheets/spree/backend/globals/_functions.scss
solidus_backend-2.7.2 app/assets/stylesheets/spree/backend/globals/_functions.scss
solidus_backend-2.6.4 app/assets/stylesheets/spree/backend/globals/_functions.scss
solidus_backend-2.8.2 app/assets/stylesheets/spree/backend/globals/_functions.scss
solidus_backend-2.8.1 app/assets/stylesheets/spree/backend/globals/_functions.scss
solidus_backend-2.5.1 app/assets/stylesheets/spree/backend/globals/_functions.scss
solidus_backend-2.6.3 app/assets/stylesheets/spree/backend/globals/_functions.scss
solidus_backend-2.8.0 app/assets/stylesheets/spree/backend/globals/_functions.scss
solidus_backend-2.7.1 app/assets/stylesheets/spree/backend/globals/_functions.scss
solidus_backend-2.6.2 app/assets/stylesheets/spree/backend/globals/_functions.scss
solidus_backend_devise_token_auth-2.8.0.alpha.14 app/assets/stylesheets/spree/backend/globals/_functions.scss
solidus_backend_devise_token_auth-2.8.0.alpha.13 app/assets/stylesheets/spree/backend/globals/_functions.scss
solidus_backend_devise_token_auth-2.8.0.alpha.12 app/assets/stylesheets/spree/backend/globals/_functions.scss
solidus_backend_devise_token_auth-2.8.0.alpha.11 app/assets/stylesheets/spree/backend/globals/_functions.scss
solidus_backend_devise_token_auth-2.8.0.alpha.10 app/assets/stylesheets/spree/backend/globals/_functions.scss
solidus_backend_devise_token_auth-2.8.0.alpha.9 app/assets/stylesheets/spree/backend/globals/_functions.scss
solidus_backend_devise_token_auth-2.8.0.alpha.8 app/assets/stylesheets/spree/backend/globals/_functions.scss
solidus_backend_devise_token_auth-2.8.0.alpha.7 app/assets/stylesheets/spree/backend/globals/_functions.scss
solidus_backend_devise_token_auth-2.8.0.alpha.6 app/assets/stylesheets/spree/backend/globals/_functions.scss
solidus_backend_devise_token_auth-2.8.0.alpha.5 app/assets/stylesheets/spree/backend/globals/_functions.scss