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
bf2fee90
Commit
bf2fee90
authored
7 years ago
by
Mark Otto
Committed by
Mark Otto
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
add vars for yiq color contrast function
parent
0a82cd9f
6 merge requests
!28721
Hot test
,
!27561
Adds font-weight-medium to font weight classes
,
!25494
web pack
,
!25326
Adjust examples
,
!23207
#22402 : modal: new autofocus & keyboardBtnNav options
,
!17021
v4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scss/_functions.scss
+2
-2
scss/_functions.scss
scss/_variables.scss
+4
-0
scss/_variables.scss
with
6 additions
and
2 deletions
+6
-2
scss/_functions.scss
+
2
-
2
View file @
bf2fee90
...
...
@@ -57,9 +57,9 @@
$yiq
:
((
$r
*
299
)
+
(
$g
*
587
)
+
(
$b
*
114
))
/
1000
;
@if
(
$yiq
>=
150
)
{
@return
#111
;
@return
$yiq-text-dark
;
}
@else
{
@return
#fff
;
@return
$yiq-text-light
;
}
}
...
...
This diff is collapsed.
Click to expand it.
scss/_variables.scss
+
4
-
0
View file @
bf2fee90
...
...
@@ -87,6 +87,10 @@ $theme-colors: map-merge((
// Set a specific jump point for requesting color jumps
$theme-color-interval
:
8%
!
default
;
// Customize the light and dark text colors for use in our YIQ color contrast function.
$yiq-text-dark
:
#111
!
default
;
$yiq-text-light
:
#fff
!
default
;
// Options
//
...
...
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