Ads Top

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 :


.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%;
}

If you want to read more information then visit the https://sass-lang.com/guide

No comments:

Copyright Reserved to Anything Learn. Powered by Blogger.