Twenty Eleven: make sure that link color options set in theme-options.php will override showcase.php recent posts and ephemera widget link colors; See #17198
git-svn-id: http://svn.automattic.com/wordpress/trunk@17755 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a87ba1d261
commit
262a27b5cf
|
@ -292,9 +292,15 @@ function twentyeleven_print_link_color_style() {
|
||||||
<style>
|
<style>
|
||||||
/* Link color */
|
/* Link color */
|
||||||
a,
|
a,
|
||||||
.entry-title a:hover {
|
.entry-title a:hover,
|
||||||
|
.widget_twentyeleven_ephemera .comments-link a:hover,
|
||||||
|
section.recent-posts .other-recent-posts a[rel="bookmark"]:hover,
|
||||||
|
section.recent-posts .other-recent-posts .comments-link a:hover {
|
||||||
color: <?php echo $link_color; ?>;
|
color: <?php echo $link_color; ?>;
|
||||||
}
|
}
|
||||||
|
section.recent-posts .other-recent-posts .comments-link a:hover {
|
||||||
|
border-color: <?php echo $link_color; ?>;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,7 +84,7 @@ class Twenty_Eleven_Ephemera_Widget extends WP_Widget {
|
||||||
|
|
||||||
<?php if ( 'link' != get_post_format() ) : ?>
|
<?php if ( 'link' != get_post_format() ) : ?>
|
||||||
|
|
||||||
<li class="entry-title">
|
<li class="widget-entry-title">
|
||||||
<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
|
<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
|
||||||
<span class="comments-link">
|
<span class="comments-link">
|
||||||
<?php comments_popup_link( __( '0 <span class="reply">comments →</span>', 'twentyeleven' ), __( '1 <span class="reply">comment →</span>', 'twentyeleven' ), __( '% <span class="reply">comments →</span>', 'twentyeleven' ) ); ?>
|
<?php comments_popup_link( __( '0 <span class="reply">comments →</span>', 'twentyeleven' ), __( '1 <span class="reply">comment →</span>', 'twentyeleven' ), __( '% <span class="reply">comments →</span>', 'twentyeleven' ) ); ?>
|
||||||
|
@ -93,7 +93,7 @@ class Twenty_Eleven_Ephemera_Widget extends WP_Widget {
|
||||||
|
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
|
|
||||||
<li class="entry-title">
|
<li class="widget-entry-title">
|
||||||
<?php
|
<?php
|
||||||
$link_url = get_permalink();
|
$link_url = get_permalink();
|
||||||
|
|
||||||
|
|
|
@ -298,7 +298,7 @@ body {
|
||||||
|
|
||||||
body, input, textarea {
|
body, input, textarea {
|
||||||
color: #333;
|
color: #333;
|
||||||
font: 15px "Helvetica Neue", Helvetica, Arial, serif;
|
font: 15px "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
line-height: 1.625;
|
line-height: 1.625;
|
||||||
}
|
}
|
||||||
|
@ -435,7 +435,7 @@ input[type=text] {
|
||||||
|
|
||||||
/* Links */
|
/* Links */
|
||||||
a {
|
a {
|
||||||
color: #1B8BE0;
|
color: #1b8be0;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
a:visited {
|
a:visited {
|
||||||
|
@ -446,7 +446,6 @@ a:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Assitive text */
|
/* Assitive text */
|
||||||
.section-heading,
|
.section-heading,
|
||||||
.screen-reader-text {
|
.screen-reader-text {
|
||||||
|
@ -491,9 +490,9 @@ a:hover {
|
||||||
-------------------------------------------------------------- */
|
-------------------------------------------------------------- */
|
||||||
|
|
||||||
#access {
|
#access {
|
||||||
background: #222;
|
background: #222; /* Show a solid color for older browsers */
|
||||||
background: -moz-linear-gradient(#252525, #0a0a0a);
|
background: -moz-linear-gradient(#252525, #0a0a0a);
|
||||||
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#252525), to(#0a0a0a));
|
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#252525), to(#0a0a0a)); /* older webkit syntax */
|
||||||
background: -webkit-linear-gradient(#252525, #0a0a0a);
|
background: -webkit-linear-gradient(#252525, #0a0a0a);
|
||||||
-webkit-box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px;
|
-webkit-box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px;
|
||||||
-moz-box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px;
|
-moz-box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px;
|
||||||
|
@ -554,9 +553,9 @@ a:hover {
|
||||||
background: #efefef;
|
background: #efefef;
|
||||||
}
|
}
|
||||||
#access li:hover > a {
|
#access li:hover > a {
|
||||||
background: #f9f9f9;
|
background: #f9f9f9; /* Show a solid color for older browsers */
|
||||||
background: -moz-linear-gradient(#f9f9f9, #e5e5e5);
|
background: -moz-linear-gradient(#f9f9f9, #e5e5e5);
|
||||||
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#f9f9f9), to(#e5e5e5));
|
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#f9f9f9), to(#e5e5e5)); /* Older webkit syntax */
|
||||||
background: -webkit-linear-gradient(#f9f9f9, #e5e5e5);
|
background: -webkit-linear-gradient(#f9f9f9, #e5e5e5);
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
|
@ -1216,7 +1215,6 @@ section.recent-posts .other-recent-posts a[rel="bookmark"]:after {
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
}
|
}
|
||||||
section.recent-posts .other-recent-posts a[rel="bookmark"]:hover {
|
section.recent-posts .other-recent-posts a[rel="bookmark"]:hover {
|
||||||
color: #1b8be0;
|
|
||||||
}
|
}
|
||||||
section.recent-posts .other-recent-posts .comments-link a,
|
section.recent-posts .other-recent-posts .comments-link a,
|
||||||
section.recent-posts .other-recent-posts .comments-link > span {
|
section.recent-posts .other-recent-posts .comments-link > span {
|
||||||
|
@ -1446,23 +1444,16 @@ section.ephemera ol,
|
||||||
list-style: square;
|
list-style: square;
|
||||||
margin: 5px 0 0;
|
margin: 5px 0 0;
|
||||||
}
|
}
|
||||||
section.ephemera .entry-title,
|
.widget_twentyeleven_ephemera .widget-entry-title {
|
||||||
.widget_twentyeleven_ephemera .entry-title {
|
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
section.ephemera .entry-title a,
|
|
||||||
.widget_twentyeleven_ephemera .entry-title a {
|
.widget_twentyeleven_ephemera .entry-title a {
|
||||||
color: #1b8be0;
|
|
||||||
}
|
}
|
||||||
section.ephemera .entry-title a:hover,
|
|
||||||
.widget_twentyeleven_ephemera .entry-title a:hover {
|
.widget_twentyeleven_ephemera .entry-title a:hover {
|
||||||
color: #ff4b33;
|
|
||||||
}
|
}
|
||||||
section.ephemera .entry-title .comments-link a,
|
.widget_twentyeleven_ephemera .comments-link a {
|
||||||
.widget_twentyeleven_ephemera .entry-title .comments-link a,
|
|
||||||
.widget_twentyeleven_ephemera .entry-title .comments-link {
|
|
||||||
color: #666;
|
color: #666;
|
||||||
display: block;
|
display: block;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
|
@ -1472,7 +1463,6 @@ section.ephemera .entry-title .comments-link a,
|
||||||
}
|
}
|
||||||
section.ephemera .entry-title .comments-link a:hover,
|
section.ephemera .entry-title .comments-link a:hover,
|
||||||
.widget_twentyeleven_ephemera .entry-title .comments-link a:hover {
|
.widget_twentyeleven_ephemera .entry-title .comments-link a:hover {
|
||||||
color: #1b8be0;
|
|
||||||
}
|
}
|
||||||
section.ephemera .entry-title a span {
|
section.ephemera .entry-title a span {
|
||||||
color: #29628d;
|
color: #29628d;
|
||||||
|
|
Loading…
Reference in New Issue