span a:hover, #back-to-top, .comment-author a:hover, .comment-metadata a:hover, .comment-body .reply .comment-reply-link:hover, .comment-respond .comment-reply-title a:hover, .widget ul li a:hover, .widget_bttk_popular_post ul li .entry-header .entry-meta > span a:hover, .widget_bttk_pro_recent_post ul li .entry-header .entry-meta > span a:hover, .site-footer .widget_bttk_popular_post ul li .entry-header .entry-meta > span a:hover, .site-footer .widget_bttk_pro_recent_post ul li .entry-header .entry-meta > span a:hover, .widget_bttk_testimonial_widget .name, .widget_blossomthemes_stat_counter_widget .blossomthemes-sc-holder .icon-holder, .widget_bttk_posts_category_slider_widget .carousel-title .cat-links a:hover, .widget_bttk_posts_category_slider_widget .carousel-title .title a:hover, .widget_bttk_icon_text_widget .rtc-itw-inner-holder .icon-holder, .widget_blossomtheme_companion_cta_widget .blossomtheme-cta-container .btn-cta:hover, .widget_blossomtheme_companion_cta_widget .blossomtheme-cta-container .btn-cta + .btn-cta, .site-footer .widget ul li a:hover, .site-footer .widget_bttk_posts_category_slider_widget .carousel-title .title a:hover, .site-footer .footer-b a:hover, .main-navigation ul li:hover > a, .main-navigation ul li.current-menu-item > a, .main-navigation ul li.current_page_item > a, .main-navigation ul li.current-menu-ancestor > a, .main-navigation ul li.current_page_ancestor > a, .main-navigation ul .sub-menu li:hover > a, .main-navigation ul .sub-menu li.current-menu-item > a, .main-navigation ul .sub-menu li.current_page_item > a, .main-navigation ul .sub-menu li.current-menu-ancestor > a, .main-navigation ul .sub-menu li.current_page_ancestor > a, .header-four .main-navigation ul.nav-menu > li:hover > a, .header-four .main-navigation ul.nav-menu > li.current-menu-item > a, .header-four .main-navigation ul.nav-menu > li.current_page_item > a, .header-four .main-navigation ul.nav-menu > li.current-menu-ancestor > a, .header-four .main-navigation ul.nav-menu > li.current_page_ancestor > a, .header-five .main-navigation ul.nav-menu > li:hover > a, .header-five .main-navigation ul.nav-menu > li.current-menu-item > a, .header-five .main-navigation ul.nav-menu > li.current_page_item > a, .header-five .main-navigation ul.nav-menu > li.current-menu-ancestor > a, .header-five .main-navigation ul.nav-menu > li.current_page_ancestor > a, .header-seven .main-navigation ul.nav-menu > li:hover > a, .header-seven .main-navigation ul.nav-menu > li.current-menu-item > a, .header-seven .main-navigation ul.nav-menu > li.current_page_item > a, .header-seven .main-navigation ul.nav-menu > li.current-menu-ancestor > a, .header-seven .main-navigation ul.nav-menu > li.current_page_ancestor > a, .posts-navigation .nav-links a, .post-navigation .nav-links a:hover, .additional-post article .entry-header .entry-meta > span a:hover, .site-banner .banner-item .banner-caption .posted-on a:hover, .story-section .section-grid-inner article:last-child .entry-title, .story-section .story-end, .story-section .story-end .story-end-title, .moredays-section .moredays-block .moredays-content-wrap .moredays-time, .officiant-section .man-matron-wrap .officiant-title, .officiant-section .bride-groom-wrap .block-title, .blog-section article .entry-meta > span a:hover, .blog-section article .btn-readmore, .list-alternate .site-main article .entry-meta > span a:hover, .list-view .site-main article .entry-meta > span a:hover, .list-alternate .site-main article .btn-readmore, .list-view .site-main article .btn-readmore, .classic-view .site-main article .entry-meta > span a:hover, .classic-view .site-main article .btn-readmore, .error404 .error-404 .error-num, .single .site-main .entry-header .byline a:hover, .single .site-main .entry-meta > span.posted-on a:hover, .single .site-main .entry-footer > span.cat-tags a:hover, .site-footer .widget_bttk_popular_post ul li .entry-header .cat-links a:hover, .site-footer .widget_bttk_pro_recent_post ul li .entry-header .cat-links a:hover, .site-footer .widget_bttk_popular_post ul li .entry-header .entry-title a:hover, .site-footer .widget_bttk_pro_recent_post ul li .entry-header .entry-title a:hover, .story-section .section-grid-inner article .entry-title, body.home .header-four .main-navigation ul.nav-menu > li:hover > a, body.home .header-four .main-navigation ul.nav-menu > li.current-menu-item > a, body.home .header-four .main-navigation ul.nav-menu > li.current_page_item > a, body.home .header-four .main-navigation ul.nav-menu > li.current-menu-ancestor > a, body.home .header-four .main-navigation ul.nav-menu > li.current_page_ancestor > a, body.home .header-five .main-navigation ul.nav-menu > li:hover > a, body.home .header-five .main-navigation ul.nav-menu > li.current-menu-item > a, body.home .header-five .main-navigation ul.nav-menu > li.current_page_item > a, body.home .header-five .main-navigation ul.nav-menu > li.current-menu-ancestor > a, body.home .header-five .main-navigation ul.nav-menu > li.current_page_ancestor > a, body.home .header-seven .main-navigation ul.nav-menu > li:hover > a, body.home .header-seven .main-navigation ul.nav-menu > li.current-menu-item > a, body.home .header-seven .main-navigation ul.nav-menu > li.current_page_item > a, body.home .header-seven .main-navigation ul.nav-menu > li.current-menu-ancestor > a, body.home .header-seven .main-navigation ul.nav-menu > li.current_page_ancestor > a, #crumbs a:hover, #crumbs .current a { color: ' . blossom_wedding_sanitize_hex_color( $primary_color ) . '; } .comment-respond .comment-form p.comment-form-cookies-consent input[type="checkbox"]:checked + label::before, .widget_bttk_social_links ul li a:hover, .widget_blossomthemes_email_newsletter_widget .img-holder, .widget_blossomthemes_email_newsletter_widget .subscribe-inner-wrap input[type="checkbox"]:checked + .check-mark, .widget_bttk_testimonial_widget .bttk-testimonial-inner-holder .img-holder, .widget_bttk_testimonial_widget .bttk-testimonial-inner-holder .img-holder img, .bttk-team-inner-holder ul.social-profile li a:hover, .tagcloud a:hover, .site-footer .widget_bttk_author_bio .author-socicons li a:hover, .site-footer .tagcloud a:hover, .site-footer .bttk-team-inner-holder ul.social-profile li a:hover, .site-footer .widget_bttk_social_links ul li a:hover, .pagination .page-numbers.current, .pagination .page-numbers:not(.dots):hover, .posts-navigation .nav-links a, #load-posts a:not(.loading):hover, .author-block .author-content-wrap .author-social ul li a:hover svg.svg-inline--fa, .moredays-section .moredays-block:before, .officiant-section .officiant-img, .officiant-section .officiant-img img { border-color: ' . blossom_wedding_sanitize_hex_color( $primary_color ) . '; } section[class*="-section"] .widget .widget-title svg .a, svg .a { stroke: ' . blossom_wedding_sanitize_hex_color( $primary_color ) . '; } .post-navigation .nav-links a:hover svg path { fill: ' . blossom_wedding_sanitize_hex_color( $primary_color ) . '; } .rsvp-flag::before, .rsvp-flag::after, .moredays-section .moredays-block .moredays-content-wrap .moredays-time .time-type { border-top-color: ' . blossom_wedding_sanitize_hex_color( $primary_color ) . '; } .moredays-section .moredays-block .moredays-content-wrap .moredays-time .time-type, .single .site-main .entry-footer > span.cat-tags a { border-bottom-color: ' . blossom_wedding_sanitize_hex_color( $primary_color ) . '; } q { border-left-color: ' . blossom_wedding_sanitize_hex_color( $primary_color ) . '; } .comments-area .comments-title, .comment-respond .comment-reply-title, .author-block .author-content-wrap .author-name, .additional-post .post-title, .list-alternate .site-main article, .list-view .site-main article, .classic-view .site-main article { ' . 'border-bottom-color: rgba(' . $rgb[0] . ', ' . $rgb[1] . ', ' . $rgb[2] . ', 0.3);' . ' } .widget-area .widget .widget-title { ' . 'border-bottom-color: rgba(' . $rgb[0] . ', ' . $rgb[1] . ', ' . $rgb[2] . ', 0.2);' . ' } .archive .page-header { ' . 'border-bottom-color: rgba(' . $rgb[0] . ', ' . $rgb[1] . ', ' . $rgb[2] . ', 0.1);' . ' } .officiant-section .bride-groom-wrap .groom-wrap + .bride-wrap { ' . 'border-left-color: rgba(' . $rgb[0] . ', ' . $rgb[1] . ', ' . $rgb[2] . ', 0.3);' . ' } .story-section .section-grid:before, .story-section .section-grid-inner:before, .story-section .section-grid-inner:after, section.countdown-section, .moredays-section .section-grid:before, .moredays-section .section-grid-inner:before, .moredays-section .section-grid-inner:after, .officiant-section .bride-groom-wrap:before, .officiant-section .bride-groom-wrap:after { ' . 'background: rgba(' . $rgb[0] . ', ' . $rgb[1] . ', ' . $rgb[2] . ', 0.3);' . ' } section.client-section { ' . 'background: rgba(' . $rgb[0] . ', ' . $rgb[1] . ', ' . $rgb[2] . ', 0.2);' . ' } @media screen and (max-width: 1024px) { .main-navigation ul li .submenu-toggle:hover, .main-navigation ul li .submenu-toggle.active, .header-four .main-navigation ul.nav-menu > li:hover > a, .header-four .main-navigation ul.nav-menu > li.current-menu-item > a, .header-four .main-navigation ul.nav-menu > li.current_page_item > a, .header-four .main-navigation ul.nav-menu > li.current-menu-ancestor > a, .header-four .main-navigation ul.nav-menu > li.current_page_ancestor > a, .header-five .main-navigation ul.nav-menu > li:hover > a, .header-five .main-navigation ul.nav-menu > li.current-menu-item > a, .header-five .main-navigation ul.nav-menu > li.current_page_item > a, .header-five .main-navigation ul.nav-menu > li.current-menu-ancestor > a, .header-five .main-navigation ul.nav-menu > li.current_page_ancestor > a, .header-seven .main-navigation ul.nav-menu > li:hover > a, .header-seven .main-navigation ul.nav-menu > li.current-menu-item > a, .header-seven .main-navigation ul.nav-menu > li.current_page_item > a, .header-seven .main-navigation ul.nav-menu > li.current-menu-ancestor > a, .header-seven .main-navigation ul.nav-menu > li.current_page_ancestor > a { color: ' . blossom_wedding_sanitize_hex_color( $primary_color ) . '; } } @media screen and (max-width: 767px) { .btn-primary { background: ' . blossom_wedding_sanitize_hex_color( $primary_color ) . '; } .btn-primary { border-color: ' . blossom_wedding_sanitize_hex_color( $primary_color ) . '; } .btn-primary:hover, .btn-primary:focus { color: ' . blossom_wedding_sanitize_hex_color( $primary_color ) . '; } .story-section .section-grid:before, .moredays-section .section-grid:before { ' . 'background: rgba(' . $rgb[0] . ', ' . $rgb[1] . ', ' . $rgb[2] . ', 0.1);' . ' } .blog-section article { ' . 'border-bottom-color: rgba(' . $rgb[0] . ', ' . $rgb[1] . ', ' . $rgb[2] . ', 0.3);' . ' } } blockquote::before, blockquote::after { background-image: url(' . ' \'data:image/svg+xml; utf-8, \'' . ' ); } section.quote-section .widget_media_image .widget-title:before, section.quote-section .widget_media_image .widget-title:after { background-image: url(' . ' \'data:image/svg+xml; utf-8, \'' . ' ); } .officiant-section .officiant-img:after { background-image: url(' . ' \'data:image/svg+xml; utf-8, \'' . ' ); } .officiant-section .matron-block .officiant-img:after { background-image: url(' . ' \'data:image/svg+xml; utf-8, \'' . ' ); } .search .page-header .search-form .search-submit:hover { background-image: url(' . ' \'data:image/svg+xml; utf-8, \'' . ' ); } .classic-view .site-main article .entry-title:after, .single .site-main .entry-header:after { background-image: url(' . ' \'data:image/svg+xml; utf-8, \'' . ' ); } .officiant-section .bride-groom-wrap .bride-wrap .officiant-img::after { background-image: url(' . ' \'data:image/svg+xml; utf-8, \'' . ' ); } section.invitation-section .widget:before { background-image: url(' . ' \'data:image/svg+xml; utf-8, \'' . ' ); } section.invitation-section .widget:after { background-image: url(' . ' \'data:image/svg+xml; utf-8, \'' . ' ); }'; if( blossom_wedding_is_woocommerce_activated() ) { $custom_css .=' .woocommerce ul.products li.product .price ins, .woocommerce div.product p.price ins, .woocommerce div.product span.price ins, .woocommerce nav.woocommerce-pagination ul li a:hover, .woocommerce nav.woocommerce-pagination ul li a:focus, .woocommerce div.product .entry-summary .woocommerce-product-rating .woocommerce-review-link:hover, .woocommerce div.product .entry-summary .woocommerce-product-rating .woocommerce-review-link:focus, .woocommerce div.product .entry-summary .product_meta .posted_in a:hover, .woocommerce div.product .entry-summary .product_meta .posted_in a:focus, .woocommerce div.product .entry-summary .product_meta .tagged_as a:hover, .woocommerce div.product .entry-summary .product_meta .tagged_as a:focus, .woocommerce-cart #primary .page .entry-content table.shop_table td.product-name a:hover, .woocommerce-cart #primary .page .entry-content table.shop_table td.product-name a:focus, .widget.woocommerce ul li a:hover, .woocommerce.widget_price_filter .price_slider_amount .button:hover, .woocommerce.widget_price_filter .price_slider_amount .button:focus, .woocommerce.widget_product_categories ul li.cat-parent .cat-toggle:hover, .woocommerce ul.product_list_widget li .product-title:hover, .woocommerce ul.product_list_widget li .product-title:focus, .woocommerce ul.product_list_widget li ins, .woocommerce ul.product_list_widget li ins .amount, .woocommerce ul.products li.product .price ins, .woocommerce div.product p.price ins, .woocommerce div.product span.price ins, .woocommerce div.product .entry-summary .product_meta .posted_in a:hover, .woocommerce div.product .entry-summary .product_meta .posted_in a:focus, .woocommerce div.product .entry-summary .product_meta .tagged_as a:hover, .woocommerce div.product .entry-summary .product_meta .tagged_as a:focus, .woocommerce div.product .entry-summary .woocommerce-product-rating .woocommerce-review-link:hover, .woocommerce div.product .entry-summary .woocommerce-product-rating .woocommerce-review-link:focus, .woocommerce nav.woocommerce-pagination ul li a:hover, .woocommerce nav.woocommerce-pagination ul li a:focus { color: ' . blossom_wedding_sanitize_hex_color( $primary_color ) . '; } .woocommerce ul.products li.product .added_to_cart:hover, .woocommerce ul.products li.product .added_to_cart:focus, .woocommerce ul.products li.product .add_to_cart_button:hover, .woocommerce ul.products li.product .add_to_cart_button:focus, .woocommerce ul.products li.product .product_type_external:hover, .woocommerce ul.products li.product .product_type_external:focus, .woocommerce ul.products li.product .ajax_add_to_cart:hover, .woocommerce ul.products li.product .ajax_add_to_cart:focus, .woocommerce ul.products li.product .button.loading, .woocommerce-page ul.products li.product .button.loading, .woocommerce nav.woocommerce-pagination ul li span.current, .woocommerce div.product .entry-summary .variations_form .single_variation_wrap .button:hover, .woocommerce div.product .entry-summary .variations_form .single_variation_wrap .button:focus, .woocommerce div.product form.cart .single_add_to_cart_button:hover, .woocommerce div.product form.cart .single_add_to_cart_button:focus, .woocommerce div.product .cart .single_add_to_cart_button.alt:hover, .woocommerce div.product .cart .single_add_to_cart_button.alt:focus, .woocommerce-cart #primary .page .entry-content table.shop_table td.actions .coupon input[type="submit"]:hover, .woocommerce-cart #primary .page .entry-content table.shop_table td.actions .coupon input[type="submit"]:focus, .woocommerce-cart #primary .page .entry-content .cart_totals .checkout-button:hover, .woocommerce-cart #primary .page .entry-content .cart_totals .checkout-button:focus, .woocommerce-checkout .woocommerce .woocommerce-info, .woocommerce-checkout .woocommerce form.woocommerce-form-login input.button:hover, .woocommerce-checkout .woocommerce form.woocommerce-form-login input.button:focus, .woocommerce-checkout .woocommerce form.checkout_coupon input.button:hover, .woocommerce-checkout .woocommerce form.checkout_coupon input.button:focus, .woocommerce form.lost_reset_password input.button:hover, .woocommerce form.lost_reset_password input.button:focus, .woocommerce .return-to-shop .button:hover, .woocommerce .return-to-shop .button:focus, .woocommerce #payment #place_order:hover, .woocommerce-page #payment #place_order:focus, .woocommerce #respond input#submit:hover, .woocommerce #respond input#submit:focus, .woocommerce a.button:hover, .woocommerce a.button:focus, .woocommerce button.button:hover, .woocommerce button.button:focus, .woocommerce input.button:hover, .woocommerce input.button:focus, .woocommerce #secondary .widget_shopping_cart .buttons .button:hover, .woocommerce #secondary .widget_shopping_cart .buttons .button:focus, .woocommerce #secondary .widget_price_filter .ui-slider .ui-slider-range, .woocommerce #secondary .widget_price_filter .price_slider_amount .button, .woocommerce .woocommerce-message .button:hover, .woocommerce .woocommerce-message .button:focus, .woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a, .woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover, .woocommerce ul.products li.product .add_to_cart_button:hover, .woocommerce ul.products li.product .add_to_cart_button:focus, .woocommerce ul.products li.product .product_type_external:hover, .woocommerce ul.products li.product .product_type_external:focus, .woocommerce ul.products li.product .ajax_add_to_cart:hover, .woocommerce ul.products li.product .ajax_add_to_cart:focus, .woocommerce ul.products li.product .product_type_grouped:hover, .woocommerce ul.products li.product .product_type_grouped:focus { background: ' . blossom_wedding_sanitize_hex_color( $primary_color ) . '; } .woocommerce .woocommerce-widget-layered-nav-list .woocommerce-widget-layered-nav-list__item.chosen a::before, .widget.widget_layered_nav_filters ul li.chosen a:before, .woocommerce-product-search button[type="submit"]:hover { background-color: ' . blossom_wedding_sanitize_hex_color( $primary_color ) . '; } .woocommerce nav.woocommerce-pagination ul li a:hover, .woocommerce nav.woocommerce-pagination ul li a:focus, .woocommerce nav.woocommerce-pagination ul li span.current, .woocommerce .woocommerce-widget-layered-nav-list .woocommerce-widget-layered-nav-list__item a:hover:before, .woocommerce.widget_layered_nav_filters ul li a:hover:before, .woocommerce .woocommerce-widget-layered-nav-list .woocommerce-widget-layered-nav-list__item.chosen a::before, .woocommerce.widget_layered_nav_filters ul li.chosen a:before, .woocommerce.widget_price_filter .ui-slider .ui-slider-handle, .woocommerce.widget_price_filter .price_slider_amount .button { border-color: ' . blossom_wedding_sanitize_hex_color( $primary_color ) . '; } .woocommerce div.product .product_title, .woocommerce div.product .woocommerce-tabs .panel h2 { font-family : ' . wp_kses_post( $primary_fonts['font'] ) . '; } .woocommerce.widget_shopping_cart ul li a, .woocommerce ul.product_list_widget li .product-title, .woocommerce-order-details .woocommerce-order-details__title, .woocommerce-order-received .woocommerce-column__title, .woocommerce-customer-details .woocommerce-column__title { font-family : ' . wp_kses_post( $primary_fonts['font'] ) . '; }'; } wp_add_inline_style( 'blossom-wedding', $custom_css ); } add_action( 'wp_enqueue_scripts', 'blossom_wedding_dynamic_css', 99 ); /** * Function for sanitizing Hex color */ function blossom_wedding_sanitize_hex_color( $color ){ if ( '' === $color ) return ''; // 3 or 6 hex digits, or the empty string. if ( preg_match('|^#([A-Fa-f0-9]{3}){1,2}$|', $color ) ) return $color; } /** * convert hex to rgb * @link http://bavotasan.com/2011/convert-hex-color-to-rgb-using-php/ */ function blossom_wedding_hex2rgb($hex) { $hex = str_replace("#", "", $hex); if(strlen($hex) == 3) { $r = hexdec(substr($hex,0,1).substr($hex,0,1)); $g = hexdec(substr($hex,1,1).substr($hex,1,1)); $b = hexdec(substr($hex,2,1).substr($hex,2,1)); } else { $r = hexdec(substr($hex,0,2)); $g = hexdec(substr($hex,2,2)); $b = hexdec(substr($hex,4,2)); } $rgb = array($r, $g, $b); //return implode(",", $rgb); // returns the rgb values separated by commas return $rgb; // returns an array with the rgb values } /** * Convert '#' to '%23' */ function blossom_wedding_hash_to_percent23( $color_code ){ $color_code = str_replace( "#", "%23", $color_code ); return $color_code; }