Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
acf7ca9a
Commit
acf7ca9a
authored
5 years ago
by
Martijn Cuppens
Committed by
XhmikosR
5 years ago
Browse files
Options
Download
Email Patches
Plain Diff
More compact color-yiq function (#28514)
parent
a2594e1d
3 merge requests
!31948
Examples/Floating-labels: fix bad behavior with autofill
,
!30064
test
,
!28882
fix custom-select-indicator in IE10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scss/_functions.scss
+1
-5
scss/_functions.scss
with
1 addition
and
5 deletions
+1
-5
scss/_functions.scss
+
1
-
5
View file @
acf7ca9a
...
...
@@ -56,11 +56,7 @@
$yiq
:
((
$r
*
299
)
+
(
$g
*
587
)
+
(
$b
*
114
))
/
1000
;
@if
(
$yiq
>=
$yiq-contrasted-threshold
)
{
@return
$dark
;
}
@else
{
@return
$light
;
}
@return
if
(
$yiq
>=
$yiq-contrasted-threshold
,
$dark
,
$light
);
}
// Retrieve color Sass maps
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets