diff options
| author | Martijn Cuppens <[email protected]> | 2019-07-20 03:57:12 +0200 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2019-07-19 18:57:12 -0700 |
| commit | f6694b74405261ed454d409ea5251f08cdf6c51c (patch) | |
| tree | bb6a3e1f65d1bb8f568af58333ebf4528295100d /site/content/docs | |
| parent | 28dfa54083eb8fb8c640ad6f218a39c2520c97fa (diff) | |
| download | bootstrap-f6694b74405261ed454d409ea5251f08cdf6c51c.tar.xz bootstrap-f6694b74405261ed454d409ea5251f08cdf6c51c.zip | |
Use escape-svg() function (#29077)
* Use escape-svg() function
* Update theming.md
Diffstat (limited to 'site/content/docs')
| -rw-r--r-- | site/content/docs/4.3/getting-started/theming.md | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/site/content/docs/4.3/getting-started/theming.md b/site/content/docs/4.3/getting-started/theming.md index df12851ff..32eff4e40 100644 --- a/site/content/docs/4.3/getting-started/theming.md +++ b/site/content/docs/4.3/getting-started/theming.md @@ -195,7 +195,7 @@ Additional functions could be added in the future or your own custom Sass to cre ### Color contrast -One additional function we include in Bootstrap is the color contrast function, `color-yiq`. It utilizes the [YIQ color space](https://en.wikipedia.org/wiki/YIQ) to automatically return a light (`#fff`) or dark (`#111`) contrast color based on the specified base color. This function is especially useful for mixins or loops where you're generating multiple classes. +An additional function we include in Bootstrap is the color contrast function, `color-yiq`. It utilizes the [YIQ color space](https://en.wikipedia.org/wiki/YIQ) to automatically return a light (`#fff`) or dark (`#111`) contrast color based on the specified base color. This function is especially useful for mixins or loops where you're generating multiple classes. For example, to generate color swatches from our `$theme-colors` map: @@ -223,6 +223,10 @@ You can also specify a base color with our color map functions: } {{< /highlight >}} +## Escape SVG + +We use the `escape-svg` function to escape the `<`, `>` and `#` characters for SVG background images. These characters need to be escaped to properly render the background images in IE. + ## Sass options Customize Bootstrap 4 with our built-in custom variables file and easily toggle global CSS preferences with new `$enable-*` Sass variables. Override a variable's value and recompile with `npm run test` as needed. |
