Closed Bug 1207335 Opened 10 years ago Closed 10 years ago

Unify CSS for 'summary boxes'

Categories

(developer.mozilla.org Graveyard :: Code Cleanup, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sebo, Unassigned)

References

Details

Attachments

(1 file)

Currently for different summary boxes we use different CSS classes: .cssprop .htmlelt .audionodebox .summary-box-js .summary-box-events These should be merged to a single class. Also see the discussion starting at bug 1106768 comment 7. Sebastian
Blocks: 1207344
In bug 1106768 comment 15 Jeremie mentioned that we should better use tables instead of lists, so the class(es) should to address this. Sebastian
Maybe we should set up a test page with the HTML we propose to use? (I'm a kind of a visual person)
Attached file summaryBox.html
Well, the layout will not change, I guess. Here's a simple test page demonstrating the current summary box being realized as a table. Sebastian
Jeremie, could you provide an example of where you are already using tables? The CSS code already supports his usage :)
Flags: needinfo?(jeremie.patonnier)
Can we be more specific than summary-box or info-box for this class? property-definitions? syntax-summary?
Agree that summary-box and info-box are pretty general names, though they would still be fine IMO, as they summarize the information regarding a property, element, etc. property-definitions as a more specific name would be ok for me. syntax-summary seems wrong, as the information is unrelated to any syntax. Sebastian
I went with .properties since it is shorter and more descriptive :) There's a pull request in. This layout is formatted properly: <table class="properties"> <tr> <th scope="row">Applies to</th> <td>flex containers</td> </tr> <tr> <th scope="row">Inherited</th> <td>no</td> </tr> </table>
Flags: needinfo?(jeremie.patonnier)
Does the rendered layout still look the same? My new 'cssinfo' template is ready[1] to generate the new structure. Sebastian [1] https://developer.allizom.org/en-US/docs/User%3ASebastianz/Test
We can try it by adding the hardcoded output directly on a test page.
Well, Stephanie's pull request[1] is not merged yet, so I can't see the changes. Sebastian [1] https://github.com/mozilla/kuma/pull/3543
Commits pushed to master at https://github.com/mozilla/kuma https://github.com/mozilla/kuma/commit/a1265b1f974d62f3e9f2cbc11e9a1eefd8654430 Fix Bug 1207335 - Standardize summary-box code Added new general class for the writers to transition all other instances too. https://github.com/mozilla/kuma/commit/3fb4452677348b6e51d405ba5bc8cd3eed1ede76 Merge pull request #3543 from stephaniehobson/bug-1207335-rename-summary-box Fix Bug 1207335 - Standardize summary-box code
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Blocks: 1212767
No longer blocks: 1207344
I just realized that we have a rule with the selector .audionodebox li li, .cssprop li li, .htmlelt li li, .properties li li, .summary-box-events li li, .summary-box-js li li setting 'list-style-type: disc;'. Because we only have one list with the new table structure, the rule does not apply anymore in cases like https://developer.mozilla.org/en-US/docs/Web/CSS/border-width. Therefore the selector should be changed from '.properties li li' to '.properties li'. Sebastian
Oh! Good catch. Can you file a specific bug and make it blocking this one?
Depends on: 1212844
Depends on: 1213548
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: