_range.scss 212 B

12345678910111213
  1. @function lower-bound($range){
  2. @if length($range) <= 0 {
  3. @return 0;
  4. }
  5. @return nth($range,1);
  6. }
  7. @function upper-bound($range) {
  8. @if length($range) < 2 {
  9. @return 999999999999;
  10. }
  11. @return nth($range, 2);
  12. }