fix api display

This commit is contained in:
Rex YE 2016-11-26 14:53:33 +00:00
parent dfe65b3ddb
commit d9c651fa47
4 changed files with 157 additions and 157 deletions

View File

@ -1,20 +1,20 @@
{ {
"currentEnvironment": "JavaScript", "currentEnvironment": "JavaScript",
"version": { "version": {
"raw": "2.2.0-beta.0", "raw": "2.3.0-beta.0",
"major": 2, "major": 2,
"minor": 2, "minor": 3,
"patch": 0, "patch": 0,
"prerelease": [ "prerelease": [
"local" "local"
], ],
"build": "sha.f6eeb79", "build": "sha.dfe65b3",
"version": "2.2.0-local", "version": "2.3.0-local",
"codeName": "snapshot", "codeName": "snapshot",
"isSnapshot": true, "isSnapshot": true,
"full": "2.2.0-local+sha.f6eeb79", "full": "2.3.0-local+sha.dfe65b3",
"branch": "master", "branch": "master",
"commitSHA": "f6eeb79d28bab55ae6d025f37368c4107bbcb408" "commitSHA": "dfe65b3ddbf365abd5b2e0a0b1f5972e38b8bc1c"
}, },
"sections": [ "sections": [
{ {

View File

@ -1,20 +1,20 @@
{ {
"currentEnvironment": "TypeScript", "currentEnvironment": "TypeScript",
"version": { "version": {
"raw": "2.2.0-beta.0", "raw": "2.3.0-beta.0",
"major": 2, "major": 2,
"minor": 2, "minor": 3,
"patch": 0, "patch": 0,
"prerelease": [ "prerelease": [
"local" "local"
], ],
"build": "sha.f6eeb79", "build": "sha.dfe65b3",
"version": "2.2.0-local", "version": "2.3.0-local",
"codeName": "snapshot", "codeName": "snapshot",
"isSnapshot": true, "isSnapshot": true,
"full": "2.2.0-local+sha.f6eeb79", "full": "2.3.0-local+sha.dfe65b3",
"branch": "master", "branch": "master",
"commitSHA": "f6eeb79d28bab55ae6d025f37368c4107bbcb408" "commitSHA": "dfe65b3ddbf365abd5b2e0a0b1f5972e38b8bc1c"
}, },
"sections": [ "sections": [
{ {

View File

@ -11,14 +11,6 @@
} }
} }
api-list .docs-content{
display: block;
}
api-list + .main-footer{
display: block;
}
h1.original-english { h1.original-english {
margin-top: -($unit * 2); margin-top: -($unit * 2);
} }
@ -69,6 +61,14 @@
display: none; display: none;
} }
api-list .docs-content{
display: block;
}
api-list + .main-footer{
display:block;
}
td, th { td, th {
> p:last-child { > p:last-child {
margin-bottom: 0; margin-bottom: 0;
@ -100,7 +100,7 @@ td, th {
} }
} }
body, .main-nav .main-nav-button,.translated-cn code { body, .main-nav .main-nav-button, .translated-cn code {
font-family: "Helvetica Neue", Arial, STHeiti, "Microsoft YaHei", sans-serif, Helvetica, "DroidSansFallback", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3" !important; font-family: "Helvetica Neue", Arial, STHeiti, "Microsoft YaHei", sans-serif, Helvetica, "DroidSansFallback", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3" !important;
} }

View File

@ -3,9 +3,7 @@ var sourceVisible = localStorage.getItem('source-visible') === 'true';
(function ($) { (function ($) {
var content = document.querySelector('article'); var content = document.querySelector('article');
var footer = document.querySelector('.main-footer'); var footer = document.querySelector('.main-footer');
if(!content || !footer){
return;
}
processContainer(content); processContainer(content);
processContainer(footer); processContainer(footer);
@ -17,7 +15,9 @@ var sourceVisible = localStorage.getItem('source-visible') === 'true';
} }
// restore // restore
if (content) {
content.style.display = 'block'; content.style.display = 'block';
}
footer.style.display = 'block'; footer.style.display = 'block';
/** /**