What is operators in sass
Valuable value has Sass Operators in the SASS because it’s an operator like in javascript or any other language. It works as the same operator working in other scopes. You can use any operator as *, -, +, / etc. You will found more satisfaction as below examples :
If you want to read more information then visit the https://sass-lang.com/guide
.container { width: 100%; }
article {
float: left;
width: 700px / 1000px * 100%;
}
aside {
float: right;
width: 300px / 1000px * 100%;
}
Compiled Code:
.container {
width: 100%;
}
article {
float: left;
width: 70%;
}
aside {
float: right;
width: 30%;
}
No comments:
Note: Only a member of this blog may post a comment.