值
-
数字,可能有单位,也可能没有单位,如
12或100px。¥Numbers, which may or may not have units, like
12or100px. -
字符串,可能有引号,也可能没有,如
"Helvetica Neue"或bold。¥Strings, which may or may not have quotes, like
"Helvetica Neue"orbold. -
颜色,可以通过其十六进制表示形式或名称来引用,例如
#c6538c或blue,或者从函数返回,例如rgb(107, 113, 127)或hsl(210, 100%, 20%)。¥Colors, which can be referred to by their hex representation or by name, like
#c6538corblue, or returned from functions, likergb(107, 113, 127)orhsl(210, 100%, 20%). -
值列表,可以用空格或逗号分隔,并且可以用方括号括起来或根本不加括号,例如
1.5em 1em 0 2em、Helvetica, Arial, sans-serif或[col1-start]。¥Lists of values, 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].
还有一些特定于 Sass 的:
¥A few more are specific to Sass:
-
布尔值 值
true和false。¥The boolean values
trueandfalse. -
单例
null值。¥The singleton
nullvalue. -
映射 将值与键相关联,如
("background": red, "foreground": pink)。¥Maps that associate values with keys, like
("background": red, "foreground": pink). -
函数参考 由
get-function()返回并与call()调用。¥Function references returned by
get-function()and called withcall().