From c719c49872c1854b8089b8f37e2c771e7fbf41b8 Mon Sep 17 00:00:00 2001 From: fen Date: Tue, 15 Oct 2013 21:08:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E9=99=84=E4=BB=B6=E7=BC=96?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/css/style.css | 29 +++++++++++++------- admin/manage-users.php | 6 ++--- admin/media.php | 36 ++++++++++++++----------- admin/write-js.php | 1 + admin/write-post.php | 2 +- var/Widget/Contents/Attachment/Edit.php | 2 +- var/Widget/Options/Permalink.php | 2 +- 7 files changed, 47 insertions(+), 31 deletions(-) diff --git a/admin/css/style.css b/admin/css/style.css index 07858e99..c4f28704 100644 --- a/admin/css/style.css +++ b/admin/css/style.css @@ -313,9 +313,8 @@ button.primary:active, button.primary.active { } .loading { - background-image: url(../images/ajax-loader.gif); - background-position: left center; - background-repeat: no-repeat; + padding-left: 20px; + background: transparent url(../images/ajax-loader.gif) no-repeat left center; } @@ -1851,7 +1850,7 @@ ul.typecho-list-notable li .loading { .typecho-page-main .typecho-mini-panel .tag-selection a { } - +/* .typecho-attachment-photo-box .description { } @@ -1878,8 +1877,8 @@ ul.typecho-list-notable li .loading { _display: inline; position: relative; } - -.typecho-attachment-photo-box img { +*/ +.typecho-attachment-photo { border: 1px solid #E6E6E3; max-width: 100%; } @@ -1932,11 +1931,11 @@ ul.typecho-list-notable li .loading { background-position: 0 -144px; } -.typecho-attachment-photo-box .typecho-mime { +/*.typecho-attachment-photo-box .typecho-mime { bottom: -6px; margin-right: 3px; float: left; -} +}*/ /* * Hide from both screenreaders and browsers: h5bp.com/u @@ -2021,14 +2020,24 @@ ul.typecho-list-notable li .loading { #upload-panel.drag, .tDnD_whileDrag { background-color: #FFFBCC; } +.tDnD_whileDrag { + -ms-transform-origin: 0 0; + -moz-transform-origin: 0 0; + -webkit-transform-origin: 0 0; + transform-origin: 0 0; + + -ms-transform: rotate(2deg); + -moz-transform: rotate(2deg); + -webkit-transform: rotate(2deg); + webkit-transform: rotate(2deg); +} #file-list { list-style: none; margin: 0; padding: 0; } -#file-list li { padding-top: 5px; } -#file-list .loading { padding-left: 20px; } +#file-list li { margin-top: 5px; } #file-list .delete { margin-left: 5px; color: #B94A48; } diff --git a/admin/manage-users.php b/admin/manage-users.php index d3201bf2..2d648666 100644 --- a/admin/manage-users.php +++ b/admin/manage-users.php @@ -32,12 +32,12 @@ include 'menu.php';
- + + - - + diff --git a/admin/media.php b/admin/media.php index 7603a226..841ec51a 100644 --- a/admin/media.php +++ b/admin/media.php @@ -11,23 +11,29 @@ Typecho_Widget::widget('Widget_Contents_Attachment_Edit')->to($attachment);
-
- attachment->isImage): ?> -

<?php $attachment->attachment->name(); ?>

- - -
-
    - attachment->mime); ?> -
  • attachment->name(); ?> attachment->size / 1024)); ?> Kb
  • -
  • - -
  • -
-
+ attachment->isImage): ?> +

<?php $attachment->attachment->name(); ?>

+ + +

+ attachment->mime); ?> + + attachment->name(); ?> + attachment->size / 1024)); ?> Kb +

+ +

+ +

+ +
+ 将要替换的文件拖放到这里 或者 选择替换文件 +
    +
  • 上传中
  • +
-
+
form()->render(); ?>
diff --git a/admin/write-js.php b/admin/write-js.php index 4ebd8347..9b3544a7 100644 --- a/admin/write-js.php +++ b/admin/write-js.php @@ -96,6 +96,7 @@ $(document).ready(function() { // 高级选项控制 $('#advance-panel-btn').click(function() { $('#advance-panel').toggle(); + $(this).toggleClass('fold'); return false; }); diff --git a/admin/write-post.php b/admin/write-post.php index e0a746ee..f1d5212c 100644 --- a/admin/write-post.php +++ b/admin/write-post.php @@ -91,7 +91,6 @@ Typecho_Widget::widget('Widget_Contents_Post_Edit')->to($post);

-
pass('editor', true)): ?>
@@ -125,6 +124,7 @@ Typecho_Widget::widget('Widget_Contents_Post_Edit')->to($post);
+ option($post); ?> have()): ?> diff --git a/var/Widget/Contents/Attachment/Edit.php b/var/Widget/Contents/Attachment/Edit.php index 78ab575b..e7f21d8a 100644 --- a/var/Widget/Contents/Attachment/Edit.php +++ b/var/Widget/Contents/Attachment/Edit.php @@ -117,7 +117,7 @@ class Widget_Contents_Attachment_Edit extends Widget_Contents_Post_Edit implemen Typecho_Widget_Helper_Form::POST_METHOD); /** 附件名称 */ - $name = new Typecho_Widget_Helper_Form_Element_Text('name', NULL, $this->title, _t('标题*')); + $name = new Typecho_Widget_Helper_Form_Element_Text('name', NULL, $this->title, _t('标题 *')); $form->addInput($name); /** 附件缩略名 */ diff --git a/var/Widget/Options/Permalink.php b/var/Widget/Options/Permalink.php index ec76820c..8f9a37d2 100644 --- a/var/Widget/Options/Permalink.php +++ b/var/Widget/Options/Permalink.php @@ -214,7 +214,7 @@ RewriteRule . {$basePath}index.php [L] } else if (!isset($patterns[$postPatternValue])) { $customPatternValue = $this->decodeRule($postPatternValue); } - $patterns['custom'] = _t('个性化定义') . ' '; + $patterns['custom'] = _t('个性化定义') . ' '; $postPattern = new Typecho_Widget_Helper_Form_Element_Radio('postPattern', $patterns, $postPatternValue, _t('自定义文章路径'), _t('可用参数:{cid} 日志ID、{slug} 日志缩略名、{category} 分类、{year} 年、{month} 月、{day} 日
选择一种合适的文章静态路径风格, 使得你的网站链接更加友好.