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.18.0 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.17.2 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.17.1 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.17.0 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.16.0 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.15.2 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.15.1 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.15.0 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.14.1 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.14.0 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.13.2 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.13.1 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.13.0 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.12.1 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.12.0 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.11.1 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.10.0 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.9.0 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.8.1 app/assets/stylesheets/blacklight/_mixins.scss
blacklight-7.8.0 app/assets/stylesheets/blacklight/_mixins.scss