зеркало из https://github.com/mozilla/FlightDeck.git
Added new asset reference to api doc template and corrected doc css styles
This commit is contained in:
Родитель
a86efa8713
Коммит
b2c865593e
|
@ -4,8 +4,8 @@
|
|||
|
||||
{% block head %}
|
||||
<script src="/media/api/js/API.Browser.js"></script>
|
||||
<script type="text/javascript" src="/media/lib/lighter/Lighter.js"></script>
|
||||
<script src="/media/lib/lighter/Fuel.js.js"></script>
|
||||
<script src="/media/lib/lighter/Fuel.js"></script>
|
||||
<script src="/media/lib/lighter/Lighter.js"></script>
|
||||
<script src="/media/lib/lighter/Highlight.js"></script>
|
||||
<script src="/media/lib/tree.js"></script>
|
||||
<script src="/media/jetpack/js/FileTree.js"></script>
|
||||
|
|
|
@ -34,8 +34,9 @@ body {
|
|||
border-bottom: solid 1px #E9EDF0;
|
||||
padding: 0 0 5px;
|
||||
margin: 0 0 15px;
|
||||
color: #666;
|
||||
font-size: 1.4em;
|
||||
color: #2e5186;
|
||||
font-size: 2em;
|
||||
font-weight: bold;
|
||||
font-family: Helvetica, Arial, Tahoma, sans-serif;
|
||||
}
|
||||
|
||||
|
@ -80,15 +81,14 @@ body {
|
|||
}
|
||||
|
||||
#api-body p {
|
||||
line-height: 20px;
|
||||
color: #666;
|
||||
margin: 10px 0;
|
||||
margin: 12px 0;
|
||||
font-size: .95em;
|
||||
}
|
||||
|
||||
#api-body p code {
|
||||
font-size: .95em;
|
||||
font-family: 'Monaco', Courier, Monospace;
|
||||
font-family: 'Monaco', Courier New, Monospace;
|
||||
}
|
||||
|
||||
#api-body p.api-header
|
||||
|
@ -108,7 +108,7 @@ body {
|
|||
margin-top: 30px;
|
||||
font-size: 1.1em;
|
||||
margin-bottom: -10px;
|
||||
font-family: 'Monaco', Courier, Monospace;
|
||||
font-family: 'Monaco', Courier New, Monospace;
|
||||
border: 1px #ECEFF5;
|
||||
border-style: none none solid none;
|
||||
}
|
||||
|
@ -119,7 +119,7 @@ body {
|
|||
margin-top: 30px;
|
||||
margin-bottom: -10px;
|
||||
font-size: 1.1em;
|
||||
font-family: 'Monaco', Courier, Monospace;
|
||||
font-family: 'Monaco', Courier New, Monospace;
|
||||
}
|
||||
|
||||
#api-body p.api-element-header
|
||||
|
@ -132,8 +132,8 @@ body {
|
|||
#api-body .api_name
|
||||
{
|
||||
font-size: 1.0em;
|
||||
font-family: 'Monaco', Courier, Monospace;
|
||||
margin-bottom: -10px;
|
||||
font-family: 'Monaco', Courier New, Monospace;
|
||||
margin: 10px 0 2px;
|
||||
}
|
||||
|
||||
#api-body div.parameter
|
||||
|
@ -147,7 +147,8 @@ body {
|
|||
}
|
||||
|
||||
#api-body div.parameter_set
|
||||
{
|
||||
{
|
||||
margin: 6px 0;
|
||||
margin-left:20px;
|
||||
}
|
||||
|
||||
|
@ -171,7 +172,7 @@ body {
|
|||
margin-top:10px;
|
||||
margin-bottom: -10px;
|
||||
color: #666;
|
||||
font-family: 'Monaco', Courier, Monospace;
|
||||
font-family: 'Monaco', Courier New, Monospace;
|
||||
}
|
||||
|
||||
#api-body dd {
|
||||
|
@ -181,5 +182,23 @@ body {
|
|||
margin-top:10px;
|
||||
margin-bottom: -10px;
|
||||
color: #666;
|
||||
font-family: 'Monaco', Courier, Monospace;
|
||||
}
|
||||
font-family: 'Monaco', Courier New, Monospace;
|
||||
}
|
||||
|
||||
.api_header
|
||||
{
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.api_component
|
||||
{
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.api_component p
|
||||
{
|
||||
color: #888 !important;
|
||||
margin: 2px 0 !important;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ authors:
|
|||
...
|
||||
*/
|
||||
.standardLighter {
|
||||
font-family: Monaco, Courier, Monospace;
|
||||
font-family: Monaco, Courier New, Monospace;
|
||||
font-size: 12px;
|
||||
overflow: auto;
|
||||
white-space: pre-wrap;
|
||||
|
@ -49,11 +49,9 @@ authors:
|
|||
|
||||
/** Pre specific styles */
|
||||
pre.standardLighter {
|
||||
background-color: #fff;
|
||||
padding-left: 15px;
|
||||
padding-right: 5px;
|
||||
padding-top: 5px;
|
||||
padding-bottom: 5px;
|
||||
background-color: #f8f8ff;
|
||||
border: 1px solid #ddd;
|
||||
padding: 11px 11px 10px;
|
||||
}
|
||||
|
||||
/** OL specific styles */
|
||||
|
|
|
@ -7,8 +7,11 @@ license: MIT-style
|
|||
authors:
|
||||
- Jose Prado
|
||||
|
||||
contributors:
|
||||
- Daniel Buchner (Updated script for MooTools 1.3)
|
||||
|
||||
requires:
|
||||
core/1.2.4: '*'
|
||||
core/1.3.0: '*'
|
||||
|
||||
provides: [Lighter]
|
||||
|
||||
|
@ -32,7 +35,7 @@ provides: [Lighter]
|
|||
indent: -1,
|
||||
matchType: "standard",
|
||||
mode: "pre",
|
||||
path: null,
|
||||
path: '/media/lib/lighter/',
|
||||
strict: false
|
||||
},
|
||||
|
||||
|
@ -375,4 +378,4 @@ provides: [Lighter]
|
|||
return str.replace(/\t/g, indent);
|
||||
}
|
||||
|
||||
})();
|
||||
})();
|
||||
|
|
Загрузка…
Ссылка в новой задаче