From b3b1e63a1a590945d10d2141344682f08ad1ae86 Mon Sep 17 00:00:00 2001 From: fen Date: Mon, 14 Oct 2013 13:10:01 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E7=95=99=E7=BC=96=E8=BE=91=E5=99=A8?= =?UTF-8?q?=20=E6=B7=BB=E5=8A=A0=E9=99=84=E4=BB=B6=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/css/style.css | 101 ++++++++++++++++++++- admin/file-upload-js.php | 14 +++ admin/file-upload.php | 14 ++- admin/images/ajax-loader.gif | Bin 673 -> 847 bytes admin/write-post.php | 168 +++++++++++++++++++---------------- 5 files changed, 213 insertions(+), 84 deletions(-) diff --git a/admin/css/style.css b/admin/css/style.css index c7d75b3d..f66d2cb1 100644 --- a/admin/css/style.css +++ b/admin/css/style.css @@ -38,6 +38,8 @@ code, pre, .mono { font-family: Menlo, Monaco, Consolas, "Courier New", monospace; } +.p { margin: 1em 0; } + a.balloon-button { display: inline-block; padding: 0 6px; @@ -1712,7 +1714,6 @@ ul.typecho-post-option li:last-child { } #advance-panel li, #upload-panel li { - border: none; } ul.typecho-post-option li ul { @@ -1974,9 +1975,100 @@ ul.autocompleter-choices span.autocompleter-queried { float: left; } +/* + * Hide from both screenreaders and browsers: h5bp.com/u + */ -/* Jquery Timepicker */ +.hidden { + display: none !important; + visibility: hidden; +} + +/* + * Hide only visually, but have it available for screenreaders: h5bp.com/v + */ + +.visuallyhidden { + border: 0; + clip: rect(0 0 0 0); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; +} + +/* + * Extends the .visuallyhidden class to allow the element to be focusable + * when navigated to via the keyboard: h5bp.com/p + */ + +.visuallyhidden.focusable:active, +.visuallyhidden.focusable:focus { + clip: auto; + height: auto; + margin: 0; + overflow: visible; + position: static; + width: auto; +} + +/* + * Hide visually and from screenreaders, but maintain layout + */ + +.invisible { + visibility: hidden; +} + +/* + * Editor + */ +.editor { + margin-bottom: -0.5em; + font-size: .92857em; +} +.editor span { + display: inline-block; + padding: 0 12px; + height: 25px; + line-height: 25px; + cursor: pointer; +} +.editor span:hover { background-color: #E9E9E6; } +.editor span:active { background-color: #467B96; color: #FFF; } +.btnBold { font-weight: bold; } +.btnItalic { font-style: italic; } +.btnLink { text-decoration: underline; } +.btnDel { text-decoration: line-through; } + + +/* + * Upload + */ +#upload-panel { + padding: 10px 15px; + border: 1px dashed #CCC; + background-color: #FFF; + color: #999; + font-size: .92857em; +} +#file-list { + list-style: none; + margin: 0; + padding: 0; +} +#file-list li { padding-top: 5px; } +#file-list .loading { padding-left: 20px; } +#file-list .delete { margin-left: 5px; color: #B94A48; } + + +/* + * Jquery Timepicker + */ #ui-datepicker-div { + display: none; padding: 10px; border: 1px solid #CCC; background: #FFF; @@ -2039,7 +2131,10 @@ ul.autocompleter-choices span.autocompleter-queried { } #ui-datepicker-div .ui-datepicker-close { float: right; } -/* Jquery Tokeninput */ + +/* + * Jquery Tokeninput + */ ul.token-input-list { list-style: none; margin: 0; diff --git a/admin/file-upload-js.php b/admin/file-upload-js.php index c583cb13..3aa418b6 100644 --- a/admin/file-upload-js.php +++ b/admin/file-upload-js.php @@ -6,6 +6,20 @@ if (isset($post) && $post instanceof Typecho_Widget && $post->have()) { $fileParentContent = $page; } ?> + + + diff --git a/admin/file-upload.php b/admin/file-upload.php index d1191235..55670518 100644 --- a/admin/file-upload.php +++ b/admin/file-upload.php @@ -12,7 +12,7 @@ if (isset($post) || isset($page)) { } ?> -