aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/public/css/bootstrapless/responsive-utilities.less
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-04-10 14:00:20 +0200
committerDennis Eriksen <dennis.se@gmail.com>2013-04-10 14:00:20 +0200
commit3fef5f4b0653c80ac9d36569a8af6359ebbb0906 (patch)
tree816a6e97304ab6b6abde04a2aad5ebf1a4adee36 /public/css/bootstrapless/responsive-utilities.less
parentadded less (diff)
downloadDivid-3fef5f4b0653c80ac9d36569a8af6359ebbb0906.tar.gz
added less-version of bootstrap
Diffstat (limited to 'public/css/bootstrapless/responsive-utilities.less')
-rw-r--r--public/css/bootstrapless/responsive-utilities.less59
1 files changed, 59 insertions, 0 deletions
diff --git a/public/css/bootstrapless/responsive-utilities.less b/public/css/bootstrapless/responsive-utilities.less
new file mode 100644
index 0000000..bf43e8e
--- /dev/null
+++ b/public/css/bootstrapless/responsive-utilities.less
@@ -0,0 +1,59 @@
+//
+// Responsive: Utility classes
+// --------------------------------------------------
+
+
+// IE10 Metro responsive
+// Required for Windows 8 Metro split-screen snapping with IE10
+// Source: http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/
+@-ms-viewport{
+ width: device-width;
+}
+
+// Hide from screenreaders and browsers
+// Credit: HTML5 Boilerplate
+.hidden {
+ display: none;
+ visibility: hidden;
+}
+
+// Visibility utilities
+
+// For desktops
+.visible-phone { display: none !important; }
+.visible-tablet { display: none !important; }
+.hidden-phone { }
+.hidden-tablet { }
+.hidden-desktop { display: none !important; }
+.visible-desktop { display: inherit !important; }
+
+// Tablets & small desktops only
+@media (min-width: 768px) and (max-width: 979px) {
+ // Hide everything else
+ .hidden-desktop { display: inherit !important; }
+ .visible-desktop { display: none !important ; }
+ // Show
+ .visible-tablet { display: inherit !important; }
+ // Hide
+ .hidden-tablet { display: none !important; }
+}
+
+// Phones only
+@media (max-width: 767px) {
+ // Hide everything else
+ .hidden-desktop { display: inherit !important; }
+ .visible-desktop { display: none !important; }
+ // Show
+ .visible-phone { display: inherit !important; } // Use inherit to restore previous behavior
+ // Hide
+ .hidden-phone { display: none !important; }
+}
+
+// Print utilities
+.visible-print { display: none !important; }
+.hidden-print { }
+
+@media print {
+ .visible-print { display: inherit !important; }
+ .hidden-print { display: none !important; }
+}