调整表单宽度

This commit is contained in:
fen
2013-10-17 17:16:41 +08:00
parent fb3b4abf6b
commit 8da27d1815
12 changed files with 30 additions and 19 deletions

View File

@@ -792,9 +792,9 @@ margin-top: 25px;
* 标题
*/
.typecho-page-title {
margin-top: 1em;
}
.typecho-page-title h2 {
margin: 25px 0 10px;
font-size: 1.28571em;
}
.typecho-page-title h2 a {
@@ -891,7 +891,7 @@ margin-top: 25px;
*/
.typecho-option-tabs {
list-style: none;
margin: 0;
margin: 1em 0;
padding: 0;
}
@@ -1303,6 +1303,7 @@ ul.typecho-list-notable li .loading {
* 模板列表
*/
.typecho-theme-list {
margin-top: 2em;
}
.typecho-theme-list .theme-item {

View File

@@ -38,7 +38,7 @@ $stat = Typecho_Widget::widget('Widget_Stat');
<li><a href="<?php $options->adminUrl('options-general.php'); ?>"><?php _e('修改系统设置'); ?></a></li>
<?php endif; ?>
<?php endif; ?>
<li><a href="<?php $options->adminUrl('profile.php'); ?>"><?php _e('更新我的资料'); ?></a></li>
<!--<li><a href="<?php $options->adminUrl('profile.php'); ?>"><?php _e('更新我的资料'); ?></a></li>-->
</ul>
<h3><?php _e('统计信息'); ?></h3>
@@ -93,10 +93,10 @@ $stat = Typecho_Widget::widget('Widget_Stat');
<div class="col-mb-12 col-tb-3 typecho-dashboard-nav">
<?php $version = Typecho_Cookie::get('__typecho_check_version'); ?>
<?php if ($version && $version['available']): ?>
<div class="update-check typecho-radius-topleft typecho-radius-topright typecho-radius-bottomleft typecho-radius-bottomright">
<p class="current"><?php _e('您当前使用的版本是'); ?> <em><?php echo $version['current']; ?></em></p>
<p class="latest">
<a href="<?php echo $version['link']; ?>"><?php _e('官方最新版本是'); ?> <em><?php echo $version['latest']; ?></em></a>
<div class="update-check">
<p>
<?php _e('您当前使用的版本是'); ?> <?php echo $version['current']; ?><br>
<strong><a href="<?php echo $version['link']; ?>"><?php _e('官方最新版本是'); ?> <?php echo $version['latest']; ?></a></strong>
</p>
</div>
<?php endif; ?>

View File

@@ -23,7 +23,7 @@ $stat = Typecho_Widget::widget('Widget_Stat');
?></p>
</div>
<div class="col-mb-12 col-tb-7 col-tb-offset-1 typecho-content-panel">
<div class="col-mb-12 col-tb-6 col-tb-offset-1 typecho-content-panel">
<section>
<h3><?php _e('个人资料'); ?></h3>
<?php Typecho_Widget::widget('Widget_Users_Profile')->profileForm()->render(); ?>

View File

@@ -29,7 +29,9 @@ Typecho_Widget::widget('Widget_Themes_Files')->to($files);
<div class="typecho-edit-theme">
<div class="col-mb-12 col-tb-8 col-9 content">
<form method="post" name="theme" id="theme" action="<?php $options->index('/action/themes-edit'); ?>">
<textarea name="content" id="content" class="w-100 mono" <?php if(!$files->currentIsWriteable()): ?>readonly<?php endif; ?>><?php echo $files->currentContent(); ?></textarea>
<p>
<textarea name="content" id="content" class="w-100 mono" <?php if(!$files->currentIsWriteable()): ?>readonly<?php endif; ?>><?php echo $files->currentContent(); ?></textarea>
</p>
<p class="submit">
<?php if($files->currentIsWriteable()): ?>
<input type="hidden" name="theme" value="<?php echo $files->currentTheme(); ?>" />

View File

@@ -16,6 +16,7 @@ include 'menu.php';
<li><a href="<?php $options->adminUrl('options-theme.php'); ?>"><?php _e('设置外观'); ?></a></li>
<?php endif; ?>
</ul>
<table class="typecho-list-table typecho-theme-list">
<colgroup>
<col width="35%" />

View File

@@ -9,7 +9,7 @@ include 'menu.php';
<div class="body container">
<?php include 'page-title.php'; ?>
<div class="col-group typecho-page-main">
<div class="col-mb-12 col-tb-8 col-tb-offset-2">
<div class="col-mb-12 col-tb-6 col-tb-offset-3">
<?php Typecho_Widget::widget('Widget_Users_Edit')->form()->render(); ?>
</div>
</div>

View File

@@ -36,12 +36,13 @@ class Widget_Options_Discussion extends Widget_Abstract_Options implements Widge
$commentDateFormat = new Typecho_Widget_Helper_Form_Element_Text('commentDateFormat', NULL, $this->options->commentDateFormat,
_t('评论日期格式'), _t('这是一个默认的格式,当你在模板中调用显示评论日期方法时, 如果没有指定日期格式, 将按照此格式输出.<br />
具体写法请参考<a href="http://www.php.net/manual/zh/function.date.php">PHP日期格式写法</a>.'));
$commentDateFormat->input->setAttribute('class', 'w-40 mono');
$form->addInput($commentDateFormat);
/** 评论列表数目 */
$commentsListSize = new Typecho_Widget_Helper_Form_Element_Text('commentsListSize', NULL, $this->options->commentsListSize,
_t('评论列表数目'), _t('此数目用于指定显示在侧边栏中的评论列表数目.'));
$commentsListSize->input->setAttribute('class', 'mini');
$commentsListSize->input->setAttribute('class', 'w-20');
$form->addInput($commentsListSize->addRule('isInteger', _t('请填入一个数字')));
$commentsShowOptions = array(
@@ -152,6 +153,7 @@ class Widget_Options_Discussion extends Widget_Abstract_Options implements Widge
htmlspecialchars($this->options->commentsHTMLTagAllowed),
_t('允许使用的HTML标签和属性'), _t('默认的用户评论不允许填写任何的HTML标签, 你可以在这里填写允许使用的HTML标签.<br />
比如: <code>&lt;a href=&quot;&quot;&gt; &lt;img src=&quot;&quot;&gt; &lt;blockquote&gt;</code>'));
$commentsHTMLTagAllowed->input->setAttribute('class', 'mono');
$form->addInput($commentsHTMLTagAllowed);
/** 提交按钮 */

View File

@@ -109,7 +109,7 @@ class Widget_Options_General extends Widget_Abstract_Options implements Widget_I
'@image@' => _t('图片文件') . ' <code>(gif jpg png tiff bmp)</code>',
'@media@' => _t('多媒体文件') . ' <code>(mp3 wmv wma rmvb rm avi flv)</code>',
'@doc@' => _t('常用档案文件') . ' <code>(txt doc docx xls xlsx ppt pptx zip rar pdf)</code>',
'@other@' => _t('其他格式 %s', ' <input type="text" class="w-40 text-s mono" name="attachmentTypesOther" value="' . htmlspecialchars($attachmentTypesOtherValue) . '" />'),
'@other@' => _t('其他格式 %s', ' <input type="text" class="w-50 text-s mono" name="attachmentTypesOther" value="' . htmlspecialchars($attachmentTypesOtherValue) . '" />'),
);
$attachmentTypes = new Typecho_Widget_Helper_Form_Element_Checkbox('attachmentTypes', $attachmentTypesOptions,

View File

@@ -226,10 +226,10 @@ RewriteRule . {$basePath}index.php [L]
} else if (!isset($patterns[$postPatternValue])) {
$customPatternValue = $this->decodeRule($postPatternValue);
}
$patterns['custom'] = _t('个性化定义') . ' <input type="text" class="w-40 text-s mono" name="customPattern" value="' . $customPatternValue . '" />';
$patterns['custom'] = _t('个性化定义') . ' <input type="text" class="w-50 text-s mono" name="customPattern" value="' . $customPatternValue . '" />';
$postPattern = new Typecho_Widget_Helper_Form_Element_Radio('postPattern', $patterns,
$postPatternValue, _t('自定义文章路径'), _t('可用参数:{cid} 日志ID、{slug} 日志缩略名、{category} 分类、{year} 年、{month} 月、{day} 日<br />选择一种合适的文章静态路径风格, 使得你的网站链接更加友好.<br />
$postPatternValue, _t('自定义文章路径'), _t('可用参数:{cid} 日志 ID、{slug} 日志缩略名、{category} 分类、{year} 年、{month} 月、{day} 日<br />选择一种合适的文章静态路径风格, 使得你的网站链接更加友好.<br />
一旦你选择了某种链接风格请不要轻易修改它.'));
if ($customPatternValue) {
$postPattern->value('custom');
@@ -237,9 +237,9 @@ RewriteRule . {$basePath}index.php [L]
$form->addInput($postPattern->multiMode());
/** 独立页面后缀名 */
$pagePattern = new Typecho_Widget_Helper_Form_Element_Text('pagePattern', NULL, $this->decodeRule($this->options->routingTable['page']['url']), _t('独立页面路径'), _t('可用参数:{cid} 页面ID、{slug} 页面缩略名<br />请在路径中至少包含上述的一项参数.'));
$pagePattern->input->setAttribute('class', 'text mono');
$form->addInput($pagePattern->addRule(array($this, 'checkPagePattern'), _t('独立页面路径中没有包含{cid}或者{slug}')));
$pagePattern = new Typecho_Widget_Helper_Form_Element_Text('pagePattern', NULL, $this->decodeRule($this->options->routingTable['page']['url']), _t('独立页面路径'), _t('可用参数:<code>{cid}</code> 页面 ID、<code>{slug}</code> 页面缩略名<br />请在路径中至少包含上述的一项参数.'));
$pagePattern->input->setAttribute('class', 'mono w-60');
$form->addInput($pagePattern->addRule(array($this, 'checkPagePattern'), _t('独立页面路径中没有包含 {cid} 或者 {slug} ')));
/** 提交按钮 */
$submit = new Typecho_Widget_Helper_Form_Element_Submit('submit', NULL, _t('保存设置'));

View File

@@ -37,6 +37,7 @@ class Widget_Options_Reading extends Widget_Abstract_Options implements Widget_I
_t('文章日期格式'), _t('此格式用于指定显示在文章归档中的日期默认显示格式.<br />
在某些主题中这个格式可能不会生效, 因为主题作者可以自定义日期格式.<br />
请参考<a href="http://www.php.net/manual/zh/function.date.php">PHP日期格式写法</a>.'));
$postDateFormat->input->setAttribute('class', 'w-40 mono');
$form->addInput($postDateFormat);
//首页显示
@@ -100,13 +101,13 @@ class Widget_Options_Reading extends Widget_Abstract_Options implements Widget_I
/** 文章列表数目 */
$postsListSize = new Typecho_Widget_Helper_Form_Element_Text('postsListSize', NULL, $this->options->postsListSize,
_t('文章列表数目'), _t('此数目用于指定显示在侧边栏中的文章列表数目.'));
$postsListSize->input->setAttribute('class', 'mini');
$postsListSize->input->setAttribute('class', 'w-20');
$form->addInput($postsListSize->addRule('isInteger', _t('请填入一个数字')));
/** 每页文章数目 */
$pageSize = new Typecho_Widget_Helper_Form_Element_Text('pageSize', NULL, $this->options->pageSize,
_t('每页文章数目'), _t('此数目用于指定文章归档输出时每页显示的文章数目.'));
$pageSize->input->setAttribute('class', 'mini');
$pageSize->input->setAttribute('class', 'w-20');
$form->addInput($pageSize->addRule('isInteger', _t('请填入一个数字')));
/** FEED全文输出 */

View File

@@ -111,10 +111,12 @@ class Widget_Users_Edit extends Widget_Abstract_Users implements Widget_Interfac
/** 用户密码 */
$password = new Typecho_Widget_Helper_Form_Element_Password('password', NULL, NULL, _t('用户密码'), _t('为此用户分配一个密码.<br />
建议使用特殊字符与字母的混编样式,以增加系统安全性.'));
$password->input->setAttribute('class', 'w-60');
$form->addInput($password);
/** 用户密码确认 */
$confirm = new Typecho_Widget_Helper_Form_Element_Password('confirm', NULL, NULL, _t('用户密码确认'), _t('请确认你的密码, 与上面输入的密码保持一致.'));
$confirm->input->setAttribute('class', 'w-60');
$form->addInput($confirm);
/** 个人主页地址 */

View File

@@ -210,10 +210,12 @@ class Widget_Users_Profile extends Widget_Users_Edit implements Widget_Interface
/** 用户密码 */
$password = new Typecho_Widget_Helper_Form_Element_Password('password', NULL, NULL, _t('用户密码'), _t('为此用户分配一个密码.<br />
建议使用特殊字符与字母的混编样式,以增加系统安全性.'));
$password->input->setAttribute('class', 'w-60');
$form->addInput($password);
/** 用户密码确认 */
$confirm = new Typecho_Widget_Helper_Form_Element_Password('confirm', NULL, NULL, _t('用户密码确认'), _t('请确认你的密码, 与上面输入的密码保持一致.'));
$confirm->input->setAttribute('class', 'w-60');
$form->addInput($confirm);
/** 用户动作 */