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 */
|
||||
.main .secondary h3 {
|
||||
font-size: 20px;
|
||||
color: #b8b7b7;
|
||||
color: #AAA;
|
||||
margin: 0 0 8px 0;
|
||||
font-family: "CamboRegular", Georgia, "Times New Roman", Times, serif;
|
||||
font-weight: normal;
|
||||
@ -345,19 +345,17 @@ body {
|
||||
}
|
||||
.main .secondary li.current a.current {
|
||||
color: #b80000;
|
||||
background-color: #e1e1e1;
|
||||
background-color: #EDEDED;
|
||||
}
|
||||
.main .secondary li.section,
|
||||
.main .secondary li.current {
|
||||
background-color: #f1f1f1;
|
||||
background-color: #F3F3F3;
|
||||
}
|
||||
.main .secondary li.section a,
|
||||
.main .secondary li.current a {
|
||||
color: #000;
|
||||
}
|
||||
.main .secondary h3 {
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
|
||||
/* Secondary navigation 2-5 levels deep */
|
||||
.main .secondary ul ul {
|
||||
|
@ -1,14 +1,14 @@
|
||||
<aside class="sidebar unit size1of4">
|
||||
<% if $Menu(2) %>
|
||||
<nav class="secondary">
|
||||
<% with $Level(1) %>
|
||||
<h3>
|
||||
<% loop $Level(1) %>
|
||||
$Title
|
||||
<% end_loop %>
|
||||
$MenuTitle
|
||||
</h3>
|
||||
<ul>
|
||||
<% include SidebarMenu %>
|
||||
</ul>
|
||||
<% end_with %>
|
||||
</nav>
|
||||
<% end_if %>
|
||||
</aside>
|
||||
|
Loading…
Reference in New Issue
Block a user