Commit 4bd256a2 authored by Steven Wittens's avatar Steven Wittens

#85166: div around radios (checkboxes) and tweak margins

parent f24e304f
......@@ -943,6 +943,7 @@ function theme_radio($element) {
* A themed HTML string representing the radio button set.
*/
function theme_radios($element) {
$element['#children'] = '<div class="form-radios">'. $element['#children'] .'</div>';
if ($element['#title'] || $element['#description']) {
unset($element['#id']);
return theme('form_element', $element, $element['#children']);
......
......@@ -103,6 +103,13 @@ tr.merge-up, tr.merge-up td, tr.merge-up th {
display: inline;
font-weight: normal;
}
.form-checkboxes, .form-radios {
margin: 1em 0;
}
.form-checkboxes .form-item, .form-radios .form-item {
margin-top: 0.4em;
margin-bottom: 0.4em;
}
.marker, .form-required {
color: #f00;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment