2012-06-29 00:46:45 -04:00
|
|
|
//
|
|
|
|
// Responsive: Utility classes
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2012-03-25 04:12:51 -04:00
|
|
|
|
2013-09-11 17:46:31 -04:00
|
|
|
// IE10 in Windows (Phone) 8
|
2013-04-21 17:50:44 -04:00
|
|
|
//
|
2013-09-11 17:46:31 -04:00
|
|
|
// Support for responsive views via media queries is kind of borked in IE10, for
|
2013-09-11 19:15:12 -04:00
|
|
|
// Surface/desktop in split view and for Windows Phone 8. This particular fix
|
2013-09-11 17:46:31 -04:00
|
|
|
// must be accompanied by a snippet of JavaScript to sniff the user agent and
|
2013-09-11 19:24:03 -04:00
|
|
|
// apply some conditional CSS to *only* the Surface/desktop Windows 8. Look at
|
2013-09-11 17:46:31 -04:00
|
|
|
// our Getting Started page for more information on this bug.
|
|
|
|
//
|
|
|
|
// For more information, see the following:
|
|
|
|
//
|
|
|
|
// Issue: https://github.com/twbs/bootstrap/issues/10497
|
2014-05-14 19:41:40 -04:00
|
|
|
// Docs: http://getbootstrap.com/getting-started/#support-ie10-width
|
2014-05-14 20:08:53 -04:00
|
|
|
// Source: http://timkadlec.com/2013/01/windows-phone-8-and-device-width/
|
2012-12-10 13:29:16 -05:00
|
|
|
// Source: http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/
|
2013-09-11 17:46:31 -04:00
|
|
|
|
|
|
|
@-ms-viewport {
|
2012-12-10 13:29:16 -05:00
|
|
|
width: device-width;
|
|
|
|
}
|
2012-03-25 04:12:51 -04:00
|
|
|
|
2013-09-11 17:46:31 -04:00
|
|
|
|
2014-02-13 14:48:23 -05:00
|
|
|
.visible-xs-block,
|
|
|
|
.visible-xs-inline,
|
|
|
|
.visible-xs-inline-block,
|
|
|
|
.visible-sm-block,
|
|
|
|
.visible-sm-inline,
|
|
|
|
.visible-sm-inline-block,
|
|
|
|
.visible-md-block,
|
|
|
|
.visible-md-inline,
|
|
|
|
.visible-md-inline-block,
|
|
|
|
.visible-lg-block,
|
|
|
|
.visible-lg-inline,
|
|
|
|
.visible-lg-inline-block {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.visible-xs-block {
|
2014-12-02 17:02:35 -05:00
|
|
|
@include media-xs {
|
2014-02-13 14:48:23 -05:00
|
|
|
display: block !important;
|
2014-12-02 17:02:35 -05:00
|
|
|
}
|
2014-02-13 14:48:23 -05:00
|
|
|
}
|
|
|
|
.visible-xs-inline {
|
2014-12-02 17:02:35 -05:00
|
|
|
@include media-xs {
|
2014-02-13 14:48:23 -05:00
|
|
|
display: inline !important;
|
2014-12-02 17:02:35 -05:00
|
|
|
}
|
2014-02-13 14:48:23 -05:00
|
|
|
}
|
|
|
|
.visible-xs-inline-block {
|
2014-12-02 17:02:35 -05:00
|
|
|
@include media-xs {
|
2014-02-13 14:48:23 -05:00
|
|
|
display: inline-block !important;
|
2014-12-02 17:02:35 -05:00
|
|
|
}
|
2014-02-13 14:48:23 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.visible-sm-block {
|
2014-12-02 17:02:35 -05:00
|
|
|
@include media-sm-max {
|
2014-02-13 14:48:23 -05:00
|
|
|
display: block !important;
|
2014-12-02 17:02:35 -05:00
|
|
|
}
|
2014-02-13 14:48:23 -05:00
|
|
|
}
|
|
|
|
.visible-sm-inline {
|
2014-12-02 17:02:35 -05:00
|
|
|
@include media-sm-max {
|
2014-02-13 14:48:23 -05:00
|
|
|
display: inline !important;
|
2014-12-02 17:02:35 -05:00
|
|
|
}
|
2014-02-13 14:48:23 -05:00
|
|
|
}
|
|
|
|
.visible-sm-inline-block {
|
2014-12-02 17:02:35 -05:00
|
|
|
@include media-sm-max {
|
2014-02-13 14:48:23 -05:00
|
|
|
display: inline-block !important;
|
2014-12-02 17:02:35 -05:00
|
|
|
}
|
2014-02-13 14:48:23 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.visible-md-block {
|
2014-12-02 17:02:35 -05:00
|
|
|
@include media-md-max {
|
2014-02-13 14:48:23 -05:00
|
|
|
display: block !important;
|
2014-12-02 17:02:35 -05:00
|
|
|
}
|
2014-02-13 14:48:23 -05:00
|
|
|
}
|
|
|
|
.visible-md-inline {
|
2014-12-02 17:02:35 -05:00
|
|
|
@include media-md-max {
|
2014-02-13 14:48:23 -05:00
|
|
|
display: inline !important;
|
2014-12-02 17:02:35 -05:00
|
|
|
}
|
2014-02-13 14:48:23 -05:00
|
|
|
}
|
|
|
|
.visible-md-inline-block {
|
2014-12-02 17:02:35 -05:00
|
|
|
@include media-md-max {
|
2014-02-13 14:48:23 -05:00
|
|
|
display: inline-block !important;
|
2014-12-02 17:02:35 -05:00
|
|
|
}
|
2014-02-13 14:48:23 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.visible-lg-block {
|
2014-12-02 17:02:35 -05:00
|
|
|
@include media-lg {
|
2014-02-13 14:48:23 -05:00
|
|
|
display: block !important;
|
2014-12-02 17:02:35 -05:00
|
|
|
}
|
2014-02-13 14:48:23 -05:00
|
|
|
}
|
|
|
|
.visible-lg-inline {
|
2014-12-02 17:02:35 -05:00
|
|
|
@include media-lg {
|
2014-02-13 14:48:23 -05:00
|
|
|
display: inline !important;
|
2014-12-02 17:02:35 -05:00
|
|
|
}
|
2014-02-13 14:48:23 -05:00
|
|
|
}
|
|
|
|
.visible-lg-inline-block {
|
2014-12-02 17:02:35 -05:00
|
|
|
@include media-lg {
|
2014-02-13 14:48:23 -05:00
|
|
|
display: inline-block !important;
|
2014-12-02 17:02:35 -05:00
|
|
|
}
|
2014-02-13 14:48:23 -05:00
|
|
|
}
|
2013-04-20 15:33:09 -04:00
|
|
|
|
2014-12-02 17:02:35 -05:00
|
|
|
@include media-sm-max {
|
2014-12-11 15:05:29 -05:00
|
|
|
@include responsive-invisibility(".hidden-sm");
|
2012-03-25 04:12:51 -04:00
|
|
|
}
|
2014-12-02 17:02:35 -05:00
|
|
|
|
|
|
|
@include media-md-max {
|
2014-12-11 15:05:29 -05:00
|
|
|
@include responsive-invisibility(".hidden-md");
|
2013-08-07 16:47:49 -04:00
|
|
|
}
|
2014-12-02 17:02:35 -05:00
|
|
|
|
|
|
|
@include media-lg {
|
2014-12-11 15:05:29 -05:00
|
|
|
@include responsive-invisibility(".hidden-lg");
|
2012-03-25 04:12:51 -04:00
|
|
|
}
|
2013-02-06 01:17:28 -05:00
|
|
|
|
2013-12-08 22:19:06 -05:00
|
|
|
|
2013-02-06 01:17:28 -05:00
|
|
|
// Print utilities
|
2013-12-08 22:19:06 -05:00
|
|
|
//
|
|
|
|
// Media queries are placed on the inside to be mixin-friendly.
|
|
|
|
|
2014-02-13 14:48:23 -05:00
|
|
|
.visible-print-block {
|
|
|
|
display: none !important;
|
|
|
|
|
|
|
|
@media print {
|
|
|
|
display: block !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.visible-print-inline {
|
|
|
|
display: none !important;
|
|
|
|
|
|
|
|
@media print {
|
|
|
|
display: inline !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.visible-print-inline-block {
|
|
|
|
display: none !important;
|
|
|
|
|
|
|
|
@media print {
|
|
|
|
display: inline-block !important;
|
|
|
|
}
|
|
|
|
}
|
2013-10-31 05:32:23 -04:00
|
|
|
|
|
|
|
.hidden-print {
|
|
|
|
@media print {
|
2014-12-11 15:05:29 -05:00
|
|
|
@include responsive-invisibility(".hidden-print");
|
2013-07-01 15:13:57 -04:00
|
|
|
}
|
2013-04-23 03:30:22 -04:00
|
|
|
}
|