mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
style former buttons without background-image, which are now just an et2-image with a more fitting height
preprocessor rewriting them adds class imageButton giving the image a height of 20px, like the image in buttons has
This commit is contained in:
parent
259bc4cd71
commit
cb63269598
@ -318,6 +318,7 @@ function send_template()
|
||||
{
|
||||
$tag = 'et2-image';
|
||||
$attrs['src'] = $attrs['image'];
|
||||
$attrs['class'] = (!empty($attrs['class']) ? $attrs['class'].' ':'').'imageButton';
|
||||
unset($attrs['image']);
|
||||
// Was expected to submit. Images don't have noValidation, so add directly
|
||||
if (!array_key_exists('onclick', $attrs) && empty($attrs['noSubmit']))
|
||||
|
@ -358,6 +358,13 @@ a.et2_url.url {
|
||||
margin-left: 0px;
|
||||
}
|
||||
|
||||
/**
|
||||
* Former button without background_image --> <et2-image class="et2-image-button"
|
||||
*/
|
||||
et2-image.imageButton {
|
||||
height: 20px;
|
||||
vertical-align: middle;}
|
||||
|
||||
/**
|
||||
* Button widget - text only, and icon
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user