mirror of
https://github.com/typecho/typecho.git
synced 2025-03-20 01:49:40 +01:00
修改标签页展示
This commit is contained in:
parent
ee723e3101
commit
e94cea5a7a
@ -1030,18 +1030,18 @@ a.operate-reply {
|
||||
.typecho-list-table td .thumb-box img {
|
||||
}
|
||||
|
||||
.typecho-list-table tbody tr.even, ul.typecho-list-notable li.even {
|
||||
.typecho-list-table tbody tr.even {
|
||||
}
|
||||
|
||||
.typecho-list-table tbody tr:hover td, ul.typecho-list-notable li:hover {
|
||||
.typecho-list-table tbody tr:hover td {
|
||||
background-color: #F6F6F3;
|
||||
}
|
||||
|
||||
.typecho-list-table tbody tr.checked td, ul.typecho-list-notable li.checked {
|
||||
.typecho-list-table tbody tr.checked td {
|
||||
background-color: #FFF9E8;
|
||||
}
|
||||
|
||||
.typecho-list-table tbody tr.even.checked td, ul.typecho-list-notable li.even.checked {
|
||||
.typecho-list-table tbody tr.even.checked td {
|
||||
}
|
||||
|
||||
.typecho-list-table h4 {
|
||||
@ -1060,11 +1060,11 @@ a.operate-reply {
|
||||
.typecho-list-table img.inline {
|
||||
}
|
||||
|
||||
.typecho-list-table tr td .hidden-by-mouse, ul.typecho-list-notable li .hidden-by-mouse {
|
||||
.typecho-list-table tr td .hidden-by-mouse {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.typecho-list-table tr:hover td .hidden-by-mouse, ul.typecho-list-notable li:hover .hidden-by-mouse {
|
||||
.typecho-list-table tr:hover td .hidden-by-mouse {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
@ -1757,63 +1757,37 @@ ul.typecho-list-notable li .loading {
|
||||
.typecho-page-main ul.tag-list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
padding: 20px;
|
||||
background-color: #FFF;
|
||||
}
|
||||
|
||||
.typecho-page-main ul.tag-list li {
|
||||
padding: 2px 4px;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
line-height: 28px;
|
||||
white-space:nowrap;
|
||||
float: left;
|
||||
display: block;
|
||||
display: inline-block;
|
||||
margin: 0 0 5px 0;
|
||||
padding: 5px 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.typecho-page-main ul.tag-list li:hover {
|
||||
background-color: #E9E9E6;
|
||||
}
|
||||
|
||||
.typecho-page-main ul.tag-list li input {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.typecho-page-main ul.tag-list li:hover {
|
||||
background: none;
|
||||
|
||||
.typecho-page-main ul.tag-list li.checked {
|
||||
background-color: #FFFBCC;
|
||||
}
|
||||
|
||||
.typecho-page-main ul.tag-list li.checked, .typecho-page-main ul.tag-list li.even.checked {
|
||||
background: none;
|
||||
text-decoration: underline;
|
||||
}
|
||||
.typecho-page-main ul.tag-list li.size-5 { font-size: 1em; }
|
||||
.typecho-page-main ul.tag-list li.size-10 { font-size: 1.2em; }
|
||||
.typecho-page-main ul.tag-list li.size-20 { font-size: 1.4em; }
|
||||
.typecho-page-main ul.tag-list li.size-30 { font-size: 1.6em; }
|
||||
.typecho-page-main ul.tag-list li.size-0 { font-size: 1.8em; }
|
||||
|
||||
.typecho-page-main ul.tag-list li.size-5 {
|
||||
font-size: 13px;
|
||||
color: #777;
|
||||
}
|
||||
|
||||
.typecho-page-main ul.tag-list li.size-10 {
|
||||
font-size: 16px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.typecho-page-main ul.tag-list li.size-20 {
|
||||
font-size: 18px;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.typecho-page-main ul.tag-list li.size-30 {
|
||||
font-size: 22px;
|
||||
color: #444;
|
||||
}
|
||||
|
||||
.typecho-page-main ul.tag-list li.size-0 {
|
||||
font-size: 28px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.typecho-page-main .typecho-mini-panel .tag-selection {
|
||||
}
|
||||
|
||||
.typecho-page-main .typecho-mini-panel .tag-selection a {
|
||||
}
|
||||
.typecho-page-main .tag-edit-link { visibility: hidden; }
|
||||
.typecho-page-main li:hover .tag-edit-link { visibility: visible; }
|
||||
/*
|
||||
.typecho-attachment-photo-box .description {
|
||||
}
|
||||
|
@ -103,6 +103,7 @@ include 'menu.php';
|
||||
<li class="size-<?php $tags->split(5, 10, 20, 30); ?>" id="<?php $tags->theId(); ?>">
|
||||
<input type="checkbox" value="<?php $tags->mid(); ?>" name="mid[]"/>
|
||||
<span rel="<?php echo $request->makeUriByRequest('mid=' . $tags->mid); ?>"><?php $tags->name(); ?></span>
|
||||
<a class="tag-edit-link" href="<?php echo $request->makeUriByRequest('mid=' . $tags->mid); ?>">✎</a>
|
||||
</li>
|
||||
<?php endwhile; ?>
|
||||
<?php else: ?>
|
||||
@ -169,25 +170,25 @@ include 'common-js.php';
|
||||
actionEl : '.dropdown-menu a'
|
||||
});
|
||||
|
||||
$('.typecho-table-select-all').click(function () {
|
||||
var selection = $('.tag-selection');
|
||||
// $('.typecho-table-select-all').click(function () {
|
||||
// var selection = $('.tag-selection');
|
||||
|
||||
if (0 == selection.length) {
|
||||
selection = $('<div class="tag-selection clearfix" />').prependTo('.typecho-mini-panel');
|
||||
}
|
||||
// if (0 == selection.length) {
|
||||
// selection = $('<div class="tag-selection clearfix" />').prependTo('.typecho-mini-panel');
|
||||
// }
|
||||
|
||||
selection.html('');
|
||||
// selection.html('');
|
||||
|
||||
if ($(this).prop('checked')) {
|
||||
$('.typecho-list-notable li').each(function () {
|
||||
var span = $('span', this),
|
||||
a = $('<a class="button" href="' + span.attr('rel') + '">' + span.text() + '</a>');
|
||||
// if ($(this).prop('checked')) {
|
||||
// $('.typecho-list-notable li').each(function () {
|
||||
// var span = $('span', this),
|
||||
// a = $('<a class="button" href="' + span.attr('rel') + '">' + span.text() + '</a>');
|
||||
|
||||
this.aHref = a;
|
||||
selection.append(a);
|
||||
});
|
||||
}
|
||||
});
|
||||
// this.aHref = a;
|
||||
// selection.append(a);
|
||||
// });
|
||||
// }
|
||||
// });
|
||||
}
|
||||
|
||||
$('.btn-drop').dropdownMenu({
|
||||
@ -200,22 +201,22 @@ include 'common-js.php';
|
||||
btn.parents('form').attr('action', btn.attr('rel')).submit();
|
||||
});
|
||||
|
||||
$('.typecho-list-notable li').click(function () {
|
||||
var selection = $('.tag-selection'), span = $('span', this),
|
||||
a = $('<a class="button" href="' + span.attr('rel') + '">' + span.text() + '</a>'),
|
||||
li = $(this);
|
||||
// $('.typecho-list-notable li').click(function () {
|
||||
// var selection = $('.tag-selection'), span = $('span', this),
|
||||
// a = $('<a class="button" href="' + span.attr('rel') + '">' + span.text() + '</a>'),
|
||||
// li = $(this);
|
||||
|
||||
if (0 == selection.length) {
|
||||
selection = $('<div class="tag-selection clearfix" />').prependTo('.typecho-mini-panel');
|
||||
}
|
||||
// if (0 == selection.length) {
|
||||
// selection = $('<div class="tag-selection clearfix" />').prependTo('.typecho-mini-panel');
|
||||
// }
|
||||
|
||||
if (li.hasClass('checked')) {
|
||||
this.aHref = a;
|
||||
a.appendTo(selection);
|
||||
} else {
|
||||
this.aHref.remove();
|
||||
}
|
||||
});
|
||||
// if (li.hasClass('checked')) {
|
||||
// this.aHref = a;
|
||||
// a.appendTo(selection);
|
||||
// } else {
|
||||
// this.aHref.remove();
|
||||
// }
|
||||
// });
|
||||
|
||||
<?php if (isset($request->mid)): ?>
|
||||
$('.typecho-mini-panel').effect('highlight', '#AACB36');
|
||||
|
@ -129,12 +129,12 @@ class Widget_Metas_Tag_Edit extends Widget_Abstract_Metas implements Widget_Inte
|
||||
|
||||
/** 标签名称 */
|
||||
$name = new Typecho_Widget_Helper_Form_Element_Text('name', NULL, NULL,
|
||||
_t('标签名称*'), _t('这是标签在站点中显示的名称.可以使用中文,如"地球".'));
|
||||
_t('标签名称 *'), _t('这是标签在站点中显示的名称.可以使用中文,如 "地球".'));
|
||||
$form->addInput($name);
|
||||
|
||||
/** 标签缩略名 */
|
||||
$slug = new Typecho_Widget_Helper_Form_Element_Text('slug', NULL, NULL,
|
||||
_t('标签缩略名'), _t('标签缩略名用于创建友好的链接形式,如果留空则默认使用标签名称.'));
|
||||
_t('标签缩略名'), _t('标签缩略名用于创建友好的链接形式, 如果留空则默认使用标签名称.'));
|
||||
$form->addInput($slug);
|
||||
|
||||
/** 标签动作 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user