Skip to content
Permalink
Browse files
optimize style
  • Loading branch information
pissang committed Jan 2, 2020
1 parent 5e06e52 commit 728628dc6a4971158ae90d04100a6ff0e98720d2
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 68 deletions.

This file was deleted.

@@ -2,11 +2,16 @@ extends basic

block extra_head
<title>ECharts Documentation</title>
style.
html, body {
/* position: sticky should not have overflow parents.*/
overflow-x: hidden;
}
link(rel="stylesheet", href="css/doc-bundle.css")

block content

nav(class='navbar navbar-default navbar-fixed-top')
nav(class='navbar navbar-default navbar-fixed-top doc-nav' id="ec-doc-nav")
if ecWWWLang == 'en'
include ../en/nav
else
@@ -38,6 +43,6 @@ block extra_js

script(type="text/javascript").
document.getElementById('nav-doc').className = 'active';
window.globalArgsExtra.version = '#${homeVersion}';
window.globalArgsExtra.version = '#{homeVersion}';
echartsDoc.init('#ec-doc-main', window.globalArgsExtra);

@@ -59,13 +59,13 @@ $info-height: 120px;
margin: 10px 0;
}

&.single-page {
position: absolute;
top: $info-height;
bottom: 0;
left: 0;
right: 0;
}
// &.single-page {
// position: absolute;
// top: $info-height;
// bottom: 0;
// left: 0;
// right: 0;
// }

section {
padding: 40px 0;
@@ -143,9 +143,9 @@ $info-height: 120px;
margin-left: $single-page-left-width + 20px;
margin-bottom: 20px;
padding: 30px 40px 0 40px;
position: absolute;
right: 0;
left: 0;
// position: absolute;
// right: 0;
// left: 0;
overflow-x: hidden;

h2 {
@@ -5,3 +5,16 @@
top: 50px;
bottom: 0;
}


@media (max-width: 600px) {
#ec-doc-main {
-webkit-overflow-scrolling: touch;
position: static;
}

#ec-doc-nav {
position: static;
margin-bottom: 0;
}
}
@@ -34,11 +34,7 @@ html {
height: 100%;
}
body {
height: 100%;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Helvetica, Arial, sans-serif;
#main {
height: 100%;
}
}

#lowie-main {
@@ -171,10 +167,6 @@ body {
}
}

#main {
position: relative;
}

// pace
.pace {
-webkit-pointer-events: none;
@@ -307,7 +307,7 @@ async function buildSpreadsheet(config) {
function () {
fse.ensureDirSync(path.dirname(jsDestPathEN));
fse.copyFileSync(jsDestPathZH, jsDestPathEN);
reslove();
resolve();
},
function (error) {
console.error(chalk.red(`buildSpreadsheet requirejs failed ${error.message}`));
@@ -36,7 +36,7 @@ fi

# Build doc
echo "Build doc ..."
sh ../incubator-echarts-doc/release.sh --env ${envType}
sh ../echarts-doc/release.sh --env ${envType}
echo "Build doc done."

# Build examples

0 comments on commit 728628d

Please sign in to comment.