Here's a patch to consider.
1. Tablefield still declares it's own even/odd row colors, which clashes horribly with both Seven and Bartik (which don't even have the same colors).
The solution here is to declare the background-color of the input element as transparent.
2. I killed the 2px border of the header row, since it looks ugly and is generally not done on D7 (table headers don't have bottom borders in D7)
3. I killed the float:left of elements, so that they can be centered (which is important when having non-editable cells)
4. My editor likes to fix whitespace, so the patch is a bit bigger than it could be.
Attaching a screenshot as well. You'll notice the header and first column not being editable, but that's another patch (which I'm also about to post)
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | bartik.png | 37.88 KB | bojanz |
| #1 | bartik2.png | 37.37 KB | bojanz |
| example.png | 32.1 KB | bojanz | |
| better_css.patch | 6 KB | bojanz |
Comments
Comment #1
bojanz commentedNote that "label" is bold in D7, hence the bold look of non-editable cells.
This can be overriden if required.
I'm attaching a screenshot of how this looks on Bartik.
As you can see, there's a problem, it's very hard to see that the fields are editable because of the darker colors.
Perhaps it would be a good idea to make the textboxes white when there are locked default values (since in that case the table won't drown in a sea of white)?
Attaching a screenshot of that possibility as well.
Comment #2
kevin hankens commentedSee http://drupal.org/node/1051070#comment-4049818
Thanks!