1
0
mirror of https://github.com/typecho/typecho.git synced 2025-03-24 11:59:46 +01:00

修改自定义字段布局

This commit is contained in:
fen 2013-11-24 21:14:02 +08:00
parent 915574ce5f
commit 5545ce286a
5 changed files with 33 additions and 29 deletions

@ -147,6 +147,10 @@ button {
button:disabled {
color: #999; }
.btn-xs {
padding: 0 10px;
height: 25px; }
.btn-s {
height: 28px; }
@ -876,8 +880,6 @@ a.operate-reply {
font-size: .92857em; }
#advance-panel-btn {
padding: 0 10px;
height: 26px;
font-size: .92857em; }
#advance-panel {
@ -891,8 +893,11 @@ a.operate-reply {
display: none; }
#custom-field .description {
margin: 0;
padding: 10px 0 5px;
border-top: 1px solid #F0F0EC; }
padding: 10px 0;
border-top: 1px solid #F0F0EC;
text-align: right; }
#custom-field .description button {
float: left; }
#custom-field .typecho-label {
margin: 0;
cursor: pointer; }

@ -39,8 +39,16 @@ button {
}
}
.btn-xs {
padding: 0 10px;
height: 25px;
}
.btn-s { height: 28px; }
.btn-l { height: 40px; font-size: 1.14286em; font-weight: bold; }
.btn-l {
height: 40px;
font-size: 1.14286em;
font-weight: bold;
}
.primary {
@include button(#467B96);

@ -657,8 +657,6 @@ a.operate-reply {
}
#advance-panel-btn {
padding: 0 10px;
height: 26px;
font-size: .92857em;
}
@ -676,8 +674,12 @@ a.operate-reply {
.description {
margin: 0;
padding: 10px 0 5px;
padding: 10px 0;
border-top: 1px solid #F0F0EC;
text-align: right;
button {
float: left;
}
}
.typecho-label {

@ -80,7 +80,7 @@ Typecho_Widget::widget('Widget_Contents_Page_Edit')->to($page);
<?php Typecho_Plugin::factory('admin/write-page.php')->option($page); ?>
<button type="button" id="advance-panel-btn"><?php _e('高级选项'); ?></button>
<button type="button" id="advance-panel-btn" class="btn-xs"><?php _e('高级选项'); ?></button>
<div id="advance-panel">
<section class="typecho-post-option visibility-option">
<label class="typecho-label"><?php _e('公开度'); ?></label>

@ -42,10 +42,10 @@ Typecho_Widget::widget('Widget_Contents_Post_Edit')->to($post);
<textarea style="height: <?php $options->editorSize(); ?>px" autocomplete="off" id="text" name="text" class="w-100 mono"><?php echo htmlspecialchars($post->text); ?></textarea>
</p>
<div class="">
<!-- <div class="">
<a href="###" class="current">撰写</a>
<a href="###">预览</a>
</div>
</div> -->
<?php include 'file-upload.php'; ?>
@ -56,7 +56,7 @@ Typecho_Widget::widget('Widget_Contents_Post_Edit')->to($post);
<th width="25%"><?php _e('KEY'); ?></th>
<th width="10%"><?php _e('TYPE'); ?></th>
<th><?php _e('VALUE'); ?></th>
<th width="8%"></th>
<th width="10%"></th>
</tr>
<tr>
<td><input type="text" class="text-s w-100"></td>
@ -69,25 +69,14 @@ Typecho_Widget::widget('Widget_Contents_Post_Edit')->to($post);
</td>
<td><textarea class="text-s w-100" rows="2"></textarea></td>
<td>
<button type="button" class="btn-s"><?php _e('-'); ?></button>
</td>
</tr>
<tr>
<td><input type="text" class="text-s w-100"></td>
<td>
<select name="" id="">
<option value=""><?php _e('varchar'); ?></option>
<option value=""><?php _e('int'); ?></option>
<option value=""><?php _e('float'); ?></option>
</select>
</td>
<td><textarea class="text-s w-100"></textarea></td>
<td>
<button type="button" class="btn-s"><?php _e('+'); ?></button>
<button type="button" class="btn-xs"><?php _e('删除'); ?></button>
</td>
</tr>
</table>
<p class="description"><?php _e('自定义字段可以扩展你的模板功能, 使用方法参见 <a href="">帮助文档</a>'); ?></p>
<p class="description">
<button type="button" class="btn-xs"><?php _e('+添加字段'); ?></button>
<?php _e('自定义字段可以扩展你的模板功能, 使用方法参见 <a href="">帮助文档</a>'); ?>
</p>
</section>
<?php Typecho_Plugin::factory('admin/write-post.php')->content($post); ?>
@ -134,7 +123,7 @@ Typecho_Widget::widget('Widget_Contents_Post_Edit')->to($post);
<?php Typecho_Plugin::factory('admin/write-post.php')->option($post); ?>
<button type="button" id="advance-panel-btn"><?php _e('高级选项'); ?></button>
<button type="button" id="advance-panel-btn" class="btn-xs"><?php _e('高级选项'); ?></button>
<div id="advance-panel">
<?php if($user->pass('editor', true)): ?>
<section class="typecho-post-option visibility-option">