Coding for new icons for List/Excerpt view switch

git-svn-id: http://svn.automattic.com/wordpress/trunk@10004 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2008-12-01 21:32:51 +00:00
parent 2845a70b28
commit 74a0e7cab9
9 changed files with 40 additions and 35 deletions

View File

@ -1418,14 +1418,6 @@ fieldset.inline-edit-col-right .inline-edit-col {
color: #333; color: #333;
} }
.view-switch img {
border-color: #fff;
}
.view-switch img.current {
border-color: #999;
}
#wp_editimgbtn, #wp_editimgbtn,
#wp_delimgbtn, #wp_delimgbtn,
#wp_editgallery, #wp_editgallery,
@ -1546,3 +1538,19 @@ fieldset.inline-edit-col-right .inline-edit-col {
#icon-options-general { #icon-options-general {
background: transparent url(../images/icons32-vs.png) no-repeat -492px -5px; background: transparent url(../images/icons32-vs.png) no-repeat -492px -5px;
} }
.view-switch #view-switch-list {
background: transparent url(../images/list-vs.png) no-repeat 0 0;
}
.view-switch #view-switch-list.current {
background: transparent url(../images/list-vs.png) no-repeat -40px 0;
}
.view-switch #view-switch-excerpt {
background: transparent url(../images/list-vs.png) no-repeat -20px 0;
}
.view-switch #view-switch-excerpt.current {
background: transparent url(../images/list-vs.png) no-repeat -60px 0;
}

View File

@ -143,15 +143,6 @@ strong .post-com-count span {
background-color: #21759b; background-color: #21759b;
} }
#login form .submit input,
.search-box .button {
background-color: #cee1ef !important;
}
#favorite-actions .favorite-action {
border-top-color: #cee1ef;
}
ul#widget-list li.widget-list-item h4.widget-title { ul#widget-list li.widget-list-item h4.widget-title {
background-color: #f0f0f0; background-color: #f0f0f0;
color: #000; color: #000;
@ -1427,14 +1418,6 @@ fieldset.inline-edit-col-right .inline-edit-col {
color: #333; color: #333;
} }
.view-switch img {
border-color: #fff;
}
.view-switch img.current {
border-color: #999;
}
#wp_editimgbtn, #wp_editimgbtn,
#wp_delimgbtn, #wp_delimgbtn,
#wp_editgallery, #wp_editgallery,
@ -1555,3 +1538,19 @@ fieldset.inline-edit-col-right .inline-edit-col {
#icon-options-general { #icon-options-general {
background: transparent url(../images/icons32.png) no-repeat -492px -5px; background: transparent url(../images/icons32.png) no-repeat -492px -5px;
} }
.view-switch #view-switch-list {
background: transparent url(../images/list.png) no-repeat 0 0;
}
.view-switch #view-switch-list.current {
background: transparent url(../images/list.png) no-repeat -40px 0;
}
.view-switch #view-switch-excerpt {
background: transparent url(../images/list.png) no-repeat -20px 0;
}
.view-switch #view-switch-excerpt.current {
background: transparent url(../images/list.png) no-repeat -60px 0;
}

View File

@ -248,8 +248,8 @@ do_action('restrict_manage_posts');
<?php } ?> <?php } ?>
<div class="view-switch"> <div class="view-switch">
<a href="<?php echo clean_url(add_query_arg('mode', 'list', $_SERVER['REQUEST_URI'])) ?>"><img <?php if ( 'list' == $mode ) echo 'class="current"'; ?> src="images/list.gif" title="<?php _e('List View') ?>" alt="<?php _e('List View') ?>" /></a> <a href="<?php echo clean_url(add_query_arg('mode', 'list', $_SERVER['REQUEST_URI'])) ?>"><img <?php if ( 'list' == $mode ) echo 'class="current"'; ?> id="view-switch-list" src="../wp-includes/images/blank.gif" width="20" height="20" title="<?php _e('List View') ?>" alt="<?php _e('List View') ?>" /></a>
<a href="<?php echo clean_url(add_query_arg('mode', 'excerpt', $_SERVER['REQUEST_URI'])) ?>"><img <?php if ( 'excerpt' == $mode ) echo 'class="current"'; ?> src="images/exc.gif" title="<?php _e('Excerpt View') ?>" alt="<?php _e('Excerpt View') ?>" /></a> <a href="<?php echo clean_url(add_query_arg('mode', 'excerpt', $_SERVER['REQUEST_URI'])) ?>"><img <?php if ( 'excerpt' == $mode ) echo 'class="current"'; ?> id="view-switch-excerpt" src="../wp-includes/images/blank.gif" width="20" height="20" title="<?php _e('Excerpt View') ?>" alt="<?php _e('Excerpt View') ?>" /></a>
</div> </div>
<div class="clear"></div> <div class="clear"></div>

View File

@ -128,7 +128,7 @@ header( 'Content-Type: application/x-javascript; charset=UTF-8' );
?> ?>
{ {
"betaManifestVersion" : 1, "betaManifestVersion" : 1,
"version" : "<?php echo $man_version; ?>_20081130", "version" : "<?php echo $man_version; ?>_20081201",
"entries" : [ "entries" : [
<?php echo $defaults; ?> <?php echo $defaults; ?>
@ -146,7 +146,6 @@ header( 'Content-Type: application/x-javascript; charset=UTF-8' );
{ "url" : "images/comment-grey-bubble.png" }, { "url" : "images/comment-grey-bubble.png" },
{ "url" : "images/date-button.gif" }, { "url" : "images/date-button.gif" },
{ "url" : "images/ed-bg.gif" }, { "url" : "images/ed-bg.gif" },
{ "url" : "images/exc.gif" },
{ "url" : "images/fade-butt.png" }, { "url" : "images/fade-butt.png" },
{ "url" : "images/fav.png" }, { "url" : "images/fav.png" },
{ "url" : "images/fav-arrow.png" }, { "url" : "images/fav-arrow.png" },
@ -157,7 +156,8 @@ header( 'Content-Type: application/x-javascript; charset=UTF-8' );
{ "url" : "images/gray-grad.png" }, { "url" : "images/gray-grad.png" },
{ "url" : "images/icons32.png" }, { "url" : "images/icons32.png" },
{ "url" : "images/icons32-vs.png" }, { "url" : "images/icons32-vs.png" },
{ "url" : "images/list.gif" }, { "url" : "images/list.png" },
{ "url" : "images/list-vs.png" },
{ "url" : "images/loading.gif" }, { "url" : "images/loading.gif" },
{ "url" : "images/loading-publish.gif" }, { "url" : "images/loading-publish.gif" },
{ "url" : "images/logo.gif" }, { "url" : "images/logo.gif" },

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 B

BIN
wp-admin/images/list-vs.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 424 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 B

BIN
wp-admin/images/list.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 424 B

View File

@ -1924,13 +1924,11 @@ body.wp-admin {
.view-switch { .view-switch {
float: right; float: right;
margin: 5px 8px 0; margin: 6px 8px 0;
} }
.view-switch img { .view-switch a {
margin: 0; text-decoration: none;
border-width: 1px;
border-style: solid;
} }
.filter { .filter {