Skip to content

Instantly share code, notes, and snippets.

@am11
Created January 7, 2015 18:27
Show Gist options
  • Save am11/f51caa25837f6d4684fb to your computer and use it in GitHub Desktop.
Save am11/f51caa25837f6d4684fb to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// libsass (v3.1.0-beta)
// ----
$range: 1px, 2px, 3px, 4px;
@debug $range;//1px, 2px, 3px, 4px
$test: min($range...);
@debug $test;//1px
.a{
prop1: $test;
prop2: $range;
}
@debug $range;//2px, 3px, 4px
$test: max($range...);
@debug $test;//4px
.b{
prop1: $test;
prop2: $range;
}
@debug $range;//3px, 4px
$test: max($range...);
@debug $test;//4px
.c{
prop1: $test;
prop2: $range;
}
.a {
prop1: 1px;
prop2: 4px; }
.b {
prop1: 4px;
prop2: 4px; }
.c {
prop1: 4px;
prop2: 4px; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment