Opened 6 years ago

Closed 3 years ago

#10362 closed defect (fixed)

CSS rule adds margin to nested children in box with icon

Reported by: lucid Owned by: Mikael Relbe
Priority: normal Component: WikiExtrasPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.0


boxes.css contains at line 197 this rule: *:first-child {
    margin-top: 15px;

This makes something like this look weird:

> {{{#! box info
> [[TicketQuery(...)]]
> }}}

because the first child of the ticket query list also gets a margin, not only the list itself.

Should the CSS rule perhaps be changed to something like: > *:first-child {
    margin-top: 15px;

so only the direct first child of the box gets the margin?

Attachments (0)

Change History (2)

comment:1 Changed 3 years ago by Mikael Relbe

Indeed, it looks weird. Funny, I haven't seen this myself all years I've been using this... Thanks for finding this!

comment:2 Changed 3 years ago by Mikael Relbe

Resolution: fixed
Status: newclosed

In 14316:

WikiExtrasPlugin 1.0dev: CSS: Apply vertical margin only to first child content in a box.

Patch by lucid, many thanks! Fixes #10362

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Mikael Relbe.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.