From 11e6f9846b3c718fabb1252326a46f567a38afb0 Mon Sep 17 00:00:00 2001 From: fen Date: Sun, 3 Nov 2013 20:15:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A2=84=E8=A7=88=E9=AB=98?= =?UTF-8?q?=E5=BA=A6=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/css/style.css | 16 +++++++++------- admin/scss/components/_editor.scss | 16 ++++++++-------- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/admin/css/style.css b/admin/css/style.css index 13cc9fdc..86cb2c10 100644 --- a/admin/css/style.css +++ b/admin/css/style.css @@ -1150,7 +1150,7 @@ a.operate-reply { /* 编辑器全屏 */ .fullscreen #wmd-button-bar, .fullscreen #text, .fullscreen #wmd-preview, .fullscreen .submit { - position: absolute; + position: fixed; top: 0; width: 50%; background: #FFF; @@ -1161,13 +1161,13 @@ a.operate-reply { .fullscreen #wmd-button-bar { left: 0; padding: 13px 20px; + border-bottom: 1px solid #F3F3F0; z-index: 1000; } .fullscreen #text { - top: 52px; + top: 53px; left: 0; padding: 20px; border: none; - border-top: 1px solid #F3F3F0; outline: none; -webkit-border-radius: 0; -moz-border-radius: 0; @@ -1175,19 +1175,21 @@ a.operate-reply { -o-border-radius: 0; border-radius: 0; } .fullscreen #wmd-preview { - top: 52px; + position: absolute; + top: 53px; right: 0; padding: 5px 20px; - border: 1px solid #F3F3F0; - border-width: 1px 0 0 1px; + border-left: 1px solid #F3F3F0; background: #F6F6F3; overflow: auto; } .fullscreen #wmd-preview code, .fullscreen #wmd-preview pre { background: #F0F0EC; } .fullscreen .submit { + z-index: 1000; right: 0; margin: 0; - padding: 10px 20px; } + padding: 10px 20px; + border-bottom: 1px solid #F3F3F0; } /** * Jquery Timepicker diff --git a/admin/scss/components/_editor.scss b/admin/scss/components/_editor.scss index 76df9a2e..425c4113 100644 --- a/admin/scss/components/_editor.scss +++ b/admin/scss/components/_editor.scss @@ -95,7 +95,7 @@ /* 编辑器全屏 */ .fullscreen { #wmd-button-bar, #text, #wmd-preview, .submit { - position: absolute; + position: fixed; top: 0; width: 50%; background: #FFF; @@ -105,25 +105,23 @@ #wmd-button-bar { left: 0; padding: 13px 20px; + border-bottom: 1px solid #F3F3F0; z-index: 1000; } #text { - top: 52px; + top: 53px; left: 0; padding: 20px; border: none; - border-top: 1px solid #F3F3F0; outline: none; @include border-radius(0); } #wmd-preview { - top: 52px; + position: absolute; + top: 53px; right: 0; padding: 5px 20px; - border: 1px solid #F3F3F0; - border-width: 1px 0 0 1px; - // height: 100%; - // @include calc(height, "100% - 52px"); + border-left: 1px solid #F3F3F0; background: #F6F6F3; overflow: auto; code, pre { @@ -131,8 +129,10 @@ } } .submit { + z-index: 1000; right: 0; margin: 0; padding: 10px 20px; + border-bottom: 1px solid #F3F3F0; } } \ No newline at end of file