Skip to content

Instantly share code, notes, and snippets.

@prof3ssorSt3v3
Created November 11, 2014 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prof3ssorSt3v3/293c607b0df0e3de8b50 to your computer and use it in GitHub Desktop.
Save prof3ssorSt3v3/293c607b0df0e3de8b50 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
.math-container{
// Add
width: 50 + 50px;
// Subtract
width: 1000 - 20px;
// Multiply
width: 50 * 2px;
// Divide
width: 10px/8px; // Plain CSS, no division
$width: 1000px;
width: $width/2; // Uses a variable, does division
width: round(2)/100; // Uses a function, does division
height: (500px/2); // Uses parentheses, does division
}
.math-container {
width: 100px;
width: 980px;
width: 100px;
width: 10px/8px;
width: 500px;
width: 0.02;
height: 250px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment