📜  SASS脚本

📅  最后修改于: 2020-12-25 03:48:19             🧑  作者: Mango

Sass脚本

SASS使用称为SassScript的一小组扩展,可以将其包含在SASS文档中,以根据属性值计算变量,并使用变量,算术和其他函数的属性。在使用mixins时,SassScript也可以与选择器和属性名称一起使用(Mixins允许在整个样式表中重复使用CSS样式)。

Sass中使用的一些CSS扩展列表:

Index CSS Extension Description
1. Interactive Shell It is used to evaluate SassScript expression using command line.
2. Variables It is used to specify the data such as numeric values, characters or memory addresses.
3. Datatypes It is used to declare data type for every data object.
4. Operations It is used to provides operations i.e. number, color, string, Boolean and list operations.
5. Parentheses It is pair of signs which are usually marked off by round brackets ( ) or square brackets [].
6. Functions It is used to support for the use of functions by providing some keyword arguments.
7. Interpolation it is used to provide SassScript variables and property names using #{ } syntax.
8. & in SassScript It allows nesting of properties into another properties which leads to group of another related code.
9. Variable Defaults It is used to facilitate nesting of properties into another properties which leads to group of another related code.