SASS OperationsIn Sass, you can use different operators to do operations like concatenating strings, concatenating colors etc. SASS Concatenating StringsRules:
See this example: After compilation, the resulting CSS will have the following code. SASS Concatenating ColorsWe can also use addition operator (+) to produce a new color value. Let's take an example. Sass Syntax: After the compilation, the resulting CSS will have the following code: CSS: Sass performs corresponding calculation on color pairs and after concatenation a new color value is formed. Hex values are a combination of red, green, and blue color values. They are represented by the numbers 0-9 and the letters A-F. Next TopicSass @Rules and Directives |