From 0f9a1467e2e5d4905bcd4fb8d3a699e1a1ec0653 Mon Sep 17 00:00:00 2001 From: Kordan Date: Tue, 5 Jul 2011 10:13:35 +0200 Subject: [PATCH] MDL-27989 fix for MOODLE_20_STABLE --- theme/base/style/core.css | 3 ++- theme/canvas/style/core.css | 18 ++++++------------ theme/formal_white/style/core.css | 17 ++++++++++++----- theme/formal_white/style/formal_white.css | 4 ++-- 4 files changed, 22 insertions(+), 20 deletions(-) diff --git a/theme/base/style/core.css b/theme/base/style/core.css index 5b4107f9398..d3abdb6268f 100644 --- a/theme/base/style/core.css +++ b/theme/base/style/core.css @@ -187,12 +187,13 @@ a.skip:active {position: static;display: block;} .mform fieldset div div {margin:0;} .mform fieldset .advancedbutton {text-align:right;} .mform fieldset.hidden {border-width:0;} +.mform fieldset.group {margin-bottom: 0} .mform fieldset.error {border: 1px solid #A00;} .mform .fitem {width:100%;overflow:hidden;margin-top:5px;margin-bottom:1px;clear:right;} .mform .fitem .fitemtitle {width:15%;text-align:right;float:left;} .mform .fitem .fitemtitle div {display: inline;} .mform .fitem .felement {border-width: 0;width:80%;margin-left:16%;} -.mform .fitem fieldset.felement {margin-left:0;padding-left:1%;} +.mform .fitem fieldset.felement {margin-left:0;padding-left:1%;margin-bottom:0} .mform .error, .mform .required {color:#A00;} .mform .required .fgroup span label {color:#000;} diff --git a/theme/canvas/style/core.css b/theme/canvas/style/core.css index 980c8bd1e3a..1efd840dd8c 100644 --- a/theme/canvas/style/core.css +++ b/theme/canvas/style/core.css @@ -175,7 +175,7 @@ input[type="radio"] { margin-left: 21%; } -/* Calendar +/* Calendar -----------------------*/ .calendarlayout .sidecalendar { @@ -330,8 +330,8 @@ input[type="radio"] { -----------------------*/ .userinfobox { -border-color: #ddd; -padding: 0 + border-color: #ddd; + padding: 0 } .userinfobox .content { @@ -450,7 +450,7 @@ padding: 0 text-align: center; } -/* Blogs +/* Blogs ------------------------*/ .blog_entry .audience { @@ -463,7 +463,7 @@ padding: 0 margin-bottom: 0.5em; } -/* Tags +/* Tags ------------------------*/ #big-tag-cloud-box { @@ -556,7 +556,7 @@ padding: 0 padding-top: 30px; } -/* Forms +/* Forms -----------------------*/ .mform .fsubmit { @@ -574,12 +574,6 @@ padding: 0 color: #444; } -.mform .hidden .fitem .fgroup { - width: 100%; - text-align: center; - margin: 1em 0; -} - .path-backup .mform .hidden .fitem .fgroup { text-align: left; } diff --git a/theme/formal_white/style/core.css b/theme/formal_white/style/core.css index c41162a6d8a..91cc25edbcb 100644 --- a/theme/formal_white/style/core.css +++ b/theme/formal_white/style/core.css @@ -116,9 +116,11 @@ input[type="radio"] { margin: 0 auto; text-align: left; } + .dir-rtl .loginbox .loginform .form-label { text-align: right; } + .loginbox .loginform .form-input { float: none; width: 100%; @@ -434,10 +436,15 @@ input[type="radio"] { color: #444; } -.mform .hidden .fitem .fgroup { - width: 100%; - text-align: center; - margin: 1em 0; +/* do not push the field far from the label more than all the other mform elements */ +.mform .fitem input[type="text"], +.mform .fitem input[type="password"] { + margin: 0.3em 0 0.3em 0; +} + +/* needed to vertically align label of mform groups containing, for instance, select and text */ +.mform .fitem { + line-height:2.0em; } .path-backup .mform .hidden .fitem .fgroup { @@ -553,4 +560,4 @@ input[type="radio"] { .pagelayout-redirect #content {text-align:center;margin-top:10%;margin-bottom:10%;} /* plugin compattable */ -.plugincompattable {font-size:90%;} +.plugincompattable {font-size:90%;} \ No newline at end of file diff --git a/theme/formal_white/style/formal_white.css b/theme/formal_white/style/formal_white.css index f92c5980242..30ed13d7263 100644 --- a/theme/formal_white/style/formal_white.css +++ b/theme/formal_white/style/formal_white.css @@ -94,8 +94,8 @@ h1.headerheading {margin:14px 11px 8px 11px;float:left;font-size:200%;} .environmenttable td, .forumheaderlist td, .forumheaderlist th { - border: 1px solid #E3DFD4; - border-collapse: collapse; + border: 1px solid #E3DFD4; + border-collapse: collapse; } th.header,