Skip to content

Commit

Permalink
Doc tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo authored and MartijnCuppens committed Oct 28, 2019
1 parent 39e8ab5 commit baae7ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/content/docs/4.3/getting-started/theming.md
Expand Up @@ -215,9 +215,9 @@ You can also specify a base color with our color map functions:

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.

## Add and Subtract function
## Add and Subtract functions

We use the `add` and `subtract` functions instead of the CSS `calc` function. The primary purpose of these functions is to avoid errors when "unitless" 0 is given to the `calc` expression.
We use the `add` and `subtract` functions to wrap the CSS `calc` function. The primary purpose of these functions is to avoid errors when a "unitless" `0` value is passed into a `calc` expression. Expressions like `calc(10px - 0)` will return an error in all browsers, despite being mathematically correct.

Example where the calc is valid:

Expand Down

0 comments on commit baae7ed

Please sign in to comment.