添加全屏撰写时附件上传,还不完美 fixed Issue #145
This commit is contained in:
+9
-7
@@ -210,9 +210,7 @@ button {
|
||||
cursor: default; }
|
||||
|
||||
.btn-text {
|
||||
background: transparent; }
|
||||
.btn-text:hover, .btn-text:active, .btn-text.active {
|
||||
background: #F3F3F0; }
|
||||
background-color: transparent !important; }
|
||||
|
||||
/* 下拉菜单 */
|
||||
.btn-drop {
|
||||
@@ -974,8 +972,7 @@ a.operate-reply {
|
||||
color: #666; }
|
||||
|
||||
.typecho-post-area #text {
|
||||
resize: none;
|
||||
font-size: .92857em; }
|
||||
resize: none; }
|
||||
|
||||
#advance-panel-btn {
|
||||
font-size: .92857em; }
|
||||
@@ -1428,6 +1425,12 @@ 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,
|
||||
@@ -1635,8 +1638,7 @@ div.token-input-dropdown ul li.token-input-selected-dropdown-item {
|
||||
* Hide from both screenreaders and browsers: h5bp.com/u
|
||||
*/
|
||||
.hidden {
|
||||
display: none !important;
|
||||
visibility: hidden; }
|
||||
display: none; }
|
||||
|
||||
/*
|
||||
* Hide only visually, but have it available for screenreaders: h5bp.com/v
|
||||
|
||||
+2
-1
@@ -14,7 +14,8 @@ $stat = Typecho_Widget::widget('Widget_Stat');
|
||||
<p><a href="http://gravatar.com/emails/" title="<?php _e('在 Gravatar 上修改头像'); ?>"><?php echo '<img class="profile-avatar" src="'
|
||||
. ($request->isSecure() ? 'https://secure' : 'http://www') . '.gravatar.com/avatar/' . md5($user->mail) . '?s=220&r=X' .
|
||||
'&d=mm" alt="' . $user->screenName . '" />'; ?></a></p>
|
||||
<h2><?php $user->screenName(); ?><br><small><?php $user->name(); ?></small></h2>
|
||||
<h2><?php $user->screenName(); ?></h2>
|
||||
<p><?php $user->name(); ?></p>
|
||||
<p><?php _e('目前有 <em>%s</em> 篇日志, 并有 <em>%s</em> 条关于你的评论在 <em>%s</em> 个分类中.',
|
||||
$stat->myPublishedPostsNum, $stat->myPublishedCommentsNum, $stat->categoriesNum); ?></p>
|
||||
<p><?php
|
||||
|
||||
@@ -66,10 +66,7 @@ button {
|
||||
}
|
||||
|
||||
.btn-text {
|
||||
background: transparent;
|
||||
&:hover, &:active, &.active {
|
||||
background: #F3F3F0;
|
||||
}
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
/* 下拉菜单 */
|
||||
|
||||
@@ -3,8 +3,9 @@
|
||||
*/
|
||||
|
||||
.hidden {
|
||||
display: none !important;
|
||||
visibility: hidden;
|
||||
display: none;
|
||||
// display: none !important;
|
||||
// visibility: hidden;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -185,13 +185,13 @@
|
||||
}
|
||||
|
||||
// 全屏附件上传
|
||||
// #tab-files {
|
||||
// position: absolute;
|
||||
// top: 52px;
|
||||
// right: 20px;
|
||||
// width: 280px;
|
||||
// z-index: 1001;
|
||||
// }
|
||||
#tab-files {
|
||||
position: absolute;
|
||||
top: 52px;
|
||||
right: 20px;
|
||||
width: 280px;
|
||||
z-index: 1001;
|
||||
}
|
||||
|
||||
.wmd-edittab,
|
||||
.typecho-post-option,
|
||||
|
||||
@@ -725,7 +725,6 @@ a.operate-reply {
|
||||
|
||||
.typecho-post-area #text {
|
||||
resize: none;
|
||||
font-size: .92857em;
|
||||
}
|
||||
|
||||
#advance-panel-btn {
|
||||
|
||||
+9
-7
@@ -175,7 +175,7 @@ $(document).ready(function() {
|
||||
savedData = data;
|
||||
lastSaveTime = o.time;
|
||||
cid = o.cid;
|
||||
autoSave.text('<?php _e('内容已经保存'); ?>' + ' (' + o.time + ')').effect('highlight', 1000);
|
||||
autoSave.text('<?php _e('已保存'); ?>' + ' (' + o.time + ')').effect('highlight', 1000);
|
||||
locked = false;
|
||||
}, 'json');
|
||||
}
|
||||
@@ -189,7 +189,7 @@ $(document).ready(function() {
|
||||
|
||||
$('#text').bind('input propertychange', function () {
|
||||
if (!locked) {
|
||||
autoSave.text('<?php _e('内容尚未保存'); ?>' + (lastSaveTime ? ' (<?php _e('上次保存时间'); ?>: ' + lastSaveTime + ')' : ''));
|
||||
autoSave.text('<?php _e('尚未保存'); ?>' + (lastSaveTime ? ' (<?php _e('上次保存时间'); ?>: ' + lastSaveTime + ')' : ''));
|
||||
}
|
||||
|
||||
if (!autoSaveOnce) {
|
||||
@@ -258,11 +258,13 @@ $(document).ready(function() {
|
||||
});
|
||||
|
||||
// 全屏上传按钮控制
|
||||
// $('#btn-fullscreen-upload').click(function() {
|
||||
// $(this).toggleClass('active');
|
||||
// $('#tab-files').toggle();
|
||||
// return false;
|
||||
// });
|
||||
$('#btn-fullscreen-upload').click(function() {
|
||||
$(this).toggleClass('active');
|
||||
$('.tab-content').toggleClass('hidden');
|
||||
$('.typecho-option-tabs li').toggleClass('active');
|
||||
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@ Typecho_Widget::widget('Widget_Contents_Page_Edit')->to($page);
|
||||
<?php include 'custom-fields.php'; ?>
|
||||
<p class="submit clearfix">
|
||||
<span class="right">
|
||||
<button type="button" class="btn-text" id="btn-fullscreen-upload"><i class="i-upload"><?php _e('附件'); ?></i></button>
|
||||
<input type="hidden" name="cid" value="<?php $page->cid(); ?>" />
|
||||
<button type="submit" name="do" value="save" id="btn-save"><?php _e('保存草稿'); ?></button>
|
||||
<button type="submit" name="do" value="publish" class="primary" id="btn-submit"><?php _e('发布页面'); ?></button>
|
||||
|
||||
@@ -46,7 +46,7 @@ Typecho_Widget::widget('Widget_Contents_Post_Edit')->to($post);
|
||||
|
||||
<p class="submit clearfix">
|
||||
<span class="right">
|
||||
<!-- <button type="button" class="btn-text" id="btn-fullscreen-upload"><i class="i-upload"><?php _e('附件'); ?></i></button> -->
|
||||
<button type="button" class="btn-text" id="btn-fullscreen-upload"><i class="i-upload"><?php _e('附件'); ?></i></button>
|
||||
<input type="hidden" name="cid" value="<?php $post->cid(); ?>" />
|
||||
<button type="submit" name="do" value="save" id="btn-save"><?php _e('保存草稿'); ?></button>
|
||||
<button type="submit" name="do" value="publish" class="primary" id="btn-submit"><?php _e('发布文章'); ?></button>
|
||||
|
||||
Reference in New Issue
Block a user