mirror of
https://github.com/silverstripe/doc.silverstripe.org
synced 2024-10-22 15:05:50 +00:00
MINOR: tweaks to the top header to display all modules
git-svn-id: http://svn.silverstripe.com/projects/ss2doc/branches/v2@119998 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
3c62affa6a
commit
e7e4d3be77
@ -9,12 +9,12 @@ a { color: #0973A6; text-decoration: none; }
|
||||
a:hover,
|
||||
a:focus { text-decoration: underline;}
|
||||
|
||||
p { font-size: 12px; line-height: 18px; margin-bottom: 18px; }
|
||||
p { font-size: 12px; line-height: 16px; margin-bottom: 16px; }
|
||||
/* p { font-size: 14px; line-height: 22px; margin-bottom: 22px; } */
|
||||
|
||||
|
||||
|
||||
#Form_LanguageForm { margin-top: 18px; }
|
||||
#Form_LanguageForm { margin-top: 16px; }
|
||||
.clear { clear: both; }
|
||||
|
||||
|
||||
@ -28,31 +28,29 @@ p { font-size: 12px; line-height: 18px; margin-bottom: 18px; }
|
||||
|
||||
|
||||
/* Content */
|
||||
#layout { }
|
||||
#content { }
|
||||
.typography h1+p { font-size: 16px; line-height: 1.25em; }
|
||||
.typography h1+p { font-size: 18px; line-height: 24px; }
|
||||
|
||||
/* Versions */
|
||||
#versions-nav {
|
||||
/* documentation navigation */
|
||||
.documentation-nav {
|
||||
clear: both;
|
||||
margin: 0 0 5px;
|
||||
overflow: hidden; color: #999999;
|
||||
font-size: 11px;
|
||||
}
|
||||
#versions-nav h2 { font-size: 11px; font-weight: normal; float: left; margin-right: 5px;}
|
||||
#versions-nav ul { margin: 0; padding: 0; float: left;}
|
||||
#versions-nav .current {
|
||||
background-color: #0973A6;
|
||||
margin-left: 5px;
|
||||
padding: 1px 7px;
|
||||
border-radius: 8px;
|
||||
-moz-border-radius: 8px;
|
||||
-webkit-border-radius: 8px;
|
||||
color: #fff;
|
||||
}
|
||||
#versions-nav li { display: inline; list-style: none; padding: 0; margin: 0; font-size: 11px; }
|
||||
#versions-nav li a { margin-left: 5px; padding: 0px; }
|
||||
#versions-nav li a.current { background: #fff; color: #333;}
|
||||
.documentation-nav h2 { font-size: 11px; font-weight: normal; float: left; margin-right: 5px;}
|
||||
.documentation-nav ul { margin: 0; padding: 0; float: left;}
|
||||
.documentation-nav li { display: inline; list-style: none; padding: 0; margin: 0; font-size: 11px; }
|
||||
.documentation-nav li a { margin-left: 5px; padding: 0px; }
|
||||
.documentation-nav li a.current {
|
||||
background: #0973A6; color: #fff; font-weight: bold;
|
||||
padding: 4px;
|
||||
-moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px;
|
||||
}
|
||||
.documentation-nav li a.current:hover,
|
||||
.documentation-nav li a.current:focus {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#left-column { width: 640px; float: left; }
|
||||
|
||||
#right-column {
|
||||
|
26
themes/docs/templates/DocumentationViewer.ss
vendored
26
themes/docs/templates/DocumentationViewer.ss
vendored
@ -24,15 +24,10 @@
|
||||
<body>
|
||||
<div id="container">
|
||||
<div id="header">
|
||||
<div id="language">
|
||||
$LanguageForm
|
||||
</div>
|
||||
|
||||
<h1>
|
||||
<a href="http://www.silverstripe.org" title="Visit SilverStripe.org" class="ssLogo"> </a>
|
||||
<a href="$Top.Link" title="Documentation"><span><% _t('SILVERSTRIPEDOCUMENTATION', 'Documentation') %></span></a>
|
||||
</h1>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
|
||||
@ -45,17 +40,24 @@
|
||||
<div id="search">
|
||||
$DocumentationSearchForm
|
||||
</div>
|
||||
|
||||
|
||||
<% if Entities %>
|
||||
<div id="entities-nav" class="documentation-nav">
|
||||
<h2>Modules:</h2>
|
||||
<ul>
|
||||
<% control Entities %>
|
||||
<li><a href="$Link" class="$LinkingMode">$Title</a></li>
|
||||
<% end_control %>
|
||||
</ul>
|
||||
</div>
|
||||
<% end_if %>
|
||||
|
||||
<% if Versions %>
|
||||
<div id="versions-nav">
|
||||
<div id="versions-nav" class="documentation-nav">
|
||||
<h2>Versions:</h2>
|
||||
<ul>
|
||||
<% control Versions %>
|
||||
<% if MajorRelease %>
|
||||
<li class="major-release"><a href="$Link" class="$LinkingMode">$Title</a></li>
|
||||
<% else %>
|
||||
<li class="module-only"><a href="$Link" class="$LinkingMode">$Title</a></li>
|
||||
<% end_if %>
|
||||
<li><a href="$Link" class="$LinkingMode">$Title</a></li>
|
||||
<% end_control %>
|
||||
</ul>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user