summaryrefslogtreecommitdiff
path: root/plugins/legacy_browser
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-04-18 18:54:29 +0200
committerAleksander Machniak <alec@alec.pl>2014-04-18 18:54:29 +0200
commit241af0937c973fb8b541ed97ef8b194be4be7c00 (patch)
treebbfbc0bae4fd15a72f20cf29d96f70007dbe89de /plugins/legacy_browser
parentca33f32b607966b9d774ae1c6261031056212a33 (diff)
Fix loading css for larry skin, support minified css files
Diffstat (limited to 'plugins/legacy_browser')
-rw-r--r--plugins/legacy_browser/legacy_browser.php15
-rw-r--r--plugins/legacy_browser/skins/larry/iehacks.css9
2 files changed, 11 insertions, 13 deletions
diff --git a/plugins/legacy_browser/legacy_browser.php b/plugins/legacy_browser/legacy_browser.php
index bdf831e73..0dc0794f3 100644
--- a/plugins/legacy_browser/legacy_browser.php
+++ b/plugins/legacy_browser/legacy_browser.php
@@ -40,19 +40,20 @@ class legacy_browser extends rcube_plugin
$skin = $this->skin();
if ($skin == 'classic') {
+ $minified = file_exists(INSTALL_PATH . '/plugins/legacy_browser/skins/classic/iehacks.min.css') ? '.min' : '';
$rcube->output->add_header(
- '<link rel="stylesheet" type="text/css" href="plugins/legacy_browser/classic/iehacks.css" />'
+ '<link rel="stylesheet" type="text/css" href="plugins/legacy_browser/skins/classic/iehacks' . $minified . '.css" />'
);
}
else if ($skin == 'larry') {
+ $minified = file_exists(INSTALL_PATH . '/plugins/legacy_browser/skins/larry/iehacks.min.css') ? '.min' : '';
+ $rcube->output->add_header(
+ '<link rel="stylesheet" type="text/css" href="plugins/legacy_browser/skins/larry/iehacks' . $minified . '.css" />'
+ );
+
if ($rcube->output->browser->ver < 8) {
$rcube->output->add_header(
- '<link rel="stylesheet" type="text/css" href="plugins/legacy_browser/larry/ie7hacks.css" />'
- );
- }
- else {
- $rcube->output->add_header(
- '<link rel="stylesheet" type="text/css" href="plugins/legacy_browser/larry/iehacks.css" />'
+ '<link rel="stylesheet" type="text/css" href="plugins/legacy_browser/skins/larry/ie7hacks' . $minified . '.css" />'
);
}
}
diff --git a/plugins/legacy_browser/skins/larry/iehacks.css b/plugins/legacy_browser/skins/larry/iehacks.css
index 96072554c..917374a26 100644
--- a/plugins/legacy_browser/skins/larry/iehacks.css
+++ b/plugins/legacy_browser/skins/larry/iehacks.css
@@ -13,7 +13,9 @@
top: -6px;
}
-input.button {
+input.button,
+a.disabled.button,
+.buttongroup {
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#e6e6e6', GradientType=0);
}
@@ -33,11 +35,6 @@ input.button.mainaction:active {
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#2a2e31', endColorstr='#505050', GradientType=0);
}
-a.button,
-.buttongroup {
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#e6e6e6', GradientType=0);
-}
-
a.button.pressed,
a.button:active,
input.button:active {