From b71ff1cf02d93b4a8cd13bb62834312128d889b9 Mon Sep 17 00:00:00 2001 From: fen Date: Thu, 24 Oct 2013 22:36:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=85=A8=E5=B1=8F=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/css/style.css | 41 ++++++++++++++++++++++++++++++ admin/scss/components/_editor.scss | 36 ++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) diff --git a/admin/css/style.css b/admin/css/style.css index 13b13894..0b0a8a88 100644 --- a/admin/css/style.css +++ b/admin/css/style.css @@ -1129,6 +1129,47 @@ a.operate-reply { border: 1px solid #E9E9E6; border-width: 2px 0 0 0; } +/* 编辑器全屏 */ +.fullscreen #wmd-button-bar { + position: absolute; + top: 38px; + left: 0; + width: 50%; + z-index: 999; + outline: none; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; } +.fullscreen #text { + position: absolute; + top: 0; + left: 0; + padding-top: 6px; + width: 50%; + background-color: #FFF; + z-index: 1000; + height: 38px; + border-right: 1px solid #D9D9D6; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + -webkit-border-radius: 0; + -moz-border-radius: 0; + -ms-border-radius: 0; + -o-border-radius: 0; + border-radius: 0; } +.fullscreen #wmd-preview { + position: absolute; + top: 0; + right: 0; + width: 50%; + background-color: #FFF; + z-index: 999; + overflow: auto; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; } + /** * Jquery Timepicker */ diff --git a/admin/scss/components/_editor.scss b/admin/scss/components/_editor.scss index f12a53f4..a7272f13 100644 --- a/admin/scss/components/_editor.scss +++ b/admin/scss/components/_editor.scss @@ -85,4 +85,40 @@ border: 1px solid #E9E9E6; border-width: 2px 0 0 0; } +} + +/* 编辑器全屏 */ +.fullscreen { + #wmd-button-bar { + position: absolute; + top: 38px; + left: 0; + width: 50%; + z-index: 999; + outline: none; + @include box-sizing(border-box); + } + #text { + position:absolute; + top: 0; + left: 0; + padding-top: 6px; + width: 50%; + background-color: #FFF; + z-index: 1000; + height: 38px; + border-right: 1px solid #D9D9D6; + @include box-sizing(border-box); + @include border-radius(0); + } + #wmd-preview { + position: absolute; + top: 0; + right: 0; + width:50%; + background-color: #FFF; + z-index: 999; + overflow: auto; + @include box-sizing(border-box); + } } \ No newline at end of file