For my theme, I had to do a lot of overriding of CSS from this module that forced specific dimensions (width, margin, padding, etc.) and floats. I'd like to put a little bit of effort into reducing the amount of CSS for this module. In some cases, I'd also like to remove some HTML structure that's not in a theme function or move it to a theme function.
I know that this module has unique features and functions, so it needs some special UI. My goal isn't to disrupt anything useful or even make substantial UI changes! I hope the maintainers and other users of this module consider patches here and add their own to this issue. Starting out, I'm focusing on patches that reduce the amount of CSS and reuse CSS rules from elsewhere in Drupal.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | taxonomy-manager-theme.patch | 11.27 KB | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) commentedThis patch re-uses the admin page layout CSS: div.admin, div.admin .left and div.admin .right. If your theme shows the admin page correctly, your theme should show the taxonomy manager admin page correctly.
Comment #2
Anonymous (not verified) commentedThe stylesheet resets padding to 0 on elements that never had padding in the first place. It also changes padding on fieldsets and table cells, which have reasonable padding defined in system.css and the theme's style.css on a more generic basis.
Comment #3
Anonymous (not verified) commentedThis patch makes the search form on the admin page look less customized and specific for this module. In the process, removed the special "find" icon for the search button because that should be theme specific.
Would it be worthwhile to implement the Icons module on Taxonomy Manager? Could it be an optional dependency?
http://drupal.org/project/icon
Comment #4
Anonymous (not verified) commentedThis patch removes all instances of
<div class="clear"></div>from the HTML.In that process, I began to clear up the excessive floating that made the clear class necessary in the taxonomy manager tree. Instead of floating, we can just use inline display.
I also added cursor properties to the term up and term down images.
Comment #5
Anonymous (not verified) commentedgrumble. i'm worried that most of these patches won't be easy to apply because of the inconsistent line endings on this module. i can re-do patches after #298787: coder compliance and mixed LFCR and LF files is fixed.
Comment #6
mh86 commentedHi!
Thanks for working on that. I know, the CSS and HTML got quite complicated during developing.
I'm currently working on re-writing the taxonomy manager tree form element to use drupal-6 new form api features, which is a lot of work to do.
I take a closer look a your patches soon.
And have you been testing the layout in different browsers (if the changes break anything) ?
Matthias
Comment #7
Anonymous (not verified) commentedI suspect my removal of the clears might break layout, but I gave up when I realized that the patches didn't work because of the inconsistent line endings on the module.
Comment #8
Anonymous (not verified) commentedRather than re-do all these patches separately, I've combined them into one big patch. Here's the skinny on the patch:
From what I can tell, only one display feature has been removed. The term description field now uses the inherited width for resizable text areas, so the save button does not appear to the right of the field.
I may have gone too far, but the stylesheet is much smaller now.
I tested this in Firefox and Safari in Garland, Zen, Bluemarine and my own theme.
I've deleted the prior patches on this issue because they've been superseded by this one.
Comment #9
mh86 commentedI committed all changes you have done at EOL.
Additionally the small save buttons for the term name and description have been removed (instead using the new 'Save changes' button).
I mark this issue as fixed. If you think we should still change some things, re-open it.
And thanks a lot for the work you have done!
Comment #10
Anonymous (not verified) commentedmh,
i think this clears up the biggest cross-browser and theme issues
Comment #11
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.