deyanivanov966

Section 8 Sass

Jan 6th, 2022 (edited)
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. --> What is SaSS
  2.  
  3. Sass (short for syntactically awesome style sheets) is a preprocessor scripting language that is interpreted or compiled into Cascading Style Sheets (CSS). SassScript is the scripting language itself.
  4.  
  5. Sass consists of two syntaxes. The original syntax, called “the indented syntax,” uses a syntax similar to Haml.[2] It uses indentation to separate code blocks and newline characters to separate rules. The newer syntax, “SCSS” (Sassy CSS), uses block formatting like that of CSS. It uses braces to denote code blocks and semicolons to separate rules within a block. The indented syntax and SCSS files are traditionally given the extensions .sass and .scss, respectively.
  6.  
  7. CSS3 consists of a series of selectors and pseudo-selectors that group rules that apply to them. Sass (in the larger context of both syntaxes) extends CSS by providing several mechanisms available in more traditional programming languages, particularly object-oriented languages, but that are not available to CSS3 itself. When SassScript is interpreted, it creates blocks of CSS rules for various selectors as defined by the Sass file. The Sass interpreter translates SassScript into CSS. Alternatively, Sass can monitor the .sass or .scss file and translate it to an output .css file whenever the .sass or .scss file is saved.[3]
  8.  
  9. The indented syntax is a metalanguage. SCSS is a nested metalanguage, as valid CSS is valid SCSS with the same semantics.
  10.  
  11. SassScript provides the following mechanisms: variables, nesting, mixins, and selector inheritance.[2]
  12.  
  13.  
  14. --> What is SCSS
  15.  
  16. Scss is Sassy Cascading Style Sheets
  17.  
  18. Scss can be separated by a semicolon and run on the same line
  19.  
  20. SCSS is a preprocessor which lets you use features that aren’t a part of the wider CSS standard yet, and provides better workflows for maintaining your stylesheets.
  21.  
  22. With SCSS preprocessor, you can reduce the amount of times you repeat yourself and ensure you’re writing clean, maintainable code for the future.
  23.  
  24. Scss can take css code and work.
  25.  
  26. SCSS is fully compatible with the syntax of CSS, while still supporting the full power of Sass.
  27.  
  28.  
  29. --> Learn SCSS
  30.  
  31. Learn Sass In 20 Minutes | Sass Crash Course
  32. https://www.youtube.com/watch?v=Zz6eOVaaelI
  33.  
Add Comment
Please, Sign In to add comment