summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/exe/css.php4
-rw-r--r--lib/tpl/default/design.css5
2 files changed, 7 insertions, 2 deletions
diff --git a/lib/exe/css.php b/lib/exe/css.php
index a5b3eec66..2fb30999a 100644
--- a/lib/exe/css.php
+++ b/lib/exe/css.php
@@ -206,11 +206,11 @@ function css_pluginstyles($mode='screen'){
function css_compress($css){
// strip whitespaces
$css = preg_replace('![\r\n\t ]+!',' ',$css);
- $css = preg_replace('/ ?([:;,{}]) ?/','\\1',$css);
+ $css = preg_replace('/ ?([:;,{}\/]) ?/','\\1',$css);
// strip comments (ungreedy)
// We keep very small comments to maintain typical browser hacks
- $css = preg_replace('!(/\*)(.{4,})(\*/)!U','',$css);
+ $css = preg_replace('#(/\*)((?!\*/).){4,}(\*/)#Us','',$css);
// shorten colors
$css = preg_replace("/#([0-9a-fA-F]{1})\\1([0-9a-fA-F]{1})\\2([0-9a-fA-F]{1})\\3/", "#\\1\\2\\3",$css);
diff --git a/lib/tpl/default/design.css b/lib/tpl/default/design.css
index 9d5f5d001..a64ec83f9 100644
--- a/lib/tpl/default/design.css
+++ b/lib/tpl/default/design.css
@@ -129,7 +129,12 @@ input.button, button.button{
max-height: 22px !important;
min-height: 22px !important;
margin: 1px;
+ display: inline-block;
+
+ /* Mac IE will not see this and continue with inline-block */
+ /* \*/
display: inline;
+ /* */
}
div.secedit input.button {