Skip to content

Commit

Permalink
Merge pull request #3185 from projectblacklight/unused-code
Browse files Browse the repository at this point in the history
Remove unused sass code
  • Loading branch information
corylown authored Jun 7, 2024
2 parents 29c0587 + c46b83d commit b36a296
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions app/assets/stylesheets/blacklight/_mixins.scss
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
// 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;
}
}

// define a visually-hidden class that applies to a given breakpoint and below
// https://getbootstrap.com/docs/5.3/helpers/visually-hidden/
@if mixin-exists(visually-hidden) {
Expand All @@ -24,7 +8,8 @@
}
}
}
} @else if mixin-exists(sr-only) { // Bootstrap 4 version
} @else if mixin-exists(sr-only) {
// Bootstrap 4 version
@each $infix, $breakpoint in $grid-breakpoints {
.visually-hidden-#{$infix} {
@include media-breakpoint-down($breakpoint) {
Expand Down

0 comments on commit b36a296

Please sign in to comment.