Gradients for everyone! Provide additional browser prefixes (including old webkit syntax) and clean up syntax errors. see #17324.

git-svn-id: http://svn.automattic.com/wordpress/trunk@17862 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
koopersmith 2011-05-11 18:48:26 +00:00
parent 8ed8b8751c
commit a0f0a70d15
5 changed files with 71 additions and 46 deletions

File diff suppressed because one or more lines are too long

View File

@ -819,7 +819,7 @@ table.widefat .spam a:hover,
background-image: -ms-linear-gradient(bottom, #cfdfe9, #fff); /* IE10 */
background-image: -moz-linear-gradient(bottom, #cfdfe9, #fff); /* Firefox */
background-image: -o-linear-gradient(bottom, #cfdfe9, #fff); /* Opera */
background-image: -webkit-gradient(linear, left bottom, left top, from(#cfdfe9), to(#fff)); /* old Webkit */
background-image: -webkit-gradient(linear, left bottom, left top, from(#cfdfe9), to(#fff)); /* old Webkit */
background-image: -webkit-linear-gradient(bottom, #cfdfe9, #fff) !important; /* new Webkit */
background-image: linear-gradient(bottom, #cfdfe9, #fff); /* proposed W3C Markup */
}
@ -828,9 +828,9 @@ table.widefat .spam a:hover,
border-color: #5589AA !important;
background-color: #c9c9c9; /* Fallback */
background-image: -ms-linear-gradient(bottom, #bdccd5, #fff); /* IE10 */
background-image: -moz-linear-gradient(bottom, #bdccd5, #fff)); /* Firefox */
background-image: -o-linear-gradient(bottom, #bdccd5, #fff)); /* Opera */
background-image: -webkit-gradient(linear, left bottom, left top, from(#bdccd5), to(#fff)); /* old Webkit */
background-image: -moz-linear-gradient(bottom, #bdccd5, #fff); /* Firefox */
background-image: -o-linear-gradient(bottom, #bdccd5, #fff); /* Opera */
background-image: -webkit-gradient(linear, left bottom, left top, from(#bdccd5), to(#fff)); /* old Webkit */
background-image: -webkit-linear-gradient(bottom, #bdccd5, #fff) !important; /* new Webkit */
background-image: linear-gradient(bottom, #bdccd5, #fff); /* proposed W3C Markup */
}
@ -843,9 +843,9 @@ table.widefat .spam a:hover,
.wp_themeSkin a.mceButtonActive:hover {
background: #B0C8D7 !important;
background-image: -ms-linear-gradient(bottom, #fff, #cfdfe9); /* IE10 */
background-image: -moz-linear-gradient(bottom, #fff, #cfdfe9)); /* Firefox */
background-image: -o-linear-gradient(bottom, #fff, #cfdfe9)); /* Opera */
background-image: -webkit-gradient(linear, left bottom, left top, from(#fff), to(#cfdfe9)); /* old Webkit */
background-image: -moz-linear-gradient(bottom, #fff, #cfdfe9); /* Firefox */
background-image: -o-linear-gradient(bottom, #fff, #cfdfe9); /* Opera */
background-image: -webkit-gradient(linear, left bottom, left top, from(#fff), to(#cfdfe9)); /* old Webkit */
background-image: -webkit-linear-gradient(bottom, #fff, #cfdfe9) !important; /* new Webkit */
background-image: linear-gradient(bottom, #fff, #cfdfe9); /* proposed W3C Markup */
border-color: #5589AA !important;
@ -863,7 +863,7 @@ table.widefat .spam a:hover,
background-image: -ms-linear-gradient(bottom, #cfdfe9, #fff); /* IE10 */
background-image: -moz-linear-gradient(bottom, #cfdfe9, #fff); /* Firefox */
background-image: -o-linear-gradient(bottom, #cfdfe9, #fff); /* Opera */
background-image: -webkit-gradient(linear, left bottom, left top, from(#cfdfe9), to(#fff)); /* old Webkit */
background-image: -webkit-gradient(linear, left bottom, left top, from(#cfdfe9), to(#fff)); /* old Webkit */
background-image: -webkit-linear-gradient(bottom, #cfdfe9, #fff) !important; /* new Webkit */
background-image: linear-gradient(bottom, #cfdfe9, #fff); /* proposed W3C Markup */
}
@ -892,7 +892,7 @@ table.widefat .spam a:hover,
background-image: -ms-linear-gradient(bottom, #cfdfe9, #fff); /* IE10 */
background-image: -moz-linear-gradient(bottom, #cfdfe9, #fff); /* Firefox */
background-image: -o-linear-gradient(bottom, #cfdfe9, #fff); /* Opera */
background-image: -webkit-gradient(linear, left bottom, left top, from(#cfdfe9), to(#fff)); /* old Webkit */
background-image: -webkit-gradient(linear, left bottom, left top, from(#cfdfe9), to(#fff)); /* old Webkit */
background-image: -webkit-linear-gradient(bottom, #cfdfe9, #fff) !important; /* new Webkit */
background-image: linear-gradient(bottom, #cfdfe9, #fff); /* proposed W3C Markup */
}
@ -921,7 +921,7 @@ table.widefat .spam a:hover,
background-image: -ms-linear-gradient(bottom, #cfdfe9, #fff); /* IE10 */
background-image: -moz-linear-gradient(bottom, #cfdfe9, #fff); /* Firefox */
background-image: -o-linear-gradient(bottom, #cfdfe9, #fff); /* Opera */
background-image: -webkit-gradient(linear, left bottom, left top, from(#cfdfe9), to(#fff)); /* old Webkit */
background-image: -webkit-gradient(linear, left bottom, left top, from(#cfdfe9), to(#fff)); /* old Webkit */
background-image: -webkit-linear-gradient(bottom, #cfdfe9, #fff) !important; /* new Webkit */
background-image: linear-gradient(bottom, #cfdfe9, #fff); /* proposed W3C Markup */
}
@ -930,7 +930,7 @@ table.widefat .spam a:hover,
background-image: -ms-linear-gradient(bottom, #cfdfe9, #fff); /* IE10 */
background-image: -moz-linear-gradient(bottom, #cfdfe9, #fff); /* Firefox */
background-image: -o-linear-gradient(bottom, #cfdfe9, #fff); /* Opera */
background-image: -webkit-gradient(linear, left bottom, left top, from(#cfdfe9), to(#fff)); /* old Webkit */
background-image: -webkit-gradient(linear, left bottom, left top, from(#cfdfe9), to(#fff)); /* old Webkit */
background-image: -webkit-linear-gradient(bottom, #cfdfe9, #fff) !important; /* new Webkit */
background-image: linear-gradient(bottom, #cfdfe9, #fff); /* proposed W3C Markup */
}

File diff suppressed because one or more lines are too long

View File

@ -138,8 +138,12 @@ textarea.disabled {
.widget .widget-top,
.postbox h3,
.stuffbox h3 {
background-image: -moz-linear-gradient( top, #f4f4f4, #e9e9e9 );
background-image: -webkit-linear-gradient( top, #f4f4f4, #e9e9e9 );
background-image: -ms-linear-gradient(top, #f4f4f4, #e9e9e9); /* IE10 */
background-image: -moz-linear-gradient(top, #f4f4f4, #e9e9e9); /* Firefox */
background-image: -o-linear-gradient(top, #f4f4f4, #e9e9e9); /* Opera */
background-image: -webkit-gradient(linear, left top, left bottom, from(#f4f4f4), to(#e9e9e9)); /* old Webkit */
background-image: -webkit-linear-gradient(top, #f4f4f4, #e9e9e9) !important; /* new Webkit */
background-image: linear-gradient(top, #f4f4f4, #e9e9e9); /* proposed W3C Markup */
border-bottom-color: #dfdfdf;
text-shadow: #fff 0 1px 0;
-moz-box-shadow: 0 1px 0 #fff;
@ -730,9 +734,13 @@ table.widefat span.spam a,
}
#user_info.active {
background-color: #f1f1f1;
background-image: -webkit-linear-gradient( bottom, #e9e9e9, #f9f9f9 );
background-image: -moz-linear-gradient( bottom, #e9e9e9, #f9f9f9 );
background-color: #f1f1f1; /* Fallback */
background-image: -ms-linear-gradient(bottom, #e9e9e9, #f9f9f9); /* IE10 */
background-image: -moz-linear-gradient(bottom, #e9e9e9, #f9f9f9); /* Firefox */
background-image: -o-linear-gradient(bottom, #e9e9e9, #f9f9f9); /* Opera */
background-image: -webkit-gradient(linear, left bottom, left top, from(#e9e9e9), to(#f9f9f9)); /* old Webkit */
background-image: -webkit-linear-gradient(bottom, #e9e9e9, #f9f9f9) !important; /* new Webkit */
background-image: linear-gradient(bottom, #e9e9e9, #f9f9f9); /* proposed W3C Markup */
border-color: #aaa #aaa #dfdfdf;
}
@ -882,7 +890,7 @@ table.widefat .spam a:hover,
background-image: -ms-linear-gradient(bottom, #ddd, #fff); /* IE10 */
background-image: -moz-linear-gradient(bottom, #ddd, #fff); /* Firefox */
background-image: -o-linear-gradient(bottom, #ddd, #fff); /* Opera */
background-image: -webkit-gradient(linear, left bottom, left top, from(#c9c9c9), to(#f6f6f6)); /* old Webkit */
background-image: -webkit-gradient(linear, left bottom, left top, from(#ddd), to(#fff)); /* old Webkit */
background-image: -webkit-linear-gradient(bottom, #ddd, #fff) !important; /* new Webkit */
background-image: linear-gradient(bottom, #ddd, #fff); /* proposed W3C Markup */
}
@ -892,9 +900,9 @@ table.widefat .spam a:hover,
border-color: #a0a0a0 !important;
background-color: #c9c9c9; /* Fallback */
background-image: -ms-linear-gradient(bottom, #ccc, #fff); /* IE10 */
background-image: -moz-linear-gradient(bottom, #ccc, #fff)); /* Firefox */
background-image: -o-linear-gradient(bottom, #ccc, #fff)); /* Opera */
background-image: -webkit-gradient(linear, left bottom, left top, from(#ccc), to(#fff)); /* old Webkit */
background-image: -moz-linear-gradient(bottom, #ccc, #fff); /* Firefox */
background-image: -o-linear-gradient(bottom, #ccc, #fff); /* Opera */
background-image: -webkit-gradient(linear, left bottom, left top, from(#ccc), to(#fff)); /* old Webkit */
background-image: -webkit-linear-gradient(bottom, #ccc, #fff) !important; /* new Webkit */
background-image: linear-gradient(bottom, #ccc, #fff); /* proposed W3C Markup */
}
@ -906,9 +914,9 @@ table.widefat .spam a:hover,
.wp_themeSkin a.mceButtonActive:active,
.wp_themeSkin a.mceButtonActive:hover {
background-image: -ms-linear-gradient(bottom, #eee, #bbb); /* IE10 */
background-image: -moz-linear-gradient(bottom, #eee, #bbb)); /* Firefox */
background-image: -o-linear-gradient(bottom, #eee, #bbb)); /* Opera */
background-image: -webkit-gradient(linear, left bottom, left top, from(#eee), to(#bbb)); /* old Webkit */
background-image: -moz-linear-gradient(bottom, #eee, #bbb); /* Firefox */
background-image: -o-linear-gradient(bottom, #eee, #bbb); /* Opera */
background-image: -webkit-gradient(linear, left bottom, left top, from(#eee), to(#bbb)); /* old Webkit */
background-image: -webkit-linear-gradient(bottom, #eee, #bbb) !important; /* new Webkit */
background-image: linear-gradient(bottom, #eee, #bbb); /* proposed W3C Markup */
border-color: #909090 !important;
@ -926,7 +934,7 @@ table.widefat .spam a:hover,
background-image: -ms-linear-gradient(bottom, #ddd, #fff); /* IE10 */
background-image: -moz-linear-gradient(bottom, #ddd, #fff); /* Firefox */
background-image: -o-linear-gradient(bottom, #ddd, #fff); /* Opera */
background-image: -webkit-gradient(linear, left bottom, left top, from(#c9c9c9), to(#f6f6f6)); /* old Webkit */
background-image: -webkit-gradient(linear, left bottom, left top, from(#ddd), to(#fff)); /* old Webkit */
background-image: -webkit-linear-gradient(bottom, #ddd, #fff); !important/* new Webkit */
background-image: linear-gradient(bottom, #ddd, #fff); /* proposed W3C Markup */
}
@ -953,9 +961,9 @@ table.widefat .spam a:hover,
border-color: #909090 !important;
background-color: #c9c9c9; /* Fallback */
background-image: -ms-linear-gradient(bottom, #ccc, #fff); /* IE10 */
background-image: -moz-linear-gradient(bottom, #ccc, #fff)); /* Firefox */
background-image: -o-linear-gradient(bottom, #ccc, #fff)); /* Opera */
background-image: -webkit-gradient(linear, left bottom, left top, from(#ccc), to(#fff)); /* old Webkit */
background-image: -moz-linear-gradient(bottom, #ccc, #fff); /* Firefox */
background-image: -o-linear-gradient(bottom, #ccc, #fff); /* Opera */
background-image: -webkit-gradient(linear, left bottom, left top, from(#ccc), to(#fff)); /* old Webkit */
background-image: -webkit-linear-gradient(bottom, #ccc, #fff) !important; /* new Webkit */
background-image: linear-gradient(bottom, #ccc, #fff); /* proposed W3C Markup */
}
@ -984,8 +992,8 @@ table.widefat .spam a:hover,
background-image: -ms-linear-gradient(bottom, #ddd, #fff); /* IE10 */
background-image: -moz-linear-gradient(bottom, #ddd, #fff); /* Firefox */
background-image: -o-linear-gradient(bottom, #ddd, #fff); /* Opera */
background-image: -webkit-gradient(linear, left bottom, left top, from(#c9c9c9), to(#f6f6f6)); /* old Webkit */
background-image: -webkit-linear-gradient(bottom, #ddd, #fff)!important ; /* new Webkit */
background-image: -webkit-gradient(linear, left bottom, left top, from(#ddd), to(#fff)); /* old Webkit */
background-image: -webkit-linear-gradient(bottom, #ddd, #fff) !important; /* new Webkit */
background-image: linear-gradient(bottom, #ddd, #fff); /* proposed W3C Markup */
}
@ -993,8 +1001,8 @@ table.widefat .spam a:hover,
background-image: -ms-linear-gradient(bottom, #ccc, #fff); /* IE10 */
background-image: -moz-linear-gradient(bottom, #ccc, #fff); /* Firefox */
background-image: -o-linear-gradient(bottom, #ccc, #fff); /* Opera */
background-image: -webkit-gradient(linear, left bottom, left top, from(#ccc), to(#fff)); /* old Webkit */
background-image: -webkit-linear-gradient(bottom, #ccc, #fff); !important/* new Webkit */
background-image: -webkit-gradient(linear, left bottom, left top, from(#ccc), to(#fff)); /* old Webkit */
background-image: -webkit-linear-gradient(bottom, #ccc, #fff) !important; /* new Webkit */
background-image: linear-gradient(bottom, #ccc, #fff); /* proposed W3C Markup */
}
@ -1194,9 +1202,13 @@ table.widefat .spam a:hover,
.folded #adminmenu li.current.menu-top,
#adminmenu .wp-menu-arrow,
#adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head {
background: #777; /* fallback color */
background:-moz-linear-gradient(bottom, #6d6d6d, #808080);
background:-webkit-gradient(linear, left bottom, left top, from(#6d6d6d), to(#808080));
background-color: #777; /* Fallback */
background-image: -ms-linear-gradient(bottom, #6d6d6d, #808080); /* IE10 */
background-image: -moz-linear-gradient(bottom, #6d6d6d, #808080); /* Firefox */
background-image: -o-linear-gradient(bottom, #6d6d6d, #808080); /* Opera */
background-image: -webkit-gradient(linear, left bottom, left top, from(#6d6d6d), to(#808080)); /* old Webkit */
background-image: -webkit-linear-gradient(bottom, #6d6d6d, #808080) !important; /* new Webkit */
background-image: linear-gradient(bottom, #6d6d6d, #808080); /* proposed W3C Markup */
}
#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,
@ -1258,9 +1270,13 @@ table.widefat .spam a:hover,
}
#collapse-button {
border-color: #ccc;
background-color: #f4f4f4;
background-image: -moz-linear-gradient(bottom, #dfdfdf, #fff);
background-image: -webkit-gradient(linear, left bottom, left top, from(#dfdfdf), to(#fff));
background-color: #f4f4f4; /* Fallback */
background-image: -ms-linear-gradient(bottom, #dfdfdf, #fff); /* IE10 */
background-image: -moz-linear-gradient(bottom, #dfdfdf, #fff); /* Firefox */
background-image: -o-linear-gradient(bottom, #dfdfdf, #fff); /* Opera */
background-image: -webkit-gradient(linear, left bottom, left top, from(#dfdfdf), to(#fff)); /* old Webkit */
background-image: -webkit-linear-gradient(bottom, #dfdfdf, #fff) !important; /* new Webkit */
background-image: linear-gradient(bottom, #dfdfdf, #fff); /* proposed W3C Markup */
}
#collapse-menu:hover #collapse-button {
border-color: #aaa;
@ -1447,9 +1463,13 @@ table.diff .diff-addedline ins {
#screen-options-link-wrap,
#contextual-help-link-wrap {
background-color: #e3e3e3;
background-image: -moz-linear-gradient(bottom, #dfdfdf, #f1f1f1);
background-image: -webkit-gradient(linear, left bottom, left top, from(#dfdfdf), to(#f1f1f1));
background-color: #e3e3e3; /* Fallback */
background-image: -ms-linear-gradient(bottom, #dfdfdf, #f1f1f1); /* IE10 */
background-image: -moz-linear-gradient(bottom, #dfdfdf, #f1f1f1); /* Firefox */
background-image: -o-linear-gradient(bottom, #dfdfdf, #f1f1f1); /* Opera */
background-image: -webkit-gradient(linear, left bottom, left top, from(#dfdfdf), to(#f1f1f1)); /* old Webkit */
background-image: -webkit-linear-gradient(bottom, #dfdfdf, #f1f1f1) !important; /* new Webkit */
background-image: linear-gradient(bottom, #dfdfdf, #f1f1f1); /* proposed W3C Markup */
}
#screen-meta-links a.show-settings {
@ -1808,9 +1828,14 @@ div.widgets-sortables,
}
.menu-item-handle {
background-color: #e3e3e3;
background-image: -moz-linear-gradient(bottom, #dfdfdf, #f1f1f1);
background-image: -webkit-gradient(linear, left bottom, left top, from(#dfdfdf), to(#f1f1f1));
background-color: #e3e3e3; /* Fallback */
background-image: -ms-linear-gradient(bottom, #dfdfdf, #f1f1f1); /* IE10 */
background-image: -moz-linear-gradient(bottom, #dfdfdf, #f1f1f1); /* Firefox */
background-image: -o-linear-gradient(bottom, #dfdfdf, #f1f1f1); /* Opera */
background-image: -webkit-gradient(linear, left bottom, left top, from(#dfdfdf), to(#f1f1f1)); /* old Webkit */
background-image: -webkit-linear-gradient(bottom, #dfdfdf, #f1f1f1) !important; /* new Webkit */
background-image: linear-gradient(bottom, #dfdfdf, #f1f1f1); /* proposed W3C Markup */
border-color: #aaa #aaa #dfdfdf;
}
#menu-management .nav-tab-active {

View File

@ -493,7 +493,7 @@ function wp_default_styles( &$styles ) {
$styles->add_data( 'ie', 'conditional', 'lte IE 7' );
// all colors stylesheets need to have the same query strings (cache manifest compat)
$colors_version = '20110511c';
$colors_version = '20110511d';
// Register "meta" stylesheet for admin colors. All colors-* style sheets should have the same version string.
$styles->add( 'colors', true, array(), $colors_version );