bootstrapMaxWidthNonFluid function

double bootstrapMaxWidthNonFluid(
  1. double width
)

Returns the max width for non-fluid containers based on a certain provided width

Implementation

double bootstrapMaxWidthNonFluid(double width) {
  ///
  /// Otherwise, it depends on the available width
  ///
  if (width >= 1200) {
    return 1140;
  }
  if (width >= 992) {
    return 960;
  }
  if (width >= 768) {
    return 720;
  }
  if (width >= 576) {
    return 540;
  }
  return width;
}