From 2fe21c9f422b73af10488c88bf2ef3f1f9eab80b Mon Sep 17 00:00:00 2001 From: Yang Lin Date: Fri, 25 Nov 2016 02:38:54 +0800 Subject: [PATCH] Fixes more --- public/resources/css/_translate.scss | 4 ++++ public/translate/cn/translate.js | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/public/resources/css/_translate.scss b/public/resources/css/_translate.scss index a5c91bebfe..8eeacccd12 100644 --- a/public/resources/css/_translate.scss +++ b/public/resources/css/_translate.scss @@ -80,6 +80,10 @@ td, th { h2 { border-bottom: 1px solid $silver; } + p { + margin: 0 0 24px 0; + line-height: 28px; + } } body, .main-nav .main-nav-button,.translated-cn code { diff --git a/public/translate/cn/translate.js b/public/translate/cn/translate.js index 9a066d07ee..e598f8ef1b 100644 --- a/public/translate/cn/translate.js +++ b/public/translate/cn/translate.js @@ -28,7 +28,8 @@ var sourceVisible = localStorage.getItem('source-visible') === 'true'; // ignore example code. if (node.classList.contains('code-example') || - node.tagName === 'CODE-EXAMPLE') { + node.tagName === 'CODE-EXAMPLE' || + node.tagName === 'SCRIPT') { continue; } @@ -51,6 +52,7 @@ var sourceVisible = localStorage.getItem('source-visible') === 'true'; case 'TH': case 'UL': case 'OL': + case 'DIV': processContainer(node); break; default: