We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, The function is very great (thanks), but it will be much more convenient if we add some arguments, like below. What do you think?
@function color-yiq($color, $dark: $yiq-text-dark, $light: $yiq-text-light) { $r: red($color); $g: green($color); $b: blue($color); $yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000; @if ($yiq >= $yiq-contrasted-threshold) { @return $dark; } @else { @return $light; } }
The text was updated successfully, but these errors were encountered:
Great idea, can you make a PR for this @wtorsi?
Sorry, something went wrong.
@MartijnCuppens Yes, sure. But you need to fix your 'Contributing to Bootstrap' section. Adding upstream master is not good idea for v4-dev.
master
v4-dev
No branches or pull requests
Hi,
The function is very great (thanks), but it will be much more convenient if we add some arguments, like below.
What do you think?
The text was updated successfully, but these errors were encountered: