mirror of
https://github.com/danog/sass-site.git
synced 2024-11-30 04:29:17 +01:00
Fix links
This commit is contained in:
parent
6b4770bfed
commit
63b19a2fef
@ -9,7 +9,7 @@ In Sass, every [map][] counts as a list that contains a two-element list for
|
||||
each key/value pair. For example, `(1: 2, 3: 4)` counts as `(1 2, 3 4)`. So
|
||||
all these functions work for maps as well!
|
||||
|
||||
[map]: ../values/maps
|
||||
[map]: /documentation/values/maps
|
||||
|
||||
Individual values also count as lists. All these functions treat `1px` as a
|
||||
list that contains the value `1px`.
|
||||
@ -23,7 +23,7 @@ comma-separated, space-separated, or slash-separated, respectively. If it's
|
||||
`auto` (the default), the returned list will use the same separator as `$list`
|
||||
(or `space` if `$list` doesn't have a separator). Other values aren't allowed.
|
||||
|
||||
[separator]: ../values/lists
|
||||
[separator]: /documentation/values/lists
|
||||
|
||||
Note that unlike [`list.join()`](#join), if `$val` is a list it's nested
|
||||
within the returned list rather than having all its elements added to the
|
||||
@ -47,13 +47,13 @@ returned list.
|
||||
{% function 'list.index($list, $value)', 'index($list, $value)', 'returns:number | null' %}
|
||||
Returns the [index][] of `$value` in `$list`.
|
||||
|
||||
[index]: ../values/lists#indexes
|
||||
[index]: /documentation/values/lists#indexes
|
||||
|
||||
If `$value` doesn't appear in `$list`, this returns [`null`][]. If `$value`
|
||||
appears multiple times in `$list`, this returns the index of its first
|
||||
appearance.
|
||||
|
||||
[`null`]: ../values/null
|
||||
[`null`]: /documentation/values/null
|
||||
|
||||
{% render 'code-snippets/example-list-index' %}
|
||||
{% endfunction %}
|
||||
@ -153,7 +153,7 @@ If `$list` doesn't have a separator, returns `space`.
|
||||
{% function 'list.nth($list, $n)', 'nth($list, $n)' %}
|
||||
Returns the element of `$list` at [index][] `$n`.
|
||||
|
||||
[index]: ../values/lists#indexes
|
||||
[index]: /documentation/values/lists#indexes
|
||||
|
||||
If `$n` is negative, it counts from the end of `$list`. Throws an error if
|
||||
there is no element at index `$n`.
|
||||
@ -165,7 +165,7 @@ there is no element at index `$n`.
|
||||
Returns a copy of `$list` with the element at [index][] `$n` replaced with
|
||||
`$value`.
|
||||
|
||||
[index]: ../values/lists#indexes
|
||||
[index]: /documentation/values/lists#indexes
|
||||
|
||||
If `$n` is negative, it counts from the end of `$list`. Throws an error if
|
||||
there is no existing element at index `$n`.
|
||||
@ -190,7 +190,7 @@ Eventually, they'll be written literally with slashes, as in
|
||||
`1px / 2px / solid`, but for the time being [slashes are used for division]
|
||||
so Sass can't use them for new syntax until the old syntax is removed.
|
||||
|
||||
[slashes are used for division]: ../breaking-changes/slash-div
|
||||
[slashes are used for division]: /documentation/breaking-changes/slash-div
|
||||
{% endheadsUp %}
|
||||
|
||||
{% codeExample 'list-slash', false %}
|
||||
|
@ -186,7 +186,7 @@ $fonts: ("Helvetica": ("weights": ("regular": 400, "medium": 500, "bold": 700)))
|
||||
@debug map.get($fonts, "Helvetica", "colors") // null
|
||||
{% endcodeExample %}
|
||||
|
||||
[`null`]: ../values/null
|
||||
[`null`]: /documentation/values/null
|
||||
{% endfunction %}
|
||||
|
||||
{% function 'map.has-key($map, $key, $keys...)', 'map-has-key($map, $key, $keys...)', 'returns:boolean' %}
|
||||
|
@ -28,7 +28,7 @@ The closest 64-bit floating point approximation of the [mathematical constant
|
||||
|
||||
The difference between 1 and the smallest 64-bit floating point number greater
|
||||
than 1 according to floating-point comparisons. Because of Sass numbers' [10
|
||||
digits of precision](../values/numbers), in many cases this will appear to
|
||||
digits of precision](/documentation/values/numbers), in many cases this will appear to
|
||||
be 0.
|
||||
{% endfunction %}
|
||||
|
||||
@ -63,7 +63,7 @@ represented as a 64-bit floating-point number.
|
||||
|
||||
The smallest positive number that can be represented as a 64-bit floating
|
||||
point number. Because of Sass numbers' [10 digits of
|
||||
precision](../values/numbers), in many cases this will appear to be 0.
|
||||
precision](/documentation/values/numbers), in many cases this will appear to be 0.
|
||||
{% endfunction %}
|
||||
|
||||
{% function 'math.$min-safe-integer' %}
|
||||
@ -452,9 +452,9 @@ Returns whether `$number1` and `$number2` have compatible units.
|
||||
If this returns `true`, `$number1` and `$number2` can safely be [added][],
|
||||
[subtracted][], and [compared][]. Otherwise, doing so will produce errors.
|
||||
|
||||
[added]: ../operators/numeric
|
||||
[subtracted]: ../operators/numeric
|
||||
[compared]: ../operators/relational
|
||||
[added]: /documentation/operators/numeric
|
||||
[subtracted]: /documentation/operators/numeric
|
||||
[compared]: /documentation/operators/relational
|
||||
|
||||
{% headsUp %}
|
||||
The global name of this function
|
||||
@ -487,7 +487,7 @@ Returns whether `$number` has no units.
|
||||
{% endcodeExample %}
|
||||
{% endfunction %}
|
||||
|
||||
{% function 'math.unitless($number)', 'unit($number)', 'returns:quoted string' %}
|
||||
{% function 'math.unit($number)', 'unit($number)', 'returns:quoted string' %}
|
||||
Returns a string representation of `$number`'s units.
|
||||
|
||||
{% headsUp %}
|
||||
@ -527,7 +527,7 @@ as [the deprecated `/` operator], including concatenating two strings with a
|
||||
`/` character between them. However, this behavior will be removed
|
||||
eventually and shouldn't be used in new stylesheets.
|
||||
|
||||
[the deprecated `/` operator]: ../breaking-changes/slash-div
|
||||
[the deprecated `/` operator]: /documentation/breaking-changes/slash-div
|
||||
{% endheadsUp %}
|
||||
|
||||
{% codeExample 'math-div', false %}
|
||||
@ -581,7 +581,7 @@ number between 1 and `$limit`.
|
||||
`random($limit)` will return a random integer with the same units as the
|
||||
`$limit` argument.
|
||||
|
||||
[This behavior is deprecated]: ../breaking-changes/random-with-units
|
||||
[This behavior is deprecated]: /documentation/breaking-changes/random-with-units
|
||||
|
||||
{% codeExample 'math-random-warning', false %}
|
||||
@debug math.random(100px); // 42
|
||||
|
Loading…
Reference in New Issue
Block a user