info@53: // info@53: // Responsive: Utility classes info@53: // -------------------------------------------------- info@53: info@53: info@53: // IE10 in Windows (Phone) 8 info@53: // info@53: // Support for responsive views via media queries is kind of borked in IE10, for info@53: // Surface/desktop in split view and for Windows Phone 8. This particular fix info@53: // must be accompanied by a snippet of JavaScript to sniff the user agent and info@53: // apply some conditional CSS to *only* the Surface/desktop Windows 8. Look at info@53: // our Getting Started page for more information on this bug. info@53: // info@53: // For more information, see the following: info@53: // info@53: // Issue: https://github.com/twbs/bootstrap/issues/10497 info@53: // Docs: http://getbootstrap.com/getting-started/#browsers info@53: // Source: http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/ info@53: info@53: @-ms-viewport { info@53: width: device-width; info@53: } info@53: info@53: info@53: // Visibility utilities info@53: info@53: .visible-xs { info@53: .responsive-invisibility(); info@53: @media (max-width: @screen-xs-max) { info@53: .responsive-visibility(); info@53: } info@53: &.visible-sm { info@53: @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) { info@53: .responsive-visibility(); info@53: } info@53: } info@53: &.visible-md { info@53: @media (min-width: @screen-md-min) and (max-width: @screen-md-max) { info@53: .responsive-visibility(); info@53: } info@53: } info@53: &.visible-lg { info@53: @media (min-width: @screen-lg-min) { info@53: .responsive-visibility(); info@53: } info@53: } info@53: } info@53: .visible-sm { info@53: .responsive-invisibility(); info@53: &.visible-xs { info@53: @media (max-width: @screen-xs-max) { info@53: .responsive-visibility(); info@53: } info@53: } info@53: @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) { info@53: .responsive-visibility(); info@53: } info@53: &.visible-md { info@53: @media (min-width: @screen-md-min) and (max-width: @screen-md-max) { info@53: .responsive-visibility(); info@53: } info@53: } info@53: &.visible-lg { info@53: @media (min-width: @screen-lg-min) { info@53: .responsive-visibility(); info@53: } info@53: } info@53: } info@53: .visible-md { info@53: .responsive-invisibility(); info@53: &.visible-xs { info@53: @media (max-width: @screen-xs-max) { info@53: .responsive-visibility(); info@53: } info@53: } info@53: &.visible-sm { info@53: @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) { info@53: .responsive-visibility(); info@53: } info@53: } info@53: @media (min-width: @screen-md-min) and (max-width: @screen-md-max) { info@53: .responsive-visibility(); info@53: } info@53: &.visible-lg { info@53: @media (min-width: @screen-lg-min) { info@53: .responsive-visibility(); info@53: } info@53: } info@53: } info@53: .visible-lg { info@53: .responsive-invisibility(); info@53: &.visible-xs { info@53: @media (max-width: @screen-xs-max) { info@53: .responsive-visibility(); info@53: } info@53: } info@53: &.visible-sm { info@53: @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) { info@53: .responsive-visibility(); info@53: } info@53: } info@53: &.visible-md { info@53: @media (min-width: @screen-md-min) and (max-width: @screen-md-max) { info@53: .responsive-visibility(); info@53: } info@53: } info@53: @media (min-width: @screen-lg-min) { info@53: .responsive-visibility(); info@53: } info@53: } info@53: info@53: .hidden-xs { info@53: .responsive-visibility(); info@53: @media (max-width: @screen-xs-max) { info@53: .responsive-invisibility(); info@53: } info@53: &.hidden-sm { info@53: @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) { info@53: .responsive-invisibility(); info@53: } info@53: } info@53: &.hidden-md { info@53: @media (min-width: @screen-md-min) and (max-width: @screen-md-max) { info@53: .responsive-invisibility(); info@53: } info@53: } info@53: &.hidden-lg { info@53: @media (min-width: @screen-lg-min) { info@53: .responsive-invisibility(); info@53: } info@53: } info@53: } info@53: .hidden-sm { info@53: .responsive-visibility(); info@53: &.hidden-xs { info@53: @media (max-width: @screen-xs-max) { info@53: .responsive-invisibility(); info@53: } info@53: } info@53: @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) { info@53: .responsive-invisibility(); info@53: } info@53: &.hidden-md { info@53: @media (min-width: @screen-md-min) and (max-width: @screen-md-max) { info@53: .responsive-invisibility(); info@53: } info@53: } info@53: &.hidden-lg { info@53: @media (min-width: @screen-lg-min) { info@53: .responsive-invisibility(); info@53: } info@53: } info@53: } info@53: .hidden-md { info@53: .responsive-visibility(); info@53: &.hidden-xs { info@53: @media (max-width: @screen-xs-max) { info@53: .responsive-invisibility(); info@53: } info@53: } info@53: &.hidden-sm { info@53: @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) { info@53: .responsive-invisibility(); info@53: } info@53: } info@53: @media (min-width: @screen-md-min) and (max-width: @screen-md-max) { info@53: .responsive-invisibility(); info@53: } info@53: &.hidden-lg { info@53: @media (min-width: @screen-lg-min) { info@53: .responsive-invisibility(); info@53: } info@53: } info@53: } info@53: .hidden-lg { info@53: .responsive-visibility(); info@53: &.hidden-xs { info@53: @media (max-width: @screen-xs-max) { info@53: .responsive-invisibility(); info@53: } info@53: } info@53: &.hidden-sm { info@53: @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) { info@53: .responsive-invisibility(); info@53: } info@53: } info@53: &.hidden-md { info@53: @media (min-width: @screen-md-min) and (max-width: @screen-md-max) { info@53: .responsive-invisibility(); info@53: } info@53: } info@53: @media (min-width: @screen-lg-min) { info@53: .responsive-invisibility(); info@53: } info@53: } info@53: info@53: // Print utilities info@53: .visible-print { info@53: .responsive-invisibility(); info@53: } info@53: info@53: @media print { info@53: .visible-print { info@53: .responsive-visibility(); info@53: } info@53: .hidden-print { info@53: .responsive-invisibility(); info@53: } info@53: }