//
// Copyright IBM Corp. 2018, 2018
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
//

@use 'config';
@use 'sass:math';
@use 'sass:list';
/*
@forward '@carbon/grid'
  show css-grid,
       subgrid,
       $grid-gutter,
       $grid-gutter-condensed,
       $grid-breakpoints
  with (
    $prefix: config.$prefix
  );

@use '@carbon/grid';
*/
@mixin column-span($span, $columns: false) {
  flex: 0 0 math.percentage(math.div($span, 12));
  max-width: math.percentage(math.div($span, 12));

  @if ($columns) {
    flex: 0 0 math.percentage((math.div($span, $columns)));
    max-width: math.percentage((math.div($span, $columns)));
  }
}
