Minify local css overrides
[busui.git] / css / local.css.php
blob:a/css/local.css.php -> blob:b/css/local.css.php
--- a/css/local.css.php
+++ b/css/local.css.php
@@ -1,13 +1,15 @@
 <?php
-  header('Content-type: text/css');
-  ob_start("compress");
-  function compress($buffer) {
+
+header('Content-type: text/css');
+ob_start("compress");
+
+function compress($buffer) {
     /* remove comments */
     $buffer = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $buffer);
     /* remove tabs, spaces, newlines, etc. */
     $buffer = str_replace(array("\r\n", "\r", "\n", "\t", '  ', '    ', '    '), '', $buffer);
     return $buffer;
-  }
+}
 
 echo '
 .ui-li-thumb, .ui-li-icon { position: relative; }
@@ -25,11 +27,11 @@
         margin: 0 !important;
      }
     .ui-icon-navigation {
-        background-image: url('.$_REQUEST['labsPath'].'css/images/113-navigation.png);
+        background-image: url(images/113-navigation.png);
         background-position: 1px 0;
      }
     .ui-icon-beaker {
-        background-image: url('.$_REQUEST['labsPath'].'css/images/91-beaker-2.png);
+        background-image: url(images/91-beaker-2.png);
         background-position: 1px 0;
     }
     #footer {
@@ -53,7 +55,7 @@
     visibility: hidden;
     display: none;
     }
-    #servicewarning {
+    .servicewarning {
     padding: 1em;
     margin-bottom: 0.5em;
     text-size: 0.2em;
@@ -83,9 +85,10 @@
 position:static; 
 width:auto; 
 height:auto; 
-}
-
-
+}';
+
+//if (false)
+echo '
 // adaptive layout from jQuery Mobile docs site
 .type-interior .content-secondary {
 	border-right: 0;
@@ -112,7 +115,9 @@
 	padding:0;
 	margin: 0;
 }
-@media all and (min-width: 969px){
+	/* hires ahoy */
+@media all and (min-width: 650px){
+
 .content-secondary {
 		text-align: left;
 		float: left;
@@ -167,7 +172,8 @@
 		margin: 0;
 		padding: 0;
 	}
-
+}
+@media all and (min-width: 750px){
 	.type-home .ui-content,
 	.type-interior .ui-content {
 		background-position: 39%;
@@ -208,6 +214,8 @@
 	.type-interior .content-primary {
 		width: 60%;
 	}
-}';
-  ob_end_flush();
+}
+';
+ob_end_flush();
 ?>
+