mirror of
https://github.com/silverstripe/silverstripe-simple
synced 2024-10-22 11:05:50 +02:00
Fix for menu showing all sub-pages instead of children only
Replaces (git c8e1253
)
This commit is contained in:
parent
5efbb7586b
commit
e68e63cf4b
@ -294,7 +294,7 @@ body {
|
|||||||
/* Secondary navigation */
|
/* Secondary navigation */
|
||||||
.main .secondary h3 {
|
.main .secondary h3 {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
color: #b8b7b7;
|
color: #AAA;
|
||||||
margin: 0 0 8px 0;
|
margin: 0 0 8px 0;
|
||||||
font-family: "CamboRegular", Georgia, "Times New Roman", Times, serif;
|
font-family: "CamboRegular", Georgia, "Times New Roman", Times, serif;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
@ -345,19 +345,17 @@ body {
|
|||||||
}
|
}
|
||||||
.main .secondary li.current a.current {
|
.main .secondary li.current a.current {
|
||||||
color: #b80000;
|
color: #b80000;
|
||||||
background-color: #e1e1e1;
|
background-color: #EDEDED;
|
||||||
}
|
}
|
||||||
.main .secondary li.section,
|
.main .secondary li.section,
|
||||||
.main .secondary li.current {
|
.main .secondary li.current {
|
||||||
background-color: #f1f1f1;
|
background-color: #F3F3F3;
|
||||||
}
|
}
|
||||||
.main .secondary li.section a,
|
.main .secondary li.section a,
|
||||||
.main .secondary li.current a {
|
.main .secondary li.current a {
|
||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
.main .secondary h3 {
|
|
||||||
color: #aaa;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Secondary navigation 2-5 levels deep */
|
/* Secondary navigation 2-5 levels deep */
|
||||||
.main .secondary ul ul {
|
.main .secondary ul ul {
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
<aside class="sidebar unit size1of4">
|
<aside class="sidebar unit size1of4">
|
||||||
<% if $Menu(2) %>
|
<% if $Menu(2) %>
|
||||||
<nav class="secondary">
|
<nav class="secondary">
|
||||||
<h3>
|
<% with $Level(1) %>
|
||||||
<% loop $Level(1) %>
|
<h3>
|
||||||
$Title
|
$MenuTitle
|
||||||
<% end_loop %>
|
</h3>
|
||||||
</h3>
|
<ul>
|
||||||
<ul>
|
<% include SidebarMenu %>
|
||||||
<% include SidebarMenu %>
|
</ul>
|
||||||
</ul>
|
<% end_with %>
|
||||||
</nav>
|
</nav>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
</aside>
|
</aside>
|
||||||
|
Loading…
Reference in New Issue
Block a user