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(
'help',
$description . ($description && $requirement ? ' ' : '') . $requirement,
array('aria-hidden' => $this->accessible ? 'true' : 'false')
array(
'class' => 'help',
'aria-hidden' => $this->accessible ? 'true' : 'false'
)
) . $helpContent;
}

View File

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