_new-breakpoint.scss 440 B

12345678910111213141516
  1. @function new-breakpoint($query:$feature $value $columns, $total-columns: $grid-columns) {
  2. @if length($query) == 1 {
  3. $query: $default-feature nth($query, 1) $total-columns;
  4. }
  5. @else if length($query) % 2 == 0 {
  6. $query: append($query, $total-columns);
  7. }
  8. @if not belongs-to($query, $visual-grid-breakpoints) {
  9. $visual-grid-breakpoints: append($visual-grid-breakpoints, $query, comma) !global;
  10. }
  11. @return $query;
  12. }