Skip to content

Commit 2ad30c1

Browse files
committed
fix toc active and current
1 parent 88bc498 commit 2ad30c1

1 file changed

Lines changed: 23 additions & 12 deletions

File tree

Resources/Private/Less/modules/sidebar.less

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ ul.toc {
520520
overflow-y: auto;
521521
-webkit-overflow-scrolling: touch;
522522
height: 100%;
523-
padding-bottom: 40px;
523+
524524
.metadata-title {
525525
display: none;
526526
}
@@ -548,7 +548,7 @@ ul.toc {
548548
}
549549
li {
550550
position: relative;
551-
&.submenu {
551+
&.tx-dlf-tableofcontents-submenu {
552552
&:before {
553553
position: absolute;
554554
top: 12px;
@@ -561,15 +561,16 @@ ul.toc {
561561
border-left-color: #fff;
562562
}
563563
}
564-
&.active {
564+
&.tx-dlf-tableofcontents-active {
565565
background: rgba(255,255,255,0.1);
566566
&:before {
567567
left: 8px;
568568
.transform(rotate(90deg));
569569
}
570570
}
571-
.current {
572-
& > a, & > span.a {
571+
&.tx-dlf-tableofcontents-current {
572+
& > a span.title /*,
573+
& > a, & > span.a*/ {
573574
background: rgba(255,255,255,0.6);
574575
color: @base-blue;
575576
font-weight: 700;
@@ -593,7 +594,7 @@ ul.toc {
593594
// We have no type icons in DFG-Viewer, yet.
594595
display: none;
595596
}
596-
&.submenu {
597+
&.tx-dlf-tableofcontents-submenu {
597598
&:before {
598599
position: absolute;
599600
top: 12px;
@@ -606,15 +607,16 @@ ul.toc {
606607
border-left-color: #fff;
607608
}
608609
}
609-
&.active {
610+
&.tx-dlf-tableofcontents-active {
610611
background: rgba(255,255,255,0.1);
611612
&:before {
612613
left: 8px;
613614
.transform(rotate(90deg));
614615
}
615616
}
616-
.current {
617-
& > a, & > span.a {
617+
&.tx-dlf-tableofcontents-current {
618+
& > a span.title /*
619+
& > a, & > span.a*/ {
618620
background: rgba(255,255,255,0.6);
619621
color: @base-blue;
620622
font-weight: 700;
@@ -623,13 +625,22 @@ ul.toc {
623625
}
624626
a, span.a { padding-left: 30px; }
625627
ul {
626-
&:before, li.submenu:before { left: 30px; }
628+
&:before,
629+
li.tx-dlf-tableofcontents-submenu:before {
630+
left: 30px;
631+
}
627632
a, span.a { padding-left: 50px; }
628633
ul {
629-
&:before, li.submenu:before { left: 50px; }
634+
&:before,
635+
li.tx-dlf-tableofcontents-submenu:before {
636+
left: 50px;
637+
}
630638
a, span.a { padding-left: 70px; }
631639
ul {
632-
&:before, li.submenu:before { left: 70px; }
640+
&:before,
641+
li.tx-dlf-tableofcontents-submenu:before {
642+
left: 70px;
643+
}
633644
a, span.a { padding-left: 90px; }
634645
}
635646
}

0 commit comments

Comments
 (0)