Fix loading css for larry skin, support minified css files

pull/171/merge
Aleksander Machniak 11 years ago
parent ca33f32b60
commit 241af0937c

@ -40,19 +40,20 @@ class legacy_browser extends rcube_plugin
$skin = $this->skin(); $skin = $this->skin();
if ($skin == 'classic') { if ($skin == 'classic') {
$minified = file_exists(INSTALL_PATH . '/plugins/legacy_browser/skins/classic/iehacks.min.css') ? '.min' : '';
$rcube->output->add_header( $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') { else if ($skin == 'larry') {
if ($rcube->output->browser->ver < 8) { $minified = file_exists(INSTALL_PATH . '/plugins/legacy_browser/skins/larry/iehacks.min.css') ? '.min' : '';
$rcube->output->add_header( $rcube->output->add_header(
'<link rel="stylesheet" type="text/css" href="plugins/legacy_browser/larry/ie7hacks.css" />' '<link rel="stylesheet" type="text/css" href="plugins/legacy_browser/skins/larry/iehacks' . $minified . '.css" />'
); );
}
else { if ($rcube->output->browser->ver < 8) {
$rcube->output->add_header( $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" />'
); );
} }
} }

@ -13,7 +13,9 @@
top: -6px; top: -6px;
} }
input.button { input.button,
a.disabled.button,
.buttongroup {
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#e6e6e6', GradientType=0); 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); 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.pressed,
a.button:active, a.button:active,
input.button:active { input.button:active {

Loading…
Cancel
Save