Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
drupal.css
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
18 Aug 2006 at 12:45 UTC
Updated:
4 Sep 2006 at 07:45 UTC
Jump to comment: Most recent file
Since the new functionality for theme('table' allows us to place headings in the body of a table (http://drupal.org/node/76741), this patch is to clean up the presentation of tables;
without top headers by adding a thin grey top border to tbody,
separation between thead headings and tbody headings and
headings in tbody only has a thin bottom border.
Removed redundant overwrite in watchdog module for headings in the body
To see an implementation: http://drupal.org/node/78105
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | before_after_tables_styles.png | 20.9 KB | nickl |
| #11 | tables-styles_3.patch | 536 bytes | nickl |
| #6 | after_without_heading.png | 9.78 KB | nickl |
| #5 | before_without_heading.png | 9.88 KB | nickl |
| #4 | after_with_heading.png | 9.94 KB | nickl |
Comments
Comment #1
nickl commentedPlease review...
Comment #2
dries commentedAttach a before and after screenshot?
Comment #3
nickl commentedUsed the watchdog event table as an example, there are two conditions that this patch fixes;
table with thead headings and tbody headings and
table without thead headings and tbody headings
Comment #4
nickl commentedAfter with heading
Comment #5
nickl commentedBefore without heading
Comment #6
nickl commentedAfter without heading
Comment #7
m3avrck commentedLooks good, however I would use defaults.css instead of system.css
Defaults.css is for more generalized "default" styles for regular elements. Would be best fit there. After that change this sounds good to me!
Comment #8
nickl commentedI also thought default.css but the rest of the table styles, i.e. the odd and even rows, I found in system.css and thus added this patch there:
Can we have more comments on this please.
Comment #9
m3avrck commentedRight, those are a bit off, debatable. defaults.css should really be about generalized defaults, mostly to do with paddings, margins, offsets, really shouldn't be *theme* related.
However, that might out of the scope of this patch--sorry for the feature creep. :-)
For now, they make sense in either place, I'll work on another issue to further clean and seperate that later, that shouldn't hold this up.
Comment #10
dries commentedThe visual improvements look good, but I leave it up to m3avrck to approve the underlying CSS changes.
Comment #11
nickl commented@Dries Thank you for the comments.
@m3avrck Lets KISS, Rome wasn't built in one day. Here's the bare minimum that should go in. This now only patches watchdog.css to only add theme related fixes, for watchdog event table to clean the table without headings. We can do clean ups after code freeze.
Comment #12
nickl commentedThe new before after...
Comment #13
m3avrck commentedNickl, I'm a bit confused why you posted the bare-minimum patch, the first one you posted was certainly ok. I was more concerned about organization than anything :-)
Anyways, Dries, the first patch Nickl posted is good to go for CSS. After looking through the CSS in Drupal again, his patch is consistent with the current behavior so should be committed.
We'll have another issue later to clean things up a bit more.
Comment #14
nickl commentedSince we do all agree this is the patch: http://drupal.org/files/issues/tables-styles.patch RTBC
Comment #15
m3avrck commentedYes, that looks good to me, ready to commit.
Comment #16
drummCommitted to HEAD.
Looks like this does need more cleanup.
Comment #17
(not verified) commented