Fix E713 with stricter pep8 error checker
[cascardo/ipsilon.git] / less / bootstrap / responsive-utilities.less
1 //
2 // Responsive: Utility classes
3 // --------------------------------------------------
4
5
6 // IE10 in Windows (Phone) 8
7 //
8 // Support for responsive views via media queries is kind of borked in IE10, for
9 // Surface/desktop in split view and for Windows Phone 8. This particular fix
10 // must be accompanied by a snippet of JavaScript to sniff the user agent and
11 // apply some conditional CSS to *only* the Surface/desktop Windows 8. Look at
12 // our Getting Started page for more information on this bug.
13 //
14 // For more information, see the following:
15 //
16 // Issue: https://github.com/twbs/bootstrap/issues/10497
17 // Docs: http://getbootstrap.com/getting-started/#browsers
18 // Source: http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/
19
20 @-ms-viewport {
21   width: device-width;
22 }
23
24
25 // Visibility utilities
26 .visible-xs {
27   .responsive-invisibility();
28
29   @media (max-width: @screen-xs-max) {
30     .responsive-visibility();
31   }
32 }
33 .visible-sm {
34   .responsive-invisibility();
35
36   @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
37     .responsive-visibility();
38   }
39 }
40 .visible-md {
41   .responsive-invisibility();
42
43   @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
44     .responsive-visibility();
45   }
46 }
47 .visible-lg {
48   .responsive-invisibility();
49
50   @media (min-width: @screen-lg-min) {
51     .responsive-visibility();
52   }
53 }
54
55 .hidden-xs {
56   @media (max-width: @screen-xs-max) {
57     .responsive-invisibility();
58   }
59 }
60 .hidden-sm {
61   @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
62     .responsive-invisibility();
63   }
64 }
65 .hidden-md {
66   @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
67     .responsive-invisibility();
68   }
69 }
70 .hidden-lg {
71   @media (min-width: @screen-lg-min) {
72     .responsive-invisibility();
73   }
74 }
75
76
77 // Print utilities
78 //
79 // Media queries are placed on the inside to be mixin-friendly.
80
81 .visible-print {
82   .responsive-invisibility();
83
84   @media print {
85     .responsive-visibility();
86   }
87 }
88
89 .hidden-print {
90   @media print {
91     .responsive-invisibility();
92   }
93 }