Useful Links
Computer Science
Web Development
Frontend Frameworks and Libraries
Sass and SCSS
1. Introduction to CSS Preprocessing
2. Setting Up a Sass Development Environment
3. Sass Syntaxes
4. Core Sass Features
5. Reusability and Abstraction
6. Sass Data Types
7. Control Directives and Expressions
8. Functions
9. Advanced Concepts
10. Best Practices and Project Architecture
Reusability and Abstraction
Mixins
Defining a Mixin
`@mixin` Directive
Mixin Structure
Including a Mixin
`@include` Directive
Passing Arguments to Mixins
Positional Arguments
Keyword Arguments
Default Values for Arguments
Variable Arguments
Passing Content Blocks
`@content` Directive
Yielding Nested Content
Inheritance with `@extend`
The `@extend` Directive
Syntax and Usage
Placeholder Selectors
Defining Placeholders
Using Placeholders with `@extend`
How `@extend` Works
Selector Grouping
Output in Compiled CSS
Potential Pitfalls of `@extend`
Specificity Issues
Unintended Selector Grouping
Comparing Mixins and Extends
When to Use `@mixin`
When to Use `@extend`
Performance and Output Considerations
Previous
4. Core Sass Features
Go to top
Next
6. Sass Data Types