Add 2x icons for the list/excerpt switch on the Posts screen, props empireoflight, see #21019

git-svn-id: http://core.svn.wordpress.org/trunk@21246 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2012-07-09 06:53:43 +00:00
parent d726a5fb71
commit d47fd9d12c
3 changed files with 38 additions and 8 deletions

View File

@ -2056,20 +2056,35 @@ body.press-this ul.category-tabs li.tabs a {
color: #333;
}
.view-switch #view-switch-list,
.view-switch #view-switch-excerpt {
background-color: transparent;
background-image: url('../images/list.png');
background-repeat: no-repeat;
}
.view-switch #view-switch-list {
background: transparent url(../images/list.png) no-repeat 0 0;
background-position: 0 0;
}
.view-switch .current #view-switch-list {
background: transparent url(../images/list.png) no-repeat -40px 0;
background-position: -40px 0;
}
.view-switch #view-switch-excerpt {
background: transparent url(../images/list.png) no-repeat -20px 0;
background-position: -20px 0;
}
.view-switch .current #view-switch-excerpt {
background: transparent url(../images/list.png) no-repeat -60px 0;
background-position: -60px 0;
}
@media only screen and (-webkit-min-device-pixel-ratio: 1.5) {
.view-switch #view-switch-list,
.view-switch #view-switch-excerpt {
background-image: url('../images/list-2x.png');
background-size: 80px 20px;
}
}
#header-logo {

View File

@ -1672,20 +1672,35 @@ body.press-this ul.category-tabs li.tabs a {
color: #333;
}
.view-switch #view-switch-list,
.view-switch #view-switch-excerpt {
background-color: transparent;
background-image: url('../images/list.png');
background-repeat: no-repeat;
}
.view-switch #view-switch-list {
background: transparent url(../images/list.png) no-repeat 0 0;
background-position: 0 0;
}
.view-switch .current #view-switch-list {
background: transparent url(../images/list.png) no-repeat -40px 0;
background-position: -40px 0;
}
.view-switch #view-switch-excerpt {
background: transparent url(../images/list.png) no-repeat -20px 0;
background-position: -20px 0;
}
.view-switch .current #view-switch-excerpt {
background: transparent url(../images/list.png) no-repeat -60px 0;
background-position: -60px 0;
}
@media only screen and (-webkit-min-device-pixel-ratio: 1.5) {
.view-switch #view-switch-list,
.view-switch #view-switch-excerpt {
background-image: url('../images/list-2x.png');
background-size: 80px 20px;
}
}
#header-logo {

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB