mirror of
https://github.com/danog/sass-site.git
synced 2025-01-22 05:41:42 +01:00
Code review changes
This commit is contained in:
parent
b1b07540f2
commit
576474cfc5
@ -200,8 +200,8 @@ including `$`) to those arguments' values.
|
|||||||
<% fun_fact do %>
|
<% fun_fact do %>
|
||||||
If you don't ever pass an argument list to the [`map.keywords()` function][],
|
If you don't ever pass an argument list to the [`map.keywords()` function][],
|
||||||
that argument list won't allow extra keyword arguments. This helps callers of
|
that argument list won't allow extra keyword arguments. This helps callers of
|
||||||
your function make sure they haven't accidentally written any typos in their
|
your function make sure they haven't accidentally misspelled any argument
|
||||||
argument names.
|
names.
|
||||||
|
|
||||||
[`map.keywords()` function]: ../modules/map#keywords
|
[`map.keywords()` function]: ../modules/map#keywords
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -270,8 +270,8 @@ including `$`) to those arguments' values.
|
|||||||
<% fun_fact do %>
|
<% fun_fact do %>
|
||||||
If you don't ever pass an argument list to the [`map.keywords()` function][],
|
If you don't ever pass an argument list to the [`map.keywords()` function][],
|
||||||
that argument list won't allow extra keyword arguments. This helps callers of
|
that argument list won't allow extra keyword arguments. This helps callers of
|
||||||
your mixin make sure they haven't accidentally written any typos in their
|
your mixin make sure they haven't accidentally misspelled any argument
|
||||||
argument names.
|
names.
|
||||||
|
|
||||||
[`map.keywords()` function]: ../modules/map#keywords
|
[`map.keywords()` function]: ../modules/map#keywords
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -18,14 +18,14 @@ overview: true
|
|||||||
Before the Sass module system was introduced, all Sass functions were globally
|
Before the Sass module system was introduced, all Sass functions were globally
|
||||||
available at all times. Many functions still have global aliases (these are
|
available at all times. Many functions still have global aliases (these are
|
||||||
listed in their documentation). The Sass team discourages their use and will
|
listed in their documentation). The Sass team discourages their use and will
|
||||||
eventually deprecate them, but for now they're still available for
|
eventually deprecate them, but for now they remain available for compatibility
|
||||||
compatibility with older Sass versions and with LibSass (which doesn't support
|
with older Sass versions and with LibSass (which doesn't support the module
|
||||||
the module system yet).
|
system yet).
|
||||||
|
|
||||||
[A few functions][] are still *only* available globally, either because they
|
[A few functions][] are *only* available globally even in the new module
|
||||||
have special evaluation behavior ([`if()`][]) or because they add extra
|
system, either because they have special evaluation behavior ([`if()`][]) or
|
||||||
behavior on top of built-in CSS functions ([`rgb()`][] and [`hsl()`][]). These
|
because they add extra behavior on top of built-in CSS functions ([`rgb()`][]
|
||||||
will not be deprecated and can be used freely.
|
and [`hsl()`][]). These will not be deprecated and can be used freely.
|
||||||
|
|
||||||
[a few functions]: #global-functions
|
[a few functions]: #global-functions
|
||||||
[`if()`]: #if
|
[`if()`]: #if
|
||||||
@ -57,9 +57,6 @@ overview: true
|
|||||||
|
|
||||||
Sass provides the following built-in modules:
|
Sass provides the following built-in modules:
|
||||||
|
|
||||||
* Any function that Sass doesn't recognize as built-in or user-defined is
|
|
||||||
treated as a [plain CSS function][]. (TODO: find a home for this)
|
|
||||||
|
|
||||||
* The [`sass:math` module][] provides functions that operate on [numbers][].
|
* The [`sass:math` module][] provides functions that operate on [numbers][].
|
||||||
|
|
||||||
* The [`sass:string` module][] makes it easy to combine, search, or split apart
|
* The [`sass:string` module][] makes it easy to combine, search, or split apart
|
||||||
|
Loading…
x
Reference in New Issue
Block a user