mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +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';
|
$tag = 'et2-image';
|
||||||
$attrs['src'] = $attrs['image'];
|
$attrs['src'] = $attrs['image'];
|
||||||
|
$attrs['class'] = (!empty($attrs['class']) ? $attrs['class'].' ':'').'imageButton';
|
||||||
unset($attrs['image']);
|
unset($attrs['image']);
|
||||||
// Was expected to submit. Images don't have noValidation, so add directly
|
// Was expected to submit. Images don't have noValidation, so add directly
|
||||||
if (!array_key_exists('onclick', $attrs) && empty($attrs['noSubmit']))
|
if (!array_key_exists('onclick', $attrs) && empty($attrs['noSubmit']))
|
||||||
|
@ -358,6 +358,13 @@ a.et2_url.url {
|
|||||||
margin-left: 0px;
|
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
|
* Button widget - text only, and icon
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user