Sass Script

SASS uses small set of extensions known as SassScript which can be included in SASS documents to compute variables from property values and uses properties of variables, arithmetic and other functions. SassScript can be used also with selectors and property names while using mixins (Mixins allows to re-use CSS styles throughout the stylesheet).

A list of some of the CSS extensions used in Sass:

IndexCSS ExtensionDescription
1.Interactive ShellIt is used to evaluate SassScript expression using command line.
2.VariablesIt is used to specify the data such as numeric values, characters or memory addresses.
3.DatatypesIt is used to declare data type for every data object.
4.OperationsIt is used to provides operations i.e. number, color, string, Boolean and list operations.
5.ParenthesesIt is pair of signs which are usually marked off by round brackets ( ) or square brackets [].
6.FunctionsIt is used to support for the use of functions by providing some keyword arguments.
7.Interpolationit is used to provide SassScript variables and property names using #{ } syntax.
8.& in SassScriptIt allows nesting of properties into another properties which leads to group of another related code.
9.Variable DefaultsIt is used to facilitate nesting of properties into another properties which leads to group of another related code.
Next TopicSass Variables




Latest Courses