[dokuwiki] Re: Making index__tree open&close icons clickable links

  • From: Christopher Smith <chris@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 12 Jul 2012 12:29:02 +0100

On 12 Jul 2012, at 12:26, Christopher Smith wrote:

> ***
> You might find it easier to rework the css to move the open/close icons from 
> <li> elements to the anchor links.
> 
> Something along the lines of 
> /* html added to increase specificity of the selector above the existing 
> selector */
> html .dokuwiki ul.idx li.open,
> html .dokuwiki ul.idx li.open {
> list-style: none; 
> }
> .dokuwiki ul.idx li.open > .li > a.idx_dir {
>  background: url("/lib/tpl/dokuwiki/images/open.png") 0 50% no-repeat;
>  margin-left: -1.5em;
>  padding-left: 1.5em;
> }
/* oops 
> .dokuwiki ul.idx li.open > .li > a.idx_dir {
*/
> .dokuwiki ul.idx li.closed > .li > a.idx_dir {
>  background: url("/lib/tpl/dokuwiki/images/closed.png") 0 50% no-repeat;
>  margin-left: -1.5em;
>  padding-left: 1.5em;
> }
> 

note. not tested fully - works in firebug!--
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: