This is an automated email from the ASF dual-hosted git repository. shenyi pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-echarts-www.git
The following commit(s) were added to refs/heads/master by this push: new ed7d804 fix new overflow style bug. use current style on ec5 nav ed7d804 is described below commit ed7d80479d423c7dd0c3d242cbb1362a457555c4 Author: pissang <bm2736...@gmail.com> AuthorDate: Fri Dec 4 19:57:58 2020 +0800 fix new overflow style bug. use current style on ec5 nav --- _jade/layouts/next-doc.jade | 2 +- _jade/layouts/next-example.jade | 2 +- _scss/_components.nav.scss | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/_jade/layouts/next-doc.jade b/_jade/layouts/next-doc.jade index 16eeb5e..97d2a67 100644 --- a/_jade/layouts/next-doc.jade +++ b/_jade/layouts/next-doc.jade @@ -36,7 +36,7 @@ block extra_js block global_args_extra script(type="text/javascript"). - document.getElementById('nav-doc').className = 'active'; + document.getElementById('nav-ec5').className = 'active'; window.globalArgsExtra.version = '#{homeVersion}'; echartsDoc.init('#ec-doc-main', window.globalArgsExtra); diff --git a/_jade/layouts/next-example.jade b/_jade/layouts/next-example.jade index 8f6ebd4..a1d2b9c 100644 --- a/_jade/layouts/next-example.jade +++ b/_jade/layouts/next-example.jade @@ -33,7 +33,7 @@ block extra_js block global_args_extra script(type="text/javascript"). - document.getElementById('nav-doc').className = 'active'; + document.getElementById('nav-ec5').className = 'active'; window.globalArgsExtra.version = '#{homeVersion}'; window.globalArgsExtra.cdnRoot = EC_WWW_CDN_PAY_ROOT + '/next/examples'; echartsExample.init('#ec-example-main', window.globalArgsExtra); diff --git a/_scss/_components.nav.scss b/_scss/_components.nav.scss index 7799f1e..66e6a93 100644 --- a/_scss/_components.nav.scss +++ b/_scss/_components.nav.scss @@ -48,12 +48,13 @@ $nav-height: 51px; .new { display: inline-block; - padding: 2px 5px; + padding: 0 5px; background-color: $clr-secondary; color: #fff; font-size: 12px; border-radius: 3px; transform: scale(0.65); + vertical-align: top; } } &.open { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org