mirror of
https://github.com/danog/sass-site.git
synced 2024-11-30 04:29:17 +01:00
Updating relative link paths
This commit is contained in:
parent
d08b9fd0f8
commit
a7d507518e
@ -1,16 +1,16 @@
|
||||
* [`==` and `!=`](/documentation/operators/equality) are used to check if two
|
||||
- [`==` and `!=`](/documentation/operators/equality) are used to check if two
|
||||
values are the same.
|
||||
* [`+`, `-`, `*`, `/`, and `%`](/documentation/operators/numeric) have their
|
||||
- [`+`, `-`, `*`, `/`, and `%`](/documentation/operators/numeric) have their
|
||||
usual mathematical meaning for numbers, with special behaviors for units that
|
||||
matches the use of units in scientific math.
|
||||
* [`<`, `<=`, `>`, and `>=`](/documentation/operators/relational) check whether
|
||||
- [`<`, `<=`, `>`, and `>=`](/documentation/operators/relational) check whether
|
||||
two numbers are greater or less than one another.
|
||||
* [`and`, `or`, and `not`](/documentation/operators/boolean) have the usual
|
||||
- [`and`, `or`, and `not`](/documentation/operators/boolean) have the usual
|
||||
boolean behavior. Sass considers every value "true" except for `false` and
|
||||
`null`.
|
||||
* [`+`, `-`, and `/`](/documentation/operators/string) can be used to
|
||||
- [`+`, `-`, and `/`](/documentation/operators/string) can be used to
|
||||
concatenate strings.
|
||||
{% if parens %}
|
||||
* [`(` and `)`](/documentation/operators#parentheses) can be used to explicitly
|
||||
- [`(` and `)`](/documentation/operators#parentheses) can be used to explicitly
|
||||
control the precedence order of operations.
|
||||
{% endif %}
|
||||
|
@ -41,36 +41,36 @@ newlines.
|
||||
|
||||
These types of statements can be used anywhere in a Sass stylesheet:
|
||||
|
||||
- [Variable declarations](../variables), like `$var: value`.
|
||||
- [Flow control at-rules](../at-rules/control), like `@if` and `@each`.
|
||||
- The [`@error`](../at-rules/error), [`@warn`](../at-rules/warn), and
|
||||
[`@debug`](../at-rules/debug) rules.
|
||||
- [Variable declarations](../../variables), like `$var: value`.
|
||||
- [Flow control at-rules](../../at-rules/control), like `@if` and `@each`.
|
||||
- The [`@error`](../../at-rules/error), [`@warn`](../../at-rules/warn), and
|
||||
[`@debug`](../../at-rules/debug) rules.
|
||||
|
||||
### CSS Statements
|
||||
|
||||
These statements produce CSS. They can be used anywhere except within a
|
||||
`@function`:
|
||||
|
||||
- [Style rules](../style-rules), like `h1 { /* ... */ }`.
|
||||
- [CSS at-rules](../at-rules/css), like `@media` and `@font-face`.
|
||||
- [Mixin uses](../at-rules/mixin) using `@include`.
|
||||
- The [`@at-root` rule](../at-rules/at-root).
|
||||
- [Style rules](../../style-rules), like `h1 { /* ... */ }`.
|
||||
- [CSS at-rules](../../at-rules/css), like `@media` and `@font-face`.
|
||||
- [Mixin uses](../../at-rules/mixin) using `@include`.
|
||||
- The [`@at-root` rule](../../at-rules/at-root).
|
||||
|
||||
### Top-Level Statements
|
||||
|
||||
These statements can only be used at the top level of a stylesheet, or nested
|
||||
within a CSS statement at the top level:
|
||||
|
||||
- [Module loads](../at-rules/use), using `@use`.
|
||||
- [Imports](../at-rules/import), using `@import`.
|
||||
- [Mixin definitions](../at-rules/mixin) using `@mixin`.
|
||||
- [Function definitions](../at-rules/function) using `@function`.
|
||||
- [Module loads](../../at-rules/use), using `@use`.
|
||||
- [Imports](../../at-rules/import), using `@import`.
|
||||
- [Mixin definitions](../../at-rules/mixin) using `@mixin`.
|
||||
- [Function definitions](../../at-rules/function) using `@function`.
|
||||
|
||||
### Other Statements
|
||||
|
||||
- [Property declarations](../style-rules/declarations) like `width: 100px` may
|
||||
- [Property declarations](../../style-rules/declarations) like `width: 100px` may
|
||||
only be used within style rules and some CSS at-rules.
|
||||
- The [`@extend` rule](../at-rules/extend) may only be used within style rules.
|
||||
- The [`@extend` rule](../../at-rules/extend) may only be used within style rules.
|
||||
|
||||
## Expressions
|
||||
|
||||
@ -81,28 +81,28 @@ than plain CSS values. They're passed as arguments to [mixins][] and
|
||||
[functions][], used for control flow with the [`@if` rule][], and manipulated using
|
||||
[arithmetic][]. We call Sass's expression syntax _SassScript_.
|
||||
|
||||
[value]: ../values
|
||||
[mixins]: ../at-rules/mixin
|
||||
[functions]: ../at-rules/function
|
||||
[`@if` rule]: ../at-rules/control/if
|
||||
[arithmetic]: ../operators/numeric
|
||||
[value]: ../../values
|
||||
[mixins]: ../../at-rules/mixin
|
||||
[functions]: ../../at-rules/function
|
||||
[`@if` rule]: ../../at-rules/control/if
|
||||
[arithmetic]: ../../operators/numeric
|
||||
|
||||
### Literals
|
||||
|
||||
The simplest expressions just represent static values:
|
||||
|
||||
- [Numbers](../values/numbers), which may or may not have units, like `12` or
|
||||
- [Numbers](../../values/numbers), which may or may not have units, like `12` or
|
||||
`100px`.
|
||||
- [Strings](../values/strings), which may or may not have quotes, like
|
||||
- [Strings](../../values/strings), which may or may not have quotes, like
|
||||
`"Helvetica Neue"` or `bold`.
|
||||
- [Colors](../values/colors), which can be referred to by their hex
|
||||
- [Colors](../../values/colors), which can be referred to by their hex
|
||||
representation or by name, like `#c6538c` or `blue`.
|
||||
- The [boolean](../values/booleans) literals `true` or `false`.
|
||||
- The singleton [`null`](../values/null).
|
||||
- [Lists of values](../values/lists), which may be separated by spaces or commas
|
||||
- The [boolean](../../values/booleans) literals `true` or `false`.
|
||||
- The singleton [`null`](../../values/null).
|
||||
- [Lists of values](../../values/lists), which may be separated by spaces or commas
|
||||
and which may be enclosed in square brackets or no brackets at all, like
|
||||
`1.5em 1em 0 2em`, `Helvetica, Arial, sans-serif`, or `[col1-start]`.
|
||||
- [Maps](../values/maps) that associate values with keys, like
|
||||
- [Maps](../../values/maps) that associate values with keys, like
|
||||
`("background": red, "foreground": pink)`.
|
||||
|
||||
### Operations
|
||||
@ -113,12 +113,12 @@ Sass defines syntax for a number of operations:
|
||||
|
||||
### Other Expressions
|
||||
|
||||
- [Variables](../variables), like `$var`.
|
||||
- [Function calls](../at-rules/function), like `nth($list, 1)` or
|
||||
- [Variables](../../variables), like `$var`.
|
||||
- [Function calls](../../at-rules/function), like `nth($list, 1)` or
|
||||
`var(--main-bg-color)`, which may call Sass core library functions or
|
||||
user-defined functions, or which may be compiled directly to CSS.
|
||||
- [Special functions](special-functions), like `calc(1px + 100%)` or
|
||||
`url(http://myapp.com/assets/logo.png)`, that have their own unique parsing
|
||||
rules.
|
||||
- [The parent selector](../style-rules/parent-selector), `&`.
|
||||
- [The parent selector](../../style-rules/parent-selector), `&`.
|
||||
- The value `!important`, which is parsed as an unquoted string.
|
||||
|
Loading…
Reference in New Issue
Block a user