Basic use of Scss (@ extend, @ mixin, @ import, @ if, @ for, @ while, @ each)

Portal: basic use of Scss (variable, nested) Portal: Sass Chinese network Portal: Sass tutorial | rookie tutorial 1. Inheritance (@ extend) @The extend instruction tells Sass that the style of one selector is inherited from another selector. Using @ extend is useful if one style is almost the same as another with only a few differences. < ...

Posted by shellyrobson on Fri, 11 Feb 2022 11:18:31 +0100

Common features and advanced use of scss

scss As a css preprocessor, scss provides variables, nesting, mixing, inheritance and other features, which can make css writing more interesting and procedural. Common features of scss variable Variables can be used to store information that needs to be reused in css, such as color, font, and font size. Maintain global style uniformity. s ...

Posted by phpnoobie on Wed, 08 Dec 2021 06:11:50 +0100

Scss study notes

In vscode, you first need to install live sass compiler to compile sass into css in real time. Click watch sass at the bottom to compile the sass file into a css file with the same name in real time. nesting I think the most important function of sass is that it can be nested layer by layer in html, instead of selecting an element in css ...

Posted by spider22 on Fri, 24 Sep 2021 17:03:24 +0200