[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mediawiki-l
Subject:    Re: [MediaWiki-l] mw-editsection appear only on hover?
From:       matt estela <matt () tokeru ! com>
Date:       2014-03-21 11:51:26
Message-ID: CAPVsX9TsZ6sGUX=D+p0etA6AooGX-=_2paCbcoO6cH1DY1Cptw () mail ! gmail ! com
[Download RAW message or body]

Aha, that works great, thanks!



On 21 March 2014 21:24, Bartosz Dziewoński <matma.rex@gmail.com> wrote:

> .mw-headline and .mw-editsection are sibling elements; the syntax you're
> using would only match if the former was an ancestor of the latter. (Or in
> other words, <span class="mw-headline"></span><span
> class="mw-editsection"></span> vs <span class="mw-headline"><span
> class="mw-editsection"></span></span>.)
>
> You would normally use the CSS sibling selector: `.mw-headline:hover +
> .mw-editsection { … }` (note the '+'), however that is not going to work
> well here because, to click on the section edit link, you would have to
> "un-hover" the headline text itself.
>
> I think you'll have to use the parent hN elements here, listing them all:
> `h1:hover .mw-editsection, h2:hover .mw-editsection, h3:hover
> .mw-editsection, h4:hover .mw-editsection, h5:hover .mw-editsection,
> h6:hover .mw-editsection { … }`.
>
> --
> Matma Rex
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic