mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 11:05:56 +02:00
c71a1aaca2
Universal increase in font size Use same font as ss.org for consistency Remove unnecessary visual noise (borders, box shadows, etc) Use Google PrettyPrint syntax highlighter for improved readability of code sections Fully responsive, with hamburger menu Add "section" linking mode to menu items Add masthead for breadcrumbs, introduction Improved styles for notice/info/warning messaging
66 lines
1.9 KiB
Scheme
66 lines
1.9 KiB
Scheme
<div id="sidebar">
|
|
<div class="box">
|
|
$DocumentationSearchForm
|
|
|
|
<ul class="nav">
|
|
<li><a href="$DocumentationBaseHref" class="top">Home</a></li>
|
|
|
|
<% loop Menu %>
|
|
<% if DefaultEntity %>
|
|
<% loop Children %>
|
|
<li class="$LinkingMode <% if Last %>last<% end_if %>">
|
|
<a href="$Link" class="top">$Title</a>
|
|
|
|
<% if LinkingMode == section || LinkingMode == current %>
|
|
<% if Children %>
|
|
<ul class="$FirstLast">
|
|
<% loop Children %>
|
|
<li><a href="$Link" class="$LinkingMode">$Title</a>
|
|
<% if LinkingMode == section || LinkingMode == current %>
|
|
<% if Children %>
|
|
<ul class="$FirstLast">
|
|
<% loop Children %>
|
|
<li><a href="$Link" class="$LinkingMode">$Title</a></li>
|
|
<% end_loop %>
|
|
</ul>
|
|
<% end_if %>
|
|
<% end_if %>
|
|
</li>
|
|
<% end_loop %>
|
|
</ul><% end_if %>
|
|
<% end_if %>
|
|
</li>
|
|
<% end_loop %>
|
|
<% else %>
|
|
<li class="$LinkingMode <% if Last %>last<% end_if %>"><a href="$Link" class="top">$Title <% if IsFolder %><span class="is-folder">►</span><% end_if %></a>
|
|
<% if LinkingMode == section || LinkingMode == current %>
|
|
<% if Children %>
|
|
<ul class="$FirstLast">
|
|
<% loop Children %>
|
|
<li><a href="$Link" class="$LinkingMode">$Title</a>
|
|
<% if LinkingMode == section || LinkingMode == current %>
|
|
<% if Children %>
|
|
<ul class="$FirstLast">
|
|
<% loop Children %>
|
|
<li><a href="$Link" class="$LinkingMode">$Title</a></li>
|
|
<% end_loop %>
|
|
</ul>
|
|
<% end_if %>
|
|
<% end_if %>
|
|
</li>
|
|
<% end_loop %>
|
|
</ul><% end_if %>
|
|
<% end_if %>
|
|
</li>
|
|
<% end_if %>
|
|
<% end_loop %>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="no-box">
|
|
<ul class="minor-nav">
|
|
<li><a href="{$Link(all)}">Documentation Index</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|