//
// Responsive: Utility classes
// --------------------------------------------------


// IE10 in Windows (Phone) 8
//
// Support for responsive views via media queries is kind of borked in IE10, for
// Surface/desktop in split view and for Windows Phone 8. This particular fix
// must be accompanied by a snippet of JavaScript to sniff the user agent and
// apply some conditional CSS to *only* the Surface/desktop Windows 8. Look at
// our Getting Started page for more information on this bug.
//
// For more information, see the following:
//
// Issue: https://github.com/twbs/bootstrap/issues/10497
// Docs: http://getbootstrap.com/getting-started/#support-ie10-width
// Source: http://timkadlec.com/2013/01/windows-phone-8-and-device-width/
// Source: http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/

@-ms-viewport {
  width: device-width;
}


// Visibility utilities
// Note: Deprecated .sppb-visible-xs, .sppb-visible-sm, .sppb-visible-md, and .sppb-visible-lg as of v3.2.0
.sppb-visible-xs,
.sppb-visible-sm,
.sppb-visible-md,
.sppb-visible-lg {
  .responsive-invisibility();
}

.sppb-visible-xs-block,
.sppb-visible-xs-inline,
.sppb-visible-xs-inline-block,
.sppb-visible-sm-block,
.sppb-visible-sm-inline,
.sppb-visible-sm-inline-block,
.sppb-visible-md-block,
.sppb-visible-md-inline,
.sppb-visible-md-inline-block,
.sppb-visible-lg-block,
.sppb-visible-lg-inline,
.sppb-visible-lg-inline-block {
  display: none !important;
}

.sppb-visible-xs {
  @media (max-width: @screen-xs-max) {
    .responsive-visibility();
  }
}
.sppb-visible-xs-block {
  @media (max-width: @screen-xs-max) {
    display: block !important;
  }
}
.sppb-visible-xs-inline {
  @media (max-width: @screen-xs-max) {
    display: inline !important;
  }
}
.sppb-visible-xs-inline-block {
  @media (max-width: @screen-xs-max) {
    display: inline-block !important;
  }
}

.sppb-visible-sm {
  @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
    .responsive-visibility();
  }
}
.sppb-visible-sm-block {
  @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
    display: block !important;
  }
}
.sppb-visible-sm-inline {
  @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
    display: inline !important;
  }
}
.sppb-visible-sm-inline-block {
  @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
    display: inline-block !important;
  }
}

.sppb-visible-md {
  @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
    .responsive-visibility();
  }
}
.sppb-visible-md-block {
  @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
    display: block !important;
  }
}
.sppb-visible-md-inline {
  @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
    display: inline !important;
  }
}
.sppb-visible-md-inline-block {
  @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
    display: inline-block !important;
  }
}

.sppb-visible-lg {
  @media (min-width: @screen-lg-min) {
    .responsive-visibility();
  }
}
.sppb-visible-lg-block {
  @media (min-width: @screen-lg-min) {
    display: block !important;
  }
}
.sppb-visible-lg-inline {
  @media (min-width: @screen-lg-min) {
    display: inline !important;
  }
}
.sppb-visible-lg-inline-block {
  @media (min-width: @screen-lg-min) {
    display: inline-block !important;
  }
}

.sppb-hidden-xs {
  @media (max-width: @screen-xs-max) {
    .responsive-invisibility();
  }
}
.sppb-hidden-sm {
  @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
    .responsive-invisibility();
  }
}
.sppb-hidden-md {
  @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
    .responsive-invisibility();
  }
}
.sppb-hidden-lg {
  @media (min-width: @screen-lg-min) {
    .responsive-invisibility();
  }
}


// Print utilities
//
// Media queries are placed on the inside to be mixin-friendly.

// Note: Deprecated .sppb-visible-print as of v3.2.0
.sppb-visible-print {
  .responsive-invisibility();

  @media print {
    .responsive-visibility();
  }
}
.sppb-visible-print-block {
  display: none !important;

  @media print {
    display: block !important;
  }
}
.sppb-visible-print-inline {
  display: none !important;

  @media print {
    display: inline !important;
  }
}
.sppb-visible-print-inline-block {
  display: none !important;

  @media print {
    display: inline-block !important;
  }
}

.sppb-hidden-print {
  @media print {
    .responsive-invisibility();
  }
}
