Sass @include Rules
You are Here:
Sass @include Rules
@include
allows you to include mixins into the current context.
Example
SASS TO CSS CONVERTER
@mixin reset-ul{
margin: 0;
padding: 0;
font-size: 16px;
color: black;
list-style-type: none;
}
footer ul{
@include reset-ul;
}
Syntax
@include mixinName
@include inside @mixin
You can also use @include inside @mixin to re-use the code further.
Example
SASS TO CSS CONVERTER
@mixin reset-ul{
margin: 0;
padding: 0;
font-size: 16px;
}
@mixin reset-ol{
@include reset-ul;
color: black
}
footer ol{
@include reset-ol;
}
Reminder
Hi Developers, we almost covered 99.1% of Sass Tutorials with examples for quick and easy learning.
We are working to cover every Single Concept in Sass.
Please do google search for:
Join Our Channel
Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.
This channel is primarily useful for Full Stack Web Developer.