breadcrumb background color now calculated based on body background color

This commit is contained in:
James Koster 2016-02-05 10:04:10 +00:00
parent 08f5089c90
commit 9fb4fc3405
3 changed files with 5 additions and 4 deletions

View file

@ -442,7 +442,6 @@ a.reset_variations {
margin-bottom: 4.236em;
font-size: .857em;
padding: 1.618em 0;
background-color: rgba(#fff,.6);
a.home {
&:before {

View file

@ -409,6 +409,7 @@ class Storefront_Customizer {
* @since 1.0.0
*/
public function add_customizer_css() {
$background_color = storefront_get_content_background_color();
$accent_color = get_theme_mod( 'storefront_accent_color' );
$header_background_color = get_theme_mod( 'storefront_header_background_color' );
$header_link_color = get_theme_mod( 'storefront_header_link_color' );
@ -593,6 +594,10 @@ class Storefront_Customizer {
border-color: ' . $accent_color . ';
}
.woocommerce-breadcrumb {
background-color: ' . storefront_adjust_color_brightness( $background_color, 7 ) . ';
}
@media screen and ( min-width: 768px ) {
.site-header-cart .widget_shopping_cart,
.site-header .product_list_widget li .quantity {

View file

@ -245,7 +245,6 @@ class Storefront_WooCommerce {
* @since 1.0
*/
public function add_integrations_customizer_css() {
$accent_color = get_theme_mod( 'storefront_accent_color', apply_filters( 'storefront_default_accent_color', '#FFA107' ) );
$header_text_color = get_theme_mod( 'storefront_header_text_color', apply_filters( 'storefront_default_header_text_color', '#9aa0a7' ) );
$header_background_color = get_theme_mod( 'storefront_header_background_color', apply_filters( 'storefront_default_header_background_color', '#2c2d33' ) );
@ -319,9 +318,7 @@ class Storefront_WooCommerce {
}
wp_add_inline_style( 'storefront-style', $woocommerce_style );
}
}
endif;