-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
New issue
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
adding color utility contrast function #18478
Conversation
@if $color == null { | ||
@return null; | ||
} | ||
@else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@else should be placed on same line as previous curly brace
Since the code here is less trivial, I would propose copying https://github.com/Compass/compass/blob/stable/LICENSE.markdown (except for its last paragraph) into a comment header in |
Could you undo/remove the |
@if type-of($color) == color { | ||
@return ((red($color) * .299) + (green($color) * .587) + (blue($color) * .114)) / 255 * 100%; | ||
} | ||
@else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@else should be placed on same line as previous curly brace
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@else should be placed on same line as previous curly brace
Going to punt on this for now, thanks though! |
according to: #18119
Some notices: