From 65dfd45e971d5c941ba364843546588fb5e2653d Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Mon, 9 Mar 2020 19:56:49 +0200 Subject: [PATCH] Remove redundant snippets --- snippets/calc.md | 29 ---------------------------- snippets/custom-variables.md | 37 ------------------------------------ 2 files changed, 66 deletions(-) delete mode 100644 snippets/calc.md delete mode 100644 snippets/custom-variables.md diff --git a/snippets/calc.md b/snippets/calc.md deleted file mode 100644 index 80323b243..000000000 --- a/snippets/calc.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -title: Calc() -tags: other ---- - -The function calc() allows to define CSS values with the use of mathematical expressions, the value adopted for the property is the result of a mathematical expression. - -```html -
-``` - -```css -.box-example { - height: 280px; - background: #222 url('https://image.ibb.co/fUL9nS/wolf.png') no-repeat; - background-position: calc(100% - 20px) calc(100% - 20px); -} -``` - -#### Explanation - -1. It allows addition, subtraction, multiplication and division. -2. Can use different units (pixel and percent together, for example) for each value in your expression. -3. It is permitted to nest calc() functions. -4. It can be used in any property that ``, ``, ``, `