自由巴勒斯坦
@use
@forward
@import
@mixin
@include
@function
@extend
@error
@warn
@debug
@at-root
@if
@else
@each
@for
@while
true
false
null
sass:color
sass:list
sass:map
sass:math
sass:meta
sass:selector
sass:string
/
-moz-document
--
meta.feature-exists
Sass 支援許多值類型,其中大多數直接來自 CSS。每個表達式都會產生一個值,變數則儲存值。大多數值類型直接來自 CSS。
數字,可能包含單位也可能不包含,例如 12 或 100px。
12
100px
字串,可能包含引號也可能不包含,例如 "Helvetica Neue" 或 bold。
"Helvetica Neue"
bold
顏色,可以透過十六進位表示法或名稱來參照,例如 #c6538c 或 blue,或者從函式返回,例如 rgb(107, 113, 127) 或 hsl(210, 100%, 20%)。
#c6538c
blue
rgb(107, 113, 127)
hsl(210, 100%, 20%)
值列表,可以用空格或逗號分隔,並且可以用方括號括起來或不括起來,例如 1.5em 1em 0 2em、Helvetica, Arial, sans-serif 或 [col1-start]。
1.5em 1em 0 2em
Helvetica, Arial, sans-serif
[col1-start]
還有一些是 Sass 特有的
布林值 true 和 false。
單例 null 值。
映射,將值與鍵關聯,例如 ("background": red, "foreground": pink)。
("background": red, "foreground": pink)
函式參考,由 get-function() 返回並使用 call() 呼叫。
get-function()
call()