forms.less: Fix help icon layout

This commit is contained in:
Johannes Meyer 2015-08-21 10:36:08 +02:00
parent c395dbd813
commit b9d64b40a4
2 changed files with 10 additions and 2 deletions

View File

@ -96,7 +96,10 @@ class Help extends Zend_Form_Decorator_Abstract
$helpContent = $this->getView()->icon( $helpContent = $this->getView()->icon(
'help', 'help',
$description . ($description && $requirement ? ' ' : '') . $requirement, $description . ($description && $requirement ? ' ' : '') . $requirement,
array('aria-hidden' => $this->accessible ? 'true' : 'false') array(
'class' => 'help',
'aria-hidden' => $this->accessible ? 'true' : 'false'
)
) . $helpContent; ) . $helpContent;
} }

View File

@ -274,12 +274,17 @@ form div.element {
form label { form label {
display: inline-block; display: inline-block;
margin-top: 0.3em; vertical-align: top;
margin-top: 0.25em;
margin-right: 1em; margin-right: 1em;
font-size: 0.9em; font-size: 0.9em;
width: 10em; width: 10em;
} }
form div.element i.help:before {
margin-top: 0.25em;
}
label ~ * { label ~ * {
vertical-align: top; vertical-align: top;
} }