mirror of
https://github.com/typecho/typecho.git
synced 2025-03-20 09:59:41 +01:00
fix ui
This commit is contained in:
parent
f574a3e746
commit
68d82f684e
@ -1,50 +1,31 @@
|
||||
<?php if(!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
|
||||
<script type="text/javascript" src="<?php $options->adminUrl('javascript/jquery.js?v=' . $suffixVersion); ?>"></script>
|
||||
<script type="text/javascript" src="<?php $options->adminUrl('javascript/jquery-ui.js?v=' . $suffixVersion); ?>"></script>
|
||||
<script type="text/javascript" src="<?php $options->adminUrl('javascript/typecho.js?v=' . $suffixVersion); ?>"></script>
|
||||
<script type="text/javascript">
|
||||
(function () {
|
||||
window.addEvent('domready', function() {
|
||||
$(document).ready(function() {
|
||||
var _d = $(document);
|
||||
|
||||
//增加高亮效果
|
||||
(function () {
|
||||
var _hlId = '<?php echo $notice->highlight; ?>';
|
||||
|
||||
if (_hlId) {
|
||||
var _hl = _d.getElement('#' + _hlId);
|
||||
|
||||
if (_hl) {
|
||||
_hl.set('tween', {duration: 1500});
|
||||
|
||||
var _bg = _hl.getStyle('background-color');
|
||||
if (!_bg || 'transparent' == _bg) {
|
||||
_bg = '#F7FBE9';
|
||||
}
|
||||
|
||||
_hl.tween('background-color', '#AACB36', _bg);
|
||||
}
|
||||
}
|
||||
})();
|
||||
<?php if ($notice->highlight): ?>
|
||||
$('#<?php echo $notice->highlight; ?>').effect('highlight', '#AACB36', 1000);
|
||||
<?php endif; ?>
|
||||
|
||||
//增加淡出效果
|
||||
(function () {
|
||||
var _msg = _d.getElement('.popup');
|
||||
|
||||
if (_msg) {
|
||||
(function () {
|
||||
var p = $('.popup');
|
||||
|
||||
var _messageEffect = new Fx.Morph(this, {
|
||||
duration: 'short',
|
||||
transition: Fx.Transitions.Sine.easeOut
|
||||
});
|
||||
|
||||
_messageEffect.addEvent('complete', function () {
|
||||
this.element.setStyle('display', 'none');
|
||||
});
|
||||
|
||||
_messageEffect.start({'margin-top': [30, 0], 'height': [21, 0], 'opacity': [1, 0]});
|
||||
|
||||
}).delay(5000, _msg);
|
||||
if (p.length > 0) {
|
||||
if (p.hasClass('notice')) {
|
||||
p.effect('bounce');
|
||||
} else if (p.hasClass('error')) {
|
||||
p.effect('shake');
|
||||
} else {
|
||||
p.slideDown();
|
||||
}
|
||||
|
||||
p.delay(5000).fadeOut();
|
||||
}
|
||||
})();
|
||||
|
||||
|
@ -191,7 +191,9 @@ input, textarea {
|
||||
}
|
||||
|
||||
@media screen and (-webkit-min-device-pixel-ratio:0) {
|
||||
input, textarea { padding: 1px; }
|
||||
input, textarea { padding: 1px; margin: 0; }
|
||||
button { padding: 0 6px; }
|
||||
select { padding: 0; }
|
||||
}
|
||||
|
||||
textarea {
|
||||
@ -224,17 +226,14 @@ textarea {
|
||||
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.5);
|
||||
-moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.5);
|
||||
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.5);
|
||||
font-family: Menlo,Monaco,Consolas,"Lucida Console","Courier New",monospace;
|
||||
}
|
||||
|
||||
/** hack webkit border by 70 */
|
||||
select {
|
||||
font-size: 13px;
|
||||
padding: 1px;
|
||||
}
|
||||
|
||||
|
||||
@media screen and (-webkit-min-device-pixel-ratio:0) {
|
||||
select { padding: 0; }
|
||||
font-family: Menlo,Monaco,Consolas,"Lucida Console","Courier New",monospace;
|
||||
}
|
||||
|
||||
button {
|
||||
@ -442,9 +441,15 @@ img.avatar {
|
||||
|
||||
/** 增加顶部消息样式 by 70 */
|
||||
.popup {
|
||||
margin-top: 30px;
|
||||
margin-bottom: -10px;
|
||||
width: 928px;
|
||||
border-top: none;
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
text-align: center;
|
||||
font-size: 13px;
|
||||
font-weight: bold;
|
||||
padding: 3px 10px;
|
||||
display: none;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -744,6 +749,10 @@ margin-top: 25px;
|
||||
background: #444;
|
||||
}
|
||||
|
||||
#typecho-nav-list .focus .parent a {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#typecho-nav-list .child {
|
||||
display: none;
|
||||
position:absolute;
|
||||
@ -755,7 +764,7 @@ margin-top: 25px;
|
||||
padding: 10px;
|
||||
z-index: 250;
|
||||
top: 30px;
|
||||
width: 140px;
|
||||
width: 160px;
|
||||
-moz-border-radius-bottomleft: 3px;
|
||||
-moz-border-radius-bottomright: 3px;
|
||||
-webkit-border-bottom-left-radius: 3px;
|
||||
@ -812,7 +821,7 @@ margin-top: 25px;
|
||||
position:absolute;
|
||||
font-size: 12px;
|
||||
top: 0px;
|
||||
right: -5px;
|
||||
right: 0;
|
||||
/* review IE */
|
||||
*right: 25px;
|
||||
height: 30px;
|
||||
@ -1281,12 +1290,12 @@ a.operate-reply {
|
||||
|
||||
.typecho-list-table-border {
|
||||
border-collapse: separate;
|
||||
border: 1px solid #DCE2C0;
|
||||
border: 1px solid #CED7A8;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.typecho-list-table-border td {
|
||||
border-bottom: 1px solid #DCE2C0;
|
||||
border-bottom: 1px solid #CED7A8;
|
||||
}
|
||||
|
||||
.typecho-list-table input {
|
||||
@ -1302,7 +1311,7 @@ a.operate-reply {
|
||||
height: 32px;
|
||||
line-height: 20px;
|
||||
font-weight: bold;
|
||||
border-bottom: 1px solid #F7FBE9;
|
||||
border-bottom: 1px solid #CED7A8;
|
||||
background: #D3DBB3;
|
||||
}
|
||||
|
||||
@ -1890,7 +1899,6 @@ ul.typecho-list-notable li #typecho-respond {
|
||||
.typecho-edit-theme .content {
|
||||
width: 780px;
|
||||
float: left;
|
||||
overflow: hidden;
|
||||
padding: 10px 10px 10px 0px;
|
||||
}
|
||||
|
||||
@ -1902,7 +1910,6 @@ ul.typecho-list-notable li #typecho-respond {
|
||||
.typecho-edit-theme textarea {
|
||||
width: 770px;
|
||||
height: 500px;
|
||||
font-family: "Courier New",Courier,monospace;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2117,6 +2124,14 @@ ul.typecho-post-option li {
|
||||
padding: 5px 0 10px 0;
|
||||
}
|
||||
|
||||
ul.typecho-post-option li:first-child {
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
ul.typecho-post-option li:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
#advance-panel li, #upload-panel li {
|
||||
border: none;
|
||||
}
|
||||
|
3851
admin/javascript/jquery-ui.js
vendored
Normal file
3851
admin/javascript/jquery-ui.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
@ -52,14 +52,14 @@ $stat = Typecho_Widget::widget('Widget_Stat');
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="typecho-radius-topleft"> </th>
|
||||
<th> </th>
|
||||
<th> </th>
|
||||
<th><?php _e('标题'); ?></th>
|
||||
<th> </th>
|
||||
<th> </th>
|
||||
<th><?php _e('作者'); ?></th>
|
||||
<th><?php _e('分类'); ?></th>
|
||||
<th class="typecho-radius-topright"><?php _e('日期'); ?></th>
|
||||
<th><?php _e('日期'); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php if(!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
|
||||
<?php if($notice->have() && in_array($notice->noticeType, array('success', 'notice', 'error'))): ?>
|
||||
<div class="container message <?php $notice->noticeType(); ?> popup typecho-radius-topleft typecho-radius-topright typecho-radius-bottomleft typecho-radius-bottomright">
|
||||
<div class="container message <?php $notice->noticeType(); ?> popup typecho-radius-bottomleft typecho-radius-bottomright">
|
||||
<ul>
|
||||
<?php $notice->lists(); ?>
|
||||
</ul>
|
||||
|
Loading…
x
Reference in New Issue
Block a user