I have tried to centering icons but, with external css (render.css), they doesn't appear aligned vertically in some browsers, due probably to syntax error or coding error of CSS template (Garland, Minelli etc.). Then i wrote css inline.
I have rewrote some lines of render.module.
Line 152:
$img_edit = theme('image', $renderdir .'/images/editor.gif', t(''), t(''), array('style' => t('vertical-align:text-bottom')));
Line 153:
$img_duplicate = theme('image', $renderdir .'/images/copy.gif', t(''), t(''), array('style' => t('vertical-align:text-bottom')));
Line 154:
$img_delete = theme('image', $renderdir .'/images/delete.gif', t(''), t(''), array('style' => t('vertical-align:text-bottom')));
Line 244:
$delimg = theme('image', drupal_get_path('module', 'render') .'/images/delete.gif', t(''), t(''), array('style' => t('vertical-align:text-bottom')));
Line 250:
l($delimg, 'admin/settings/render/deletefont/'. urlencode($file), array('title' => t('Delete')), NULL, NULL, FALSE, TRUE),
I have redesigned icons from PNG 32Bit to Transparent GIF and changed the delete icon with X. With this method they aren't problems with IE6 PNG 32bit support.
Tested with IE6, IE7, Firefox2.x.
| Comment | File | Size | Author |
|---|---|---|---|
| editor.gif | 369 bytes | MaximG | |
| delete.gif | 355 bytes | MaximG | |
| copy.gif | 351 bytes | MaximG | |
| render.module.patch | 2.1 KB | MaximG |
Comments
Comment #1
sunSorry for coming back late to you.
- We should be able to add and apply these styles via
render.css.- The icon files itself won't change, because they are from the Tango project. IE6 sucks anyway, and I highly doubt that any site admin is using an old browser like this.
- Your patch removes the text links. Was this intentional? If so, why?
Comment #2
sunSorry, I do not have issues with the current output and it does not seem that you want to re-work your patch.