Sha256: fd4f748e73d6022cbe7a4c1840bfbc7a450d586ddce2cb3425b34987d3e97db1

Contents?: true

Size: 335 Bytes

Versions: 69

Compression:

Stored size: 335 Bytes

Contents

// Stroke contrast
// Ripped off from https://github.com/twbs/bootstrap/commit/c31d52499811d5c68d122db806ce27a112b489bd
@mixin fill-yiq($color) {
  $r: red($color);
  $g: green($color);
  $b: blue($color);

  $yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000;

  @if ($yiq >= 150) {
    fill: #111;
  } @else {
    fill: #fff;
  }
}

Version data entries

69 entries across 69 versions & 2 rubygems

Version Path
blacklight-7.40.0 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.39.0 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.38.0 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-7.37.0/app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.37.0 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.36.2 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.36.1 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.36.0 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.35.0 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.34.0 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.33.1 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.33.0 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.32.0 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.31.0 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.30.0 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.29.0 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.28.0 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.27.1 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.27.0 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.26.1 app/assets/stylesheets/blacklight/_mixins.scss