Twenty Fourteen: remove unneeded `!important` declarations, and comment the ones we absolutely need to keep around. Fixes #26444.

Built from https://develop.svn.wordpress.org/trunk@26689


git-svn-id: http://core.svn.wordpress.org/trunk@26579 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Lance Willett 2013-12-05 21:03:11 +00:00
parent e92d80f5c6
commit 8e352c8187
4 changed files with 7 additions and 7 deletions

View File

@ -886,7 +886,7 @@ a.post-thumbnail:hover {
}
.ie7 .screen-reader-text {
clip: rect(1px 1px 1px 1px); /* IE7 */
clip: rect(1px 1px 1px 1px);
}
.ie7 .site,
@ -904,7 +904,7 @@ a.post-thumbnail:hover {
.ie7 .search-toggle .screen-reader-text {
color: #fff;
position: relative !important;
position: relative; /* Override inherited `absolute` value set in style.css. */
}
.ie7 .search-box {

View File

@ -239,7 +239,7 @@ function twentyfourteen_scripts() {
wp_enqueue_style( 'twentyfourteen-style', get_stylesheet_uri(), array( 'genericons' ) );
// Load the Internet Explorer specific stylesheet.
wp_enqueue_style( 'twentyfourteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfourteen-style', 'genericons' ), '20131110' );
wp_enqueue_style( 'twentyfourteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfourteen-style', 'genericons' ), '20131205' );
wp_style_add_data( 'twentyfourteen-ie', 'conditional', 'lt IE 9' );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {

View File

@ -70,9 +70,9 @@ function twentyfourteen_header_style() {
?>
.site-title,
.site-description {
position: absolute;
clip: rect(1px 1px 1px 1px); /* IE7 */
clip: rect(1px, 1px, 1px, 1px);
position: absolute;
}
<?php
// If the user has set a custom color for the text, use that.

View File

@ -706,14 +706,14 @@ img.aligncenter,
.screen-reader-text {
clip: rect(1px, 1px, 1px, 1px);
position: absolute !important;
position: absolute;
}
.screen-reader-text:focus {
background-color: #f1f1f1;
border-radius: 3px;
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
clip: auto !important;
clip: auto;
color: #21759b;
display: block;
font-size: 14px;
@ -4034,7 +4034,7 @@ a.post-thumbnail:hover {
@media print {
body {
background: none !important;
background: none !important; /* Brute force since user agents all print differently. */
color: #2b2b2b;
font-size: 12pt;
}