Widget edit link layout fixes from mdawaffe. fixes #6371

git-svn-id: http://svn.automattic.com/wordpress/trunk@7964 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-05-20 19:57:38 +00:00
parent 74f878d040
commit a54eb08d09
3 changed files with 24 additions and 14 deletions

View File

@ -29,9 +29,12 @@ ul#widget-list li.widget-list-item div.widget-description {
margin-right:0;
margin-left:8px;
}
h4.widget-title span {
float: right;
}
h4.widget-title a {
right:auto;
left:1em;
float: left;
margin: 0 1em 0 0;
}
li.widget-list-control-item h4.widget-title a, #dragHelper li.widget-list-control-item h4.widget-title a, #draghelper li.widget-list-control-item h4.widget-title a:visited {
right:auto;
@ -45,5 +48,4 @@ ul.widget-control-list div.widget-control-actions {
ul.widget-control-list h4.widget-title,
#dragHelper h4.widget-title {
text-align: right;
padding: 0.4em 0.8em 0.4em 2.5em;
}

View File

@ -49,6 +49,17 @@ ul#widget-list li.widget-list-item {
line-height: 1;
}
h4.widget-title span {
float: left;
}
h4.widget-title a {
float: right;
text-decoration: underline;
border-bottom: none;
margin-left: 1em;
}
ul#widget-list li.widget-list-item h4.widget-title {
position: relative;
margin: 0;
@ -59,7 +70,7 @@ ul#widget-list li.widget-list-item h4.widget-title {
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;;
border-radius: 3px;
}
#dragHelper h4.widget-title {
@ -108,7 +119,7 @@ li.widget-sortable h4 {
margin: 0;
cursor: move;
font-size: 13px;
padding: 0.4em 2.5em 0.4em 0.8em;
padding: 0.4em 0.8em;
position: relative;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
@ -127,13 +138,6 @@ li.widget-sortable h4 {
text-decoration: none;
}
h4.widget-title a {
position: absolute;
right: 1em;
text-decoration: underline;
border-bottom: none;
}
li.widget-list-control-item h4.widget-title a,
#dragHelper li.widget-list-control-item h4.widget-title a,
#draghelper li.widget-list-control-item h4.widget-title a:visited {

View File

@ -102,7 +102,7 @@ function wp_list_widgets( $show = 'all', $_search = false ) {
<li id="widget-list-item-<?php echo attribute_escape( $widget['id'] ); ?>" class="widget-list-item">
<h4 class="widget-title widget-draggable">
<?php echo $widget_title; ?>
<span><?php echo $widget_title; ?></span>
<?php if ( 'add' == $action ) : ?>
@ -116,6 +116,8 @@ function wp_list_widgets( $show = 'all', $_search = false ) {
<?php endif; ?>
<br class="clear" />
</h4>
@ -228,7 +230,7 @@ function wp_widget_control( $sidebar_args ) {
echo $sidebar_args['before_widget'];
?>
<div class="widget-top">
<h4 class="widget-title"><?php echo $widget_title ?>
<h4 class="widget-title"><span><?php echo $widget_title ?></span>
<?php if ( $edit ) : ?>
@ -240,6 +242,8 @@ function wp_widget_control( $sidebar_args ) {
<?php endif; ?>
<br class="clear" />
</h4></div>
<div class="widget-control"<?php if ( $edit ) echo ' style="display: block;"'; ?>>