Modify

Opened 12 years ago

Closed 10 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

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 10 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 10 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
Action
as closed The owner will remain Mikael Relbe.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.