Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
Bartik theme
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Jul 2010 at 09:00 UTC
Updated:
24 Sep 2010 at 07:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jensimmons commentedYes, it would be good to fix these bugs. I don't think there was any intention to make the text area font be so large.
Embedding screenshots for easy viewing:
Comment #2
aschiwi commentedThe actual problem for the big font issue is this line (#431) in style.css
It makes everything on node/add/* look kinda bad. Not sure what it is needed for but those pages look better without the 115% font-size. It might be a good idea to use a body class to overwrite that part.
I was able to narrow down the second problem to the .filter-wrapper fieldset. Any field (I guess it's any field, tried with textfield and textarea) displayed right below it gets its label hidden behind it. Plus it seems detached from the body field (see screenshot http://drupal.org/files/issues/bartik_admin_2.jpg). The culprit is the fieldset declaration on line 930 of style.css. My suggestion is to add something like
Adding 0 margin and padding to fieldset-wrapper in body.page-node-add also does a lot to make that page prettier.
I feel like this might be a good solution so I'm making this a patch. This is only like my 3rd or 4th patch and my first patch for core so please be kind if I totally messed it up :)
Comment #3
aschiwi commentedFor some reason I forgot to add the fix for the textarea font-size. New patch attached.
Comment #5
aschiwi commentedCould somebody please quickly check my approach before I re-roll the patch? Will re-roll tomorrow.
Comment #6
aschiwi commentedTrying again.
Comment #7
beasley commentedJust a comment on the text size issue. I think the patch will only work when you are creating a new node because then the body will have a class of 'page-node-add'. Once you've created the node and you go back to edit it then the class won't be applied - 'page-node-edit' is applied instead. So if you edit an existing article the text will revert to being big again.
The simplest solution might be to just add the font size where the font stack is declared i.e line 81 in style.css:
I've added a larger line-height, too, because there is virtually no leading when the text goes smaller. This works for me and keeps the text size consistent across all the form boxes that I've come across.
Comment #8
reglogge commented@beasley: You are right, it is much better to generalize this on textarea everywhere (the same issue with too large text appears in the comment form, for example).
The fix should only apply to textarea and input though, because select would become too big with your method. The font-size for a.button is set in a dedicated style anyway.
Patch attached.
Comment #9
reglogge commentedsorry, empty line in #8.
Comment #10
reglogge commentedChanged the title to more accurately reflect the actual issue. This effect doesn't appear in Chrome, Safari or IE since they have different setting in their user agent stylesheets for textarea than Firefox. So we need to explicitly declare the font-size here.
Comment #11
Jeff Burnz commentedFont sizes are now being fixed here all in one hit, since its hard to keep re-rolling each time these small patches get committed: #660614: Remove #block-system-main dependency, fix font sizes, remove crufty CSS
Please help out there, we really need your help to improve the patch in #660614