拖动调整大小

This commit is contained in:
fen 2013-10-21 12:15:04 +08:00
parent 623cd31d7c
commit a49df58114
3 changed files with 28 additions and 0 deletions

View File

@ -851,6 +851,9 @@ a.operate-reply {
background: #FFFBCC;
color: #666; }
.typecho-post-area textarea {
resize: none; }
.typecho-post-area #advance-panel-btn {
color: #999; }
@ -959,6 +962,16 @@ a.operate-reply {
.edit-media button {
margin-right: 6px; }
/* 拖动调整 textarea 大小 */
.resize {
display: block;
margin: 2px auto 0;
border: 1px solid #D9D9D6;
border-width: 1px 0;
width: 60px;
height: 2px;
cursor: row-resize; }
/* 拖动排序 */
.tDnD_whileDrag {
background-color: #FFFBCC;

View File

@ -639,6 +639,10 @@ a.operate-reply {
color: #666;
}
.typecho-post-area textarea {
resize: none;
}
.typecho-post-area #advance-panel-btn {
color: #999;
}
@ -753,6 +757,16 @@ background: #FFF1A8;
*/
.edit-media button { margin-right: 6px; }
/* 拖动调整 textarea 大小 */
.resize {
display: block;
margin: 2px auto 0;
border: 1px solid #D9D9D6;
border-width: 1px 0;
width: 60px;
height: 2px;
cursor: row-resize;
}
/* 拖动排序 */
.tDnD_whileDrag {

View File

@ -34,6 +34,7 @@ Typecho_Widget::widget('Widget_Contents_Post_Edit')->to($post);
<p>
<textarea style="height: <?php $options->editorSize(); ?>px" autocomplete="off" id="text" name="text" class="w-100 mono"><?php echo htmlspecialchars($post->text); ?></textarea>
<span class="resize"></span>
</p>
<?php include 'file-upload.php'; ?>