Merge pull request #333 from legendtang/master
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 10 Mar 2015 17:55:15 +0000 (18:55 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 10 Mar 2015 17:55:15 +0000 (18:55 +0100)
themes/bootstrap: add media queries to bootstrap-theme for better responsive UI on mobile devices

themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/mobile.css

index e9d9b61..b74f209 100644 (file)
@@ -1,3 +1,21 @@
 header h3 a, header .brand {
        display:none !important;
 }
+
+@media screen and (max-device-width: 600px) {
+       #maincontent.container {
+               margin-top: 30px;
+       }
+}
+
+@media screen and (max-device-width: 360px) {
+       #maincontent.container {
+               margin-top: 60px;
+       }
+}
+
+@media screen and (max-device-width: 200px) {
+       #maincontent.container {
+               margin-top: 230px;
+       }
+}
\ No newline at end of file