Modify

Opened 2 years ago

Closed 2 weeks ago

#10362 closed defect (fixed)

CSS rule adds margin to nested children in box with icon

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

Description

boxes.css contains at line 197 this rule:

.wikiextras.box.icon *: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:

.wikiextras.box.icon > *: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 2 weeks ago by mrelbe

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 2 weeks ago by mrelbe

  • Resolution set to fixed
  • Status changed from new to closed

In 14316:

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

Patch by lucid, many thanks! Fixes #10362

Add Comment

Modify Ticket

Action
as closed The owner will remain mrelbe.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.