From ee73a638ba8e20def202ec7cade2c24177d36c5a Mon Sep 17 00:00:00 2001 From: joyqi Date: Sat, 21 Dec 2013 09:58:26 +0800 Subject: [PATCH 1/5] fixed #142 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 尼玛,写反了。。。 --- var/Typecho/Validate.php | 3 ++- var/Widget/Options/General.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/var/Typecho/Validate.php b/var/Typecho/Validate.php index f186c0d9..f5e8fab0 100644 --- a/var/Typecho/Validate.php +++ b/var/Typecho/Validate.php @@ -110,7 +110,8 @@ class Typecho_Validate // Cycle through the rules and test for errors foreach ($rules as $key => $rules) { $this->_key = $key; - $data[$key] = (0 == strlen($data[$key])) ? NULL : $data[$key]; + $data[$key] = (is_array($data[$key]) ? 0 == count($data[$key]) + : 0 == strlen($data[$key])) ? NULL : $data[$key]; foreach ($rules as $params) { $method = $params[0]; diff --git a/var/Widget/Options/General.php b/var/Widget/Options/General.php index 66c69705..5d0bced3 100644 --- a/var/Widget/Options/General.php +++ b/var/Widget/Options/General.php @@ -148,7 +148,7 @@ class Widget_Options_General extends Widget_Abstract_Options implements Widget_I } $settings = $this->request->from('title', 'siteUrl', 'description', 'keywords', 'allowRegister', 'timezone', 'attachmentTypes'); - $settings['siteUrl'] = rtrim('/', $settings['siteUrl']); + $settings['siteUrl'] = rtrim($settings['siteUrl'], '/'); $attachmentTypes = array(); if ($this->isEnableByCheckbox($settings['attachmentTypes'], '@image@')) { From e93ac75aedc3a6de6ce82350ee128fbf6fcc0941 Mon Sep 17 00:00:00 2001 From: fen Date: Sat, 21 Dec 2013 12:02:22 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E5=87=8F=E5=B0=91=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E5=AF=B9=E5=90=8E=E5=8F=B0=E7=9A=84=E4=BE=9D?= =?UTF-8?q?=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/themes/default/grid.css | 563 ++++++++++++++++++++++++++++++++++ usr/themes/default/header.php | 8 +- 2 files changed, 567 insertions(+), 4 deletions(-) create mode 100644 usr/themes/default/grid.css diff --git a/usr/themes/default/grid.css b/usr/themes/default/grid.css new file mode 100644 index 00000000..c7a31053 --- /dev/null +++ b/usr/themes/default/grid.css @@ -0,0 +1,563 @@ +/* + * Bento Grid System + * Source: https://github.com/fenbox/bento + * Version: 1.2.7 + * Update: 2013.11.15 + */ +.colgroup [class*="col-"] { + float: left; + min-height: 1px; + padding-right: 10px; + padding-left: 10px; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; } + +.colgroup [class*="push-"], +.colgroup [class*="pull-"] { + position: relative; } + +/* + * Mobile and up + */ +.col-mb-1 { + width: 8.33333%; } + +.col-mb-2 { + width: 16.66667%; } + +.col-mb-3 { + width: 25%; } + +.col-mb-4 { + width: 33.33333%; } + +.col-mb-5 { + width: 41.66667%; } + +.col-mb-6 { + width: 50%; } + +.col-mb-7 { + width: 58.33333%; } + +.col-mb-8 { + width: 66.66667%; } + +.col-mb-9 { + width: 75%; } + +.col-mb-10 { + width: 83.33333%; } + +.col-mb-11 { + width: 91.66667%; } + +.col-mb-12 { + width: 100%; } + +/* + * Tablet and up + */ +@media (min-width: 768px) { + .container { + margin-left: auto; + margin-right: auto; + max-width: 728px; } + + .col-tb-1 { + width: 8.33333%; } + + .col-tb-2 { + width: 16.66667%; } + + .col-tb-3 { + width: 25%; } + + .col-tb-4 { + width: 33.33333%; } + + .col-tb-5 { + width: 41.66667%; } + + .col-tb-6 { + width: 50%; } + + .col-tb-7 { + width: 58.33333%; } + + .col-tb-8 { + width: 66.66667%; } + + .col-tb-9 { + width: 75%; } + + .col-tb-10 { + width: 83.33333%; } + + .col-tb-11 { + width: 91.66667%; } + + .col-tb-12 { + width: 100%; } + + .col-tb-offset-0 { + margin-left: 0%; } + + .col-tb-offset-1 { + margin-left: 8.33333%; } + + .col-tb-offset-2 { + margin-left: 16.66667%; } + + .col-tb-offset-3 { + margin-left: 25%; } + + .col-tb-offset-4 { + margin-left: 33.33333%; } + + .col-tb-offset-5 { + margin-left: 41.66667%; } + + .col-tb-offset-6 { + margin-left: 50%; } + + .col-tb-offset-7 { + margin-left: 58.33333%; } + + .col-tb-offset-8 { + margin-left: 66.66667%; } + + .col-tb-offset-9 { + margin-left: 75%; } + + .col-tb-offset-10 { + margin-left: 83.33333%; } + + .col-tb-offset-11 { + margin-left: 91.66667%; } + + .col-tb-offset-12 { + margin-left: 100%; } + + .col-tb-pull-0 { + right: 0%; } + + .col-tb-pull-1 { + right: 8.33333%; } + + .col-tb-pull-2 { + right: 16.66667%; } + + .col-tb-pull-3 { + right: 25%; } + + .col-tb-pull-4 { + right: 33.33333%; } + + .col-tb-pull-5 { + right: 41.66667%; } + + .col-tb-pull-6 { + right: 50%; } + + .col-tb-pull-7 { + right: 58.33333%; } + + .col-tb-pull-8 { + right: 66.66667%; } + + .col-tb-pull-9 { + right: 75%; } + + .col-tb-pull-10 { + right: 83.33333%; } + + .col-tb-pull-11 { + right: 91.66667%; } + + .col-tb-pull-12 { + right: 100%; } + + .col-tb-push-0 { + left: 0%; } + + .col-tb-push-1 { + left: 8.33333%; } + + .col-tb-push-2 { + left: 16.66667%; } + + .col-tb-push-3 { + left: 25%; } + + .col-tb-push-4 { + left: 33.33333%; } + + .col-tb-push-5 { + left: 41.66667%; } + + .col-tb-push-6 { + left: 50%; } + + .col-tb-push-7 { + left: 58.33333%; } + + .col-tb-push-8 { + left: 66.66667%; } + + .col-tb-push-9 { + left: 75%; } + + .col-tb-push-10 { + left: 83.33333%; } + + .col-tb-push-11 { + left: 91.66667%; } + + .col-tb-push-12 { + left: 100%; } + + .colgroup { + margin-right: -10px; + margin-left: -10px; } } +/* + * Desktop and up + */ +@media (min-width: 992px) { + .container { + max-width: 952px; } + + .col-1 { + width: 8.33333%; } + + .col-2 { + width: 16.66667%; } + + .col-3 { + width: 25%; } + + .col-4 { + width: 33.33333%; } + + .col-5 { + width: 41.66667%; } + + .col-6 { + width: 50%; } + + .col-7 { + width: 58.33333%; } + + .col-8 { + width: 66.66667%; } + + .col-9 { + width: 75%; } + + .col-10 { + width: 83.33333%; } + + .col-11 { + width: 91.66667%; } + + .col-12 { + width: 100%; } + + .col-offset-0 { + margin-left: 0%; } + + .col-offset-1 { + margin-left: 8.33333%; } + + .col-offset-2 { + margin-left: 16.66667%; } + + .col-offset-3 { + margin-left: 25%; } + + .col-offset-4 { + margin-left: 33.33333%; } + + .col-offset-5 { + margin-left: 41.66667%; } + + .col-offset-6 { + margin-left: 50%; } + + .col-offset-7 { + margin-left: 58.33333%; } + + .col-offset-8 { + margin-left: 66.66667%; } + + .col-offset-9 { + margin-left: 75%; } + + .col-offset-10 { + margin-left: 83.33333%; } + + .col-offset-11 { + margin-left: 91.66667%; } + + .col-offset-12 { + margin-left: 100%; } + + .col-pull-0 { + right: 0%; } + + .col-pull-1 { + right: 8.33333%; } + + .col-pull-2 { + right: 16.66667%; } + + .col-pull-3 { + right: 25%; } + + .col-pull-4 { + right: 33.33333%; } + + .col-pull-5 { + right: 41.66667%; } + + .col-pull-6 { + right: 50%; } + + .col-pull-7 { + right: 58.33333%; } + + .col-pull-8 { + right: 66.66667%; } + + .col-pull-9 { + right: 75%; } + + .col-pull-10 { + right: 83.33333%; } + + .col-pull-11 { + right: 91.66667%; } + + .col-pull-12 { + right: 100%; } + + .col-push-0 { + left: 0%; } + + .col-push-1 { + left: 8.33333%; } + + .col-push-2 { + left: 16.66667%; } + + .col-push-3 { + left: 25%; } + + .col-push-4 { + left: 33.33333%; } + + .col-push-5 { + left: 41.66667%; } + + .col-push-6 { + left: 50%; } + + .col-push-7 { + left: 58.33333%; } + + .col-push-8 { + left: 66.66667%; } + + .col-push-9 { + left: 75%; } + + .col-push-10 { + left: 83.33333%; } + + .col-push-11 { + left: 91.66667%; } + + .col-push-12 { + left: 100%; } } +/* + * Widescreen and up + */ +@media (min-width: 1200px) { + .container { + max-width: 1160px; } + + .col-wd-1 { + width: 8.33333%; } + + .col-wd-2 { + width: 16.66667%; } + + .col-wd-3 { + width: 25%; } + + .col-wd-4 { + width: 33.33333%; } + + .col-wd-5 { + width: 41.66667%; } + + .col-wd-6 { + width: 50%; } + + .col-wd-7 { + width: 58.33333%; } + + .col-wd-8 { + width: 66.66667%; } + + .col-wd-9 { + width: 75%; } + + .col-wd-10 { + width: 83.33333%; } + + .col-wd-11 { + width: 91.66667%; } + + .col-wd-12 { + width: 100%; } + + .col-wd-offset-0 { + margin-left: 0%; } + + .col-wd-offset-1 { + margin-left: 8.33333%; } + + .col-wd-offset-2 { + margin-left: 16.66667%; } + + .col-wd-offset-3 { + margin-left: 25%; } + + .col-wd-offset-4 { + margin-left: 33.33333%; } + + .col-wd-offset-5 { + margin-left: 41.66667%; } + + .col-wd-offset-6 { + margin-left: 50%; } + + .col-wd-offset-7 { + margin-left: 58.33333%; } + + .col-wd-offset-8 { + margin-left: 66.66667%; } + + .col-wd-offset-9 { + margin-left: 75%; } + + .col-wd-offset-10 { + margin-left: 83.33333%; } + + .col-wd-offset-11 { + margin-left: 91.66667%; } + + .col-wd-offset-12 { + margin-left: 100%; } + + .col-wd-pull-0 { + right: 0%; } + + .col-wd-pull-1 { + right: 8.33333%; } + + .col-wd-pull-2 { + right: 16.66667%; } + + .col-wd-pull-3 { + right: 25%; } + + .col-wd-pull-4 { + right: 33.33333%; } + + .col-wd-pull-5 { + right: 41.66667%; } + + .col-wd-pull-6 { + right: 50%; } + + .col-wd-pull-7 { + right: 58.33333%; } + + .col-wd-pull-8 { + right: 66.66667%; } + + .col-wd-pull-9 { + right: 75%; } + + .col-wd-pull-10 { + right: 83.33333%; } + + .col-wd-pull-11 { + right: 91.66667%; } + + .col-wd-pull-12 { + right: 100%; } + + .col-wd-push-0 { + left: 0%; } + + .col-wd-push-1 { + left: 8.33333%; } + + .col-wd-push-2 { + left: 16.66667%; } + + .col-wd-push-3 { + left: 25%; } + + .col-wd-push-4 { + left: 33.33333%; } + + .col-wd-push-5 { + left: 41.66667%; } + + .col-wd-push-6 { + left: 50%; } + + .col-wd-push-7 { + left: 58.33333%; } + + .col-wd-push-8 { + left: 66.66667%; } + + .col-wd-push-9 { + left: 75%; } + + .col-wd-push-10 { + left: 83.33333%; } + + .col-wd-push-11 { + left: 91.66667%; } + + .col-wd-push-12 { + left: 100%; } } +/* + * Responsive kit + */ +@media (max-width: 767px) { + .kit-hidden-mb { + display: none; } } +@media (max-width: 991px) { + .kit-hidden-tb { + display: none; } } +@media (max-width: 1199px) { + .kit-hidden { + display: none; } } +/* + * Clearfix + */ +.clearfix, .colgroup { + zoom: 1; } + .clearfix:before, .colgroup:before, .clearfix:after, .colgroup:after { + content: " "; + display: table; } + .clearfix:after, .colgroup:after { + clear: both; } diff --git a/usr/themes/default/header.php b/usr/themes/default/header.php index eef16326..a0c67cf7 100644 --- a/usr/themes/default/header.php +++ b/usr/themes/default/header.php @@ -13,13 +13,13 @@ ), '', ' - '); ?>options->title(); ?> - - + + From c0930d3f312b661bec744f1024335d388df6b2f2 Mon Sep 17 00:00:00 2001 From: joyqi Date: Mon, 23 Dec 2013 20:18:46 +0800 Subject: [PATCH 3/5] fixed #144 --- var/Typecho/I18n.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/Typecho/I18n.php b/var/Typecho/I18n.php index dbbdd11a..e50e7b92 100644 --- a/var/Typecho/I18n.php +++ b/var/Typecho/I18n.php @@ -153,7 +153,7 @@ class Typecho_I18n /** 如果是一个星期 */ if ($between > 0 && $between < 604800) { $day = floor($between / 86400); - return str_replace('%d', $day, _n('一天前', '%天前', $day)); + return str_replace('%d', $day, _n('一天前', '%d天前', $day)); } /** 如果是 */ From 51dbbffc6d60f05bf4ba0f1e8e6f5aa765a0e424 Mon Sep 17 00:00:00 2001 From: joyqi Date: Tue, 24 Dec 2013 16:01:37 +0800 Subject: [PATCH 4/5] fixed #143 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 没有将上传路径的定义放到设置中,这是一个不常用的定义,放在config.inc.php里添加一行`define('__TYPECHO_UPLOAD_DIR__', 'xxxx');`即可 增加jpeg支持 --- var/Widget/Options.php | 2 +- var/Widget/Options/General.php | 2 +- var/Widget/Upload.php | 9 +++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/var/Widget/Options.php b/var/Widget/Options.php index 9d6e258a..3264840b 100644 --- a/var/Widget/Options.php +++ b/var/Widget/Options.php @@ -319,7 +319,7 @@ class Widget_Options extends Typecho_Widget if (NULL != $this->attachmentTypes) { $attachmentTypes = str_replace( array('@image@', '@media@', '@doc@'), - array('gif,jpg,png,tiff,bmp', 'mp3,wmv,wma,rmvb,rm,avi,flv', + array('gif,jpg,jpeg,png,tiff,bmp', 'mp3,wmv,wma,rmvb,rm,avi,flv', 'txt,doc,docx,xls,xlsx,ppt,pptx,zip,rar,pdf'), $this->attachmentTypes); $attachmentTypesResult = array_unique(array_map('trim', explode(',', $attachmentTypes))); diff --git a/var/Widget/Options/General.php b/var/Widget/Options/General.php index 5d0bced3..13ebef36 100644 --- a/var/Widget/Options/General.php +++ b/var/Widget/Options/General.php @@ -116,7 +116,7 @@ class Widget_Options_General extends Widget_Abstract_Options implements Widget_I } $attachmentTypesOptions = array( - '@image@' => _t('图片文件') . ' (gif jpg png tiff bmp)', + '@image@' => _t('图片文件') . ' (gif jpg jpeg png tiff bmp)', '@media@' => _t('多媒体文件') . ' (mp3 wmv wma rmvb rm avi flv)', '@doc@' => _t('常用档案文件') . ' (txt doc docx xls xlsx ppt pptx zip rar pdf)', '@other@' => _t('其他格式 %s', ' '), diff --git a/var/Widget/Upload.php b/var/Widget/Upload.php index 629dfa8a..fbc06058 100644 --- a/var/Widget/Upload.php +++ b/var/Widget/Upload.php @@ -19,7 +19,7 @@ class Widget_Upload extends Widget_Abstract_Contents implements Widget_Interface_Do { //上传文件目录 - const UPLOAD_PATH = '/usr/uploads'; + const UPLOAD_DIR = '/usr/uploads'; /** * 创建上传路径 @@ -75,8 +75,8 @@ class Widget_Upload extends Widget_Abstract_Contents implements Widget_Interface $options = Typecho_Widget::widget('Widget_Options'); $date = new Typecho_Date($options->gmtTime); - $path = Typecho_Common::url(self::UPLOAD_PATH, __TYPECHO_ROOT_DIR__) - . '/' . $date->year . '/' . $date->month; + $path = Typecho_Common::url(defined('__TYPECHO_UPLOAD_DIR__') ? __TYPECHO_UPLOAD_DIR__ : self::UPLOAD_DIR, + __TYPECHO_ROOT_DIR__) . '/' . $date->year . '/' . $date->month; //创建上传目录 if (!is_dir($path)) { @@ -112,7 +112,8 @@ class Widget_Upload extends Widget_Abstract_Contents implements Widget_Interface //返回相对存储路径 return array( 'name' => $file['name'], - 'path' => self::UPLOAD_PATH . '/' . $date->year . '/' . $date->month . '/' . $fileName, + 'path' => (defined('__TYPECHO_UPLOAD_DIR__') ? __TYPECHO_UPLOAD_DIR__ : self::UPLOAD_DIR) + . '/' . $date->year . '/' . $date->month . '/' . $fileName, 'size' => $file['size'], 'type' => $ext, 'mime' => Typecho_Common::mimeContentType($path) From f7eddbaf79d761db32bc22199cae922ae371bde2 Mon Sep 17 00:00:00 2001 From: fen Date: Tue, 24 Dec 2013 16:55:28 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E9=A2=84=E7=95=99=E5=85=A8=E5=B1=8F?= =?UTF-8?q?=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 --- .gitignore | 1 - admin/css/style.css | 58 ++++++++++++++-------- admin/img/icons-2x/icon-arrow-down-2x.png | Bin 271 -> 0 bytes admin/img/icons-2x/icon-arrow-up-2x.png | Bin 250 -> 0 bytes admin/img/icons-2x/icon-upload-2x.png | Bin 0 -> 1089 bytes admin/img/icons-s2ebed63329.png | Bin 941 -> 0 bytes admin/img/icons-s93f9ba6074.png | Bin 0 -> 1283 bytes admin/img/icons/icon-caret-down.png | Bin 193 -> 0 bytes admin/img/icons/icon-caret-up.png | Bin 177 -> 0 bytes admin/img/icons/icon-upload.png | Bin 0 -> 557 bytes admin/scss/_buttons.scss | 7 +++ admin/scss/_icons.scss | 14 +++--- admin/scss/_mixin.scss | 5 -- admin/scss/components/_editor.scss | 18 +++++-- admin/scss/style.scss | 8 ++- admin/write-js.php | 7 +++ admin/write-post.php | 1 + 17 files changed, 80 insertions(+), 39 deletions(-) delete mode 100644 admin/img/icons-2x/icon-arrow-down-2x.png delete mode 100644 admin/img/icons-2x/icon-arrow-up-2x.png create mode 100644 admin/img/icons-2x/icon-upload-2x.png delete mode 100644 admin/img/icons-s2ebed63329.png create mode 100644 admin/img/icons-s93f9ba6074.png delete mode 100644 admin/img/icons/icon-caret-down.png delete mode 100644 admin/img/icons/icon-caret-up.png create mode 100644 admin/img/icons/icon-upload.png delete mode 100644 admin/scss/_mixin.scss diff --git a/.gitignore b/.gitignore index cd0f9ed8..73f184b8 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,6 @@ .*.swo ._* .DS_Store -/Debug/ /ImgCache/ /Backup_rar/ /Debug/ diff --git a/admin/css/style.css b/admin/css/style.css index 7e84092d..15a27499 100644 --- a/admin/css/style.css +++ b/admin/css/style.css @@ -209,6 +209,11 @@ button { background-color: #c1605e; cursor: default; } +.btn-text { + background: transparent; } + .btn-text:hover, .btn-text:active, .btn-text.active { + background: #F3F3F0; } + /* 下拉菜单 */ .btn-drop { position: relative; } @@ -1022,6 +1027,8 @@ a.operate-reply { list-style: none; border: 1px solid #D9D9D6; padding: 6px 12px; + max-height: 240px; + overflow: auto; background-color: #FFF; border-radius: 2px; } @@ -1103,7 +1110,8 @@ a.operate-reply { #file-list { list-style: none; margin: 0 10px; - padding: 0; } + padding: 0; + word-break: break-all; } #file-list li { padding: 8px 0; border-top: 1px dashed #D9D9D6; } @@ -1118,6 +1126,9 @@ a.operate-reply { #file-list .info { text-transform: uppercase; } +#btn-fullscreen-upload { + visibility: hidden; } + /** * 附件管理 */ @@ -1148,24 +1159,25 @@ a.operate-reply { /** * icons */ -.icon-sprite-hack { - background: url('../img/icons-s2ebed63329.png'); } - -.i-edit, .i-delete, .i-exlink, .mime-office, .mime-text, .mime-image, .mime-html, .mime-archive, .mime-application, .mime-audio, .mime-script, .mime-video, .mime-unknow { +.i-edit, .i-delete, .i-upload, .i-exlink, .mime-office, .mime-text, .mime-image, .mime-html, .mime-archive, .mime-application, .mime-audio, .mime-script, .mime-video, .mime-unknow { width: 16px; height: 16px; display: inline-block; vertical-align: text-bottom; - background: url(../img/icons.png) no-repeat; } - .i-edit:hover, .i-delete:hover, .i-exlink:hover, .mime-office:hover, .mime-text:hover, .mime-image:hover, .mime-html:hover, .mime-archive:hover, .mime-application:hover, .mime-audio:hover, .mime-script:hover, .mime-video:hover, .mime-unknow:hover { + background: url('../img/icons-s93f9ba6074.png') no-repeat; + text-indent: -9999em; } + .i-edit:hover, .i-delete:hover, .i-upload:hover, .i-exlink:hover, .mime-office:hover, .mime-text:hover, .mime-image:hover, .mime-html:hover, .mime-archive:hover, .mime-application:hover, .mime-audio:hover, .mime-script:hover, .mime-video:hover, .mime-unknow:hover { filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=75); opacity: 0.75; } .i-edit { - background-position: 0 -32px; } + background-position: 0 -48px; } .i-delete { - background-position: 0 -16px; } + background-position: 0 -32px; } + +.i-upload { + background-position: 0 0; } .i-caret-up, .i-caret-down, .i-caret-left, .i-caret-right { display: inline-block; @@ -1186,35 +1198,35 @@ a.operate-reply { border-width: 4px 3px 4px 5px; } .i-exlink { - background-position: 0 0; } + background-position: 0 -16px; } /* 文件类型图标 */ .mime-office { - background-position: 0 -80px; } + background-position: 0 -96px; } .mime-text { background-position: 0 -176px; } .mime-image { - background-position: 0 -48px; } + background-position: 0 -64px; } .mime-html { - background-position: 0 -96px; } + background-position: 0 -112px; } .mime-archive { background-position: 0 -192px; } .mime-application { - background-position: 0 -112px; } + background-position: 0 -128px; } .mime-audio { - background-position: 0 -224px; } + background-position: 0 -208px; } .mime-script { background-position: 0 -144px; } .mime-video { - background-position: 0 -64px; } + background-position: 0 -80px; } .mime-unknow { background-position: 0 -160px; } @@ -1350,7 +1362,7 @@ a.operate-reply { background: #F3F3F0; font-size: .92857em; } #wmd-preview code { - color: #B94A48; } + color: #C13; } #wmd-preview pre { padding: 1em; } #wmd-preview pre code { @@ -1417,18 +1429,24 @@ a.operate-reply { margin: 0; padding: 10px 20px; border-bottom: 1px solid #F3F3F0; } +.fullscreen #tab-files { + position: absolute; + top: 52px; + right: 20px; + width: 280px; + z-index: 1001; } .fullscreen .wmd-edittab, .fullscreen .typecho-post-option, .fullscreen .title, .fullscreen .url-slug, .fullscreen .typecho-page-title, .fullscreen .typecho-head-nav, -.fullscreen .message, -.fullscreen #upload-panel { +.fullscreen .message { display: none; } .fullscreen .wmd-hidetab { display: block; } -.fullscreen .wmd-visualhide { +.fullscreen .wmd-visualhide, +.fullscreen #btn-fullscreen-upload { visibility: visible; } /** diff --git a/admin/img/icons-2x/icon-arrow-down-2x.png b/admin/img/icons-2x/icon-arrow-down-2x.png deleted file mode 100644 index 1fefa5a038843067e87c6af832feaaae8b3246be..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 271 zcmV+q0r38bP)BRO++X?@+SpzXf6o(1zS}*NT z#~Of|Fm80iC0#%-$`=_xRYfaA=Z#FP!g$ljd z0EB;9p+-Mt0OF<;NZSPYC+Jmgm;yGX~!0Ft86L11f-~gpm VQyug34nF_@002ovPDHLkV1nHGY%2f& diff --git a/admin/img/icons-2x/icon-arrow-up-2x.png b/admin/img/icons-2x/icon-arrow-up-2x.png deleted file mode 100644 index b7a7e475a142c75c4bd942faa39894010296eb28..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 250 zcmV^ z7y%>jia^eJhy7-lIqfJ;DFyHS3E`!bEyj3hil_;+@S_C=*!`@@*Nx(i9ivyP5Gz3F z;rDo58Wmy%2t5vmvr2`izyo?(Lac(VV1S;M5UF4j7@(&GL@HPX80cvUwu-3&0eV`3 zrD94zfSwj$shAR=uYP@>68JihzGnrDfDtePH*z+LB0W0_^cAk{u_(411uA zv9+et={?bC^s8>~=;&DH^Z9NN7gjjFdn+m`q!3GUEdcV1c<#4&YXcIVCSkn>S=9FS z_5#1(FNblRY50LGUP7`}+E3Lpqo7rA#JM&&ifkK4Gh=sY&8+TRCw)HYr_6%N8*6 zwHTUMHjzeytRfPL^r$g5iOKu!vXxO{+a#W_VZtM9L$Au0TLH-TVC<#m$O-tYlbcEM zCKrDW=@Ugp?wRQKxylC=W)uLh1>lMTMM6G6z&jmt(wX5Qia+RN6Rf|#e*mFBM1Hp7 zLT6`ZmDoM;czk*=7<>cSLIEKDh&aRvZ;|mt4f0z24L{;zEN!cke@jctjN;?| zcm|TmWWdAhcLLrt14l+jM^{%>RXuY`q+{Im5ZCM;SdodRh}}r+Bi&Ee;aUjS3%YED zOm>HCLGC>VxSS6;%eMsbyTmGT$yX$p*ks_;c#c0nF7J!c(CegtGIJ~yJy5!vl&6`c zY{x#&!N;(PkAuyCxYB)^ZHbpEf(jtdN)oChKCl^DC3Nd^=~vERK^@k#+KPr1_VG8_({C!p4j zyN$&+6bhZQ+jS1%mRrz(^GR_8NTaXJ=TC+!==dNJ>#>unF(0Vq9Mq?97++V4srRN* zsjD~`4}};gqL-rTCfGxjFK?MhBno+~Vvs*n$!GM}FTJ=Rz$113C0BD&roCzsPM+{V(7*%AMfr!x9@Q00000NkvXX Hu0mjfTzLfp literal 0 HcmV?d00001 diff --git a/admin/img/icons-s2ebed63329.png b/admin/img/icons-s2ebed63329.png deleted file mode 100644 index 1a21b00db86f28c16f66170b54408187047fd4ee..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 941 zcmeAS@N?(olHy`uVBq!ia0vp^0zmwMgBeKLWr|z`Qu70RLR^8gO70|wga+q|sm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ybd@l4`zT7dhz~_f+Y-AlaoGuaPDwjV}{@phC)Z@P&cIdxJlVs2^yTrsz+r6PWz0?9SprTKish$mj$VxVeI;VK zQ6p|V9xjzyJhaoxY3tD$X+jhiplDRKPj qwtU^EqQzK#@lOErT8AWQff{~J-BbxvcYUCn7(8A5T-G@yGywq9%|(j< diff --git a/admin/img/icons/icon-caret-up.png b/admin/img/icons/icon-caret-up.png deleted file mode 100644 index 69d8bb87c84f69e65b2ba8510706a015b0ade675..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 177 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`6`n4RAr^wkfByfsXI5?K6gsQ0 z_we0@$jxc3O$Pf4l8%USPgeIAOHEJT&vog~=jZ-!@7%d_{RYn=$qt9J!HrTbjuNMi zEt9X-ahTitresds!4FK6E<0{hZoYnFPt!wImF3FWY#TRLu^wi9v5VuQVT^+Z^R7Pz b1`G@@0yLf9&fIkl=mrK)S3j3^P6Nkl2PC&SNOXd2louRd&059lwBubg{)RMj#NVBR+wB zr09H%az_Fka=Bbf_<9Z~wyx`MIyuNe_()b*B{;+7pP8n)8Hq$1og@y{edioZ6TeJB zp{Lwo4RcjhtJQg?IK;6|=Rbh{`3Gcoa!w>yFf?6Ip-|{&y diff --git a/admin/write-post.php b/admin/write-post.php index 50e2b4a6..700524aa 100644 --- a/admin/write-post.php +++ b/admin/write-post.php @@ -46,6 +46,7 @@ Typecho_Widget::widget('Widget_Contents_Post_Edit')->to($post);

+