mirror of
https://github.com/silverstripe/doc.silverstripe.org
synced 2024-10-22 15:05:50 +00:00
Tweaked styles and scripts. Use ss.screen.min and ss.print.min
git-svn-id: http://svn.silverstripe.com/projects/ss2doc/branches/v2@113211 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
372c86dabe
commit
c3387c5514
@ -28,7 +28,7 @@ else
|
||||
# git pull must be performed in the folder with the checkout
|
||||
echo "Updating documentation"
|
||||
cd $temp
|
||||
git pull
|
||||
git pull origin master
|
||||
cd ../
|
||||
fi
|
||||
|
||||
|
@ -1,12 +1,9 @@
|
||||
/**
|
||||
* Documentation Viewer Styles.
|
||||
* Documentation Viewer Styles. Uses the base styles from ss.screen.min.css
|
||||
*
|
||||
* @author Will Rossiter <will@silverstripe.com>
|
||||
*/
|
||||
|
||||
/* Reset */
|
||||
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{ margin:0;padding: 0;}
|
||||
|
||||
/* Core */
|
||||
html { background: #f4f4f4;}
|
||||
body { font: 14px/1.1 Arial,sans-serif; color: #444; }
|
||||
@ -17,15 +14,6 @@ a { color: #1389ce; text-decoration: none; }
|
||||
|
||||
p { font-size: 14px; line-height: 22px; margin-bottom: 22px; }
|
||||
|
||||
ul { margin: 11px 0 22px 20px; }
|
||||
li { font-size: 12px; line-height: 13px; margin-bottom: 8px;}
|
||||
|
||||
|
||||
h1 { font-size: 33px; line-height: 33px; margin-bottom: 22px; color: #111; letter-spacing: -1px;}
|
||||
h2 { font-size: 24px; line-height: 33px; margin-bottom: 11px; color: #111; }
|
||||
h3 { font-size: 18px; line-height: 22px; margin-bottom: 11px; color: #111; }
|
||||
h4 { font-size: 16px; margin-bottom: 11px; line-height: 22px;}
|
||||
h5 { font-size: 14px; line-height: 22px; margin-bottom: 11px;}
|
||||
|
||||
pre {
|
||||
margin-bottom: 22px;
|
||||
|
53
themes/docs/templates/DocumentationViewer.ss
vendored
Normal file
53
themes/docs/templates/DocumentationViewer.ss
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<% base_tag %>
|
||||
<meta charset="utf-8" />
|
||||
<title><% if Title %>$Title<% end_if %> SilverStripe Documentation</title>
|
||||
|
||||
<% require css(themes/ssorgsites/css/ss.screen.min.css, screen) %>
|
||||
<% require css(themes/ssorgsites/css/ss.print.min.css, print) %>
|
||||
<% require themedCSS(DocumentationViewer) %>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="container">
|
||||
<div id="header">
|
||||
<h1><a href="$Link"><% _t('SILVERSTRIPEDOCUMENTATION', 'SilverStripe Documentation') %></a></h1>
|
||||
|
||||
<div id="language">
|
||||
$LanguageForm
|
||||
</div>
|
||||
|
||||
<div id="breadcrumbs">
|
||||
<% include DocBreadcrumbs %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="layout">
|
||||
<div id="versions-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 %>
|
||||
<% end_control %>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="content" class="typography">
|
||||
$Layout
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
<p>Documentation powered by <a href="http://www.silverstripe.org">SilverStripe</a>. Found a typo? <a href="http://github.com/chillu/silverstripe-doc-restructuring">Contribute to the Documentation Project</a>.</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
4
themes/docs/templates/Page.ss
vendored
4
themes/docs/templates/Page.ss
vendored
@ -9,7 +9,9 @@
|
||||
|
||||
<link rel="shortcut icon" href="favicon.ico">
|
||||
|
||||
<% require css(themes/ssorgsites/css/ss.all.min.css) %>
|
||||
<% require css(themes/ssorgsites/css/ss.screen.min.css, screen) %>
|
||||
<% require css(themes/ssorgsites/css/ss.print.min.css, print) %>
|
||||
|
||||
<% require css(themes/docs/css/documentation.css) %>
|
||||
</head>
|
||||
<body>
|
||||
|
Loading…
x
Reference in New Issue
Block a user