From eeddef6a1fc9a94932f34d2e974cf1e4ab39ebf0 Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Fri, 18 Oct 2019 12:23:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=20docs=20=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/components/App.jsx | 10 +++++----- examples/style.scss | 38 ++++++++++++++++++++----------------- 2 files changed, 26 insertions(+), 22 deletions(-) diff --git a/examples/components/App.jsx b/examples/components/App.jsx index 8e80fafd0..3cbc3ad64 100644 --- a/examples/components/App.jsx +++ b/examples/components/App.jsx @@ -526,11 +526,6 @@ function isActive(link, location) { } const themes = [ - { - label: 'Dark', - ns: 'dark-', - value: 'dark' - }, { label: '默认主题', ns: 'a-', @@ -541,6 +536,11 @@ const themes = [ label: '百度云舍', ns: 'cxd-', value: 'cxd' + }, + { + label: 'Dark', + ns: 'dark-', + value: 'dark' } ]; diff --git a/examples/style.scss b/examples/style.scss index d54e8cccc..9949e7305 100644 --- a/examples/style.scss +++ b/examples/style.scss @@ -3,17 +3,20 @@ @import '../scss/variables'; -.page-play, .page-edit { +.page-play, +.page-edit { &:before { display: table; content: " "; } + &:after { clear: both; display: block; content: ""; height: 0; } + .app-content { position: absolute; top: 50px; @@ -22,35 +25,36 @@ left: 0; right: 0; } + .app-content-body { height: 100%; } } .resizer { - position: absolute; - top: 0; - bottom: 0; - margin-left: -2px; - width: 4px; - background: lighten($dark, 20%); - z-index: 1; - cursor: col-resize; + position: absolute; + top: 0; + bottom: 0; + margin-left: -2px; + width: 4px; + background: lighten($dark, 20%); + z-index: 1; + cursor: col-resize; - &:hover { - background: $dark; - } + &:hover { + background: $dark; + } } .doc-shcema-preview-popover { box-shadow: none; margin-top: -1px; - padding: 0 45px; - left: 0!important; + padding: 0 45px !important; + left: 0 !important; width: 100%; max-width: 980px; z-index: 1; - background: transparent; + background: transparent !important; border: none; .doc-schema-preview { @@ -69,7 +73,7 @@ // right: 175px; // } -.amis-schema-editor.fix-settings .amis-schema-editor-settings-inner .amis-schema-editor-config-tab > .tab-content, -.amis-schema-editor.fix-settings .amis-schema-editor-settings-inner .amis-schema-editor-code-tab > .tab-content { +.amis-schema-editor.fix-settings .amis-schema-editor-settings-inner .amis-schema-editor-config-tab>.tab-content, +.amis-schema-editor.fix-settings .amis-schema-editor-settings-inner .amis-schema-editor-code-tab>.tab-content { bottom: 50px; } \ No newline at end of file