From: urs_hunkler Date: Mon, 4 Feb 2008 21:02:08 +0000 (+0000) Subject: merged from 1.9 :: MDL-13329 :: Buttons in the sidblocks looked quite different in... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5e98b1ab9543c540321c3ce4518cfd06af2cb589;p=moodle.git merged from 1.9 :: MDL-13329 :: Buttons in the sidblocks looked quite different in the different browsers. Changed several CSS aspects to make them look more similar, specially added IE "hacks". --- diff --git a/theme/chameleon/styles_ie6.css b/theme/chameleon/styles_ie6.css index d13b14ecea..bcaeeec0fe 100644 --- a/theme/chameleon/styles_ie6.css +++ b/theme/chameleon/styles_ie6.css @@ -4,6 +4,15 @@ div.breadcrumb span.sep { font-family: arial, sans-serif; } +input { + padding: expression((this.type=="submit")?'0 4px':this.currentStyle.paddingTop+" "+this.currentStyle.paddingRight+" "+this.currentStyle.paddingBottom+" "+this.currentStyle.paddingLeft); +} +div.sideblock div.content input { + text-align: expression((this.type=="submit")?'center':this.currentStyle.textAlign); +} +div.sideblock div.content div.btn input { + width: expression((this.type=="submit")?'auto':this.currentStyle.width); +} .tabtree { height: 100%; } diff --git a/theme/chameleon/styles_ie7.css b/theme/chameleon/styles_ie7.css index e0badd15dd..bab24079c6 100644 --- a/theme/chameleon/styles_ie7.css +++ b/theme/chameleon/styles_ie7.css @@ -1,6 +1,14 @@ /* * These styles are ONLY included for IE 7 (via meta.php) */ + +input[type="submit"] { + padding: 0 2px; +} +div.sideblock div.content input[type="submit"] { + text-align: center; + width: auto; +} .tabrow0 { padding-top: 5px; } diff --git a/theme/chameleon/user_styles.css b/theme/chameleon/user_styles.css index babfe91dce..334fe09655 100644 --- a/theme/chameleon/user_styles.css +++ b/theme/chameleon/user_styles.css @@ -178,6 +178,18 @@ ul.section li { div.sideblock div.content * { text-align: left; } +div.sideblock div.content input[type="submit"] { + width: auto; +} +button#searchform_button { + width: auto; +} +div.sideblock div.content div.btn input { + width: auto; +} +.block_login .loginform .fld { + text-align: right; +} div.sideblock div.calendar-controls a.next { text-align: right; }