2 // Responsive: Utility classes
3 // --------------------------------------------------
6 // IE10 Metro responsive
7 // Required for Windows 8 Metro split-screen snapping with IE10
9 // Source: http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/
14 // IE10 on Windows Phone 8
15 // IE10 on WP8 doesn't report CSS pixels, but actual device pixels. In
16 // other words, say on a Lumia, you'll get 768px as the device width,
17 // meaning users will see the tablet styles and not phone styles.
19 // Alternatively you can override this with JS (see source below), but
20 // we won't be doing that here given our limited scope.
22 // Source: http://timkadlec.com/2013/01/windows-phone-8-and-device-width/
23 @media screen and (max-width: 400px) {
29 // Hide from screenreaders and browsers
30 // Credit: HTML5 Boilerplate
32 display: none !important;
33 visibility: hidden !important;
36 // Visibility utilities
39 .responsive-visibility();
40 @media (min-width: @screen-tablet) and (max-width: @screen-tablet-max) {
41 .responsive-invisibility();
43 @media (min-width: @screen-desktop) and (max-width: @screen-desktop-max) {
44 .responsive-invisibility();
46 @media (min-width: @screen-large-desktop) {
47 .responsive-invisibility();
51 .responsive-invisibility();
52 @media (min-width: @screen-tablet) and (max-width: @screen-tablet-max) {
53 .responsive-visibility();
55 @media (min-width: @screen-desktop) and (max-width: @screen-desktop-max) {
56 .responsive-invisibility();
58 @media (min-width: @screen-large-desktop) {
59 .responsive-invisibility();
63 .responsive-invisibility();
64 @media (min-width: @screen-tablet) and (max-width: @screen-tablet-max) {
65 .responsive-invisibility();
67 @media (min-width: @screen-desktop) and (max-width: @screen-desktop-max) {
68 .responsive-visibility();
70 @media (min-width: @screen-large-desktop) {
71 .responsive-invisibility();
75 .responsive-invisibility();
76 @media (min-width: @screen-tablet) and (max-width: @screen-tablet-max) {
77 .responsive-invisibility();
79 @media (min-width: @screen-desktop) and (max-width: @screen-desktop-max) {
80 .responsive-invisibility();
82 @media (min-width: @screen-large-desktop) {
83 .responsive-visibility();
88 .responsive-invisibility();
89 @media (min-width: @screen-tablet) and (max-width: @screen-tablet-max) {
90 .responsive-visibility();
92 @media (min-width: @screen-desktop) and (max-width: @screen-desktop-max) {
93 .responsive-visibility();
95 @media (min-width: @screen-large-desktop) {
96 .responsive-visibility();
100 .responsive-visibility();
101 @media (min-width: @screen-tablet) and (max-width: @screen-tablet-max) {
102 .responsive-invisibility();
104 @media (min-width: @screen-desktop) and (max-width: @screen-desktop-max) {
105 .responsive-visibility();
107 @media (min-width: @screen-large-desktop) {
108 .responsive-visibility();
112 .responsive-visibility();
113 @media (min-width: @screen-tablet) and (max-width: @screen-tablet-max) {
114 .responsive-visibility();
116 @media (min-width: @screen-desktop) and (max-width: @screen-desktop-max) {
117 .responsive-invisibility();
119 @media (min-width: @screen-large-desktop) {
120 .responsive-visibility();
124 .responsive-visibility();
125 @media (min-width: @screen-tablet) and (max-width: @screen-tablet-max) {
126 .responsive-visibility();
128 @media (min-width: @screen-desktop) and (max-width: @screen-desktop-max) {
129 .responsive-visibility();
131 @media (min-width: @screen-large-desktop) {
132 .responsive-invisibility();
138 .responsive-invisibility();
144 .responsive-visibility();
147 .responsive-invisibility();