Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Highlighting the last item in the Site Tree

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1196 Views
  • Nathan Cox
    Avatar
    Community Member
    99 Posts

    Highlighting the last item in the Site Tree Link to this post

    I noticed that the last item on any level of the site tree (or should I say the last child of any item) doesn't highlight correctly when you select it.
    This is because the .last class is overriding the background for the .current class.

    On line 50 of /jsparty/tree/tree.css, change

    ul.tree span.a.last {

    to

    ul.tree .a.last {

    It makes the rule is less specific, so it's overwritten by .current and the background colour appears as it should.

  • Tim
    Avatar
    Core Development Team
    201 Posts

    Re: Highlighting the last item in the Site Tree Link to this post

    Thanks for these patches Nathan - these will be applied to the main branch in the latter this week.

  • Andy
    Avatar
    230 Posts

    Re: Highlighting the last item in the Site Tree Link to this post

    Applied

    1196 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.