From 9d4123cee1867ee7199b06bdc92d40611f547ecc Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Wed, 21 Jul 2021 14:54:07 -0500 Subject: Initial unmodified import from Astra (Version: 3.6.5) @ /wp-content/themes/astra/. --- .../header/account/dynamic-css/dynamic.css.php | 149 +++++++++++++++++++++ 1 file changed, 149 insertions(+) create mode 100644 inc/builder/type/header/account/dynamic-css/dynamic.css.php (limited to 'inc/builder/type/header/account/dynamic-css/dynamic.css.php') diff --git a/inc/builder/type/header/account/dynamic-css/dynamic.css.php b/inc/builder/type/header/account/dynamic-css/dynamic.css.php new file mode 100644 index 0000000..9e9458e --- /dev/null +++ b/inc/builder/type/header/account/dynamic-css/dynamic.css.php @@ -0,0 +1,149 @@ + array( + '-js-display' => 'inline-flex', + 'display' => 'inline-flex', + 'align-self' => 'center', + 'vertical-align' => 'middle', + ), + '.ast-header-account-type-avatar .avatar' => array( + 'display' => 'inline', + 'border-radius' => '100%', + 'max-width' => '100%', + ), + '.as.site-header-focus-item.ast-header-account:hover > .customize-partial-edit-shortcut' => array( + 'opacity' => '0', + ), + '.site-header-focus-item.ast-header-account:hover > * > .customize-partial-edit-shortcut' => array( + 'opacity' => '1', + ), + $selector . ' .ast-header-account-type-icon .ahfb-svg-iconset svg path:not( .ast-hf-account-unfill ), ' . $selector . ' .ast-header-account-type-icon .ahfb-svg-iconset svg circle' => array( + 'fill' => esc_attr( astra_get_option( 'header-account-icon-color' ) ), + ), + '.ast-mobile-popup-content ' . $selector . ' .ast-header-account-type-icon .ahfb-svg-iconset svg path:not( .ast-hf-account-unfill ), .ast-mobile-popup-content ' . $selector . ' .ast-header-account-type-icon .ahfb-svg-iconset svg circle' => array( + 'fill' => esc_attr( astra_get_option( 'header-account-icon-color' ) ), + ), + $selector . ' .ast-header-account-type-icon .ahfb-svg-iconset svg' => array( + 'height' => astra_get_css_value( $icon_size_desktop, 'px' ), + 'width' => astra_get_css_value( $icon_size_desktop, 'px' ), + ), + $selector . ' .ast-header-account-type-avatar .avatar' => array( + 'width' => astra_get_css_value( $image_width_desktop, 'px' ), + ), + $selector . ' .ast-header-account-text' => array( + 'color' => esc_attr( astra_get_option( 'header-account-type-text-color' ) ), + ), + $margin_selector => array( + // Margin CSS. + 'margin-top' => astra_responsive_spacing( $margin, 'top', 'desktop' ), + 'margin-bottom' => astra_responsive_spacing( $margin, 'bottom', 'desktop' ), + 'margin-left' => astra_responsive_spacing( $margin, 'left', 'desktop' ), + 'margin-right' => astra_responsive_spacing( $margin, 'right', 'desktop' ), + ), + ); + + $css_output_tablet = array( + + $selector . ' .ast-header-account-type-icon .ahfb-svg-iconset svg' => array( + 'height' => astra_get_css_value( $icon_size_tablet, 'px' ), + 'width' => astra_get_css_value( $icon_size_tablet, 'px' ), + ), + $selector . ' .ast-header-account-type-avatar .avatar' => array( + 'width' => astra_get_css_value( $image_width_tablet, 'px' ), + ), + $margin_selector => array( + // Margin CSS. + 'margin-top' => astra_responsive_spacing( $margin, 'top', 'tablet' ), + 'margin-bottom' => astra_responsive_spacing( $margin, 'bottom', 'tablet' ), + 'margin-left' => astra_responsive_spacing( $margin, 'left', 'tablet' ), + 'margin-right' => astra_responsive_spacing( $margin, 'right', 'tablet' ), + ), + ); + + $css_output_mobile = array( + + $selector . ' .ast-header-account-type-icon .ahfb-svg-iconset svg' => array( + 'height' => astra_get_css_value( $icon_size_mobile, 'px' ), + 'width' => astra_get_css_value( $icon_size_mobile, 'px' ), + ), + $selector . ' .ast-header-account-type-avatar .avatar' => array( + 'width' => astra_get_css_value( $image_width_mobile, 'px' ), + ), + $margin_selector => array( + // Margin CSS. + 'margin-top' => astra_responsive_spacing( $margin, 'top', 'mobile' ), + 'margin-bottom' => astra_responsive_spacing( $margin, 'bottom', 'mobile' ), + 'margin-left' => astra_responsive_spacing( $margin, 'left', 'mobile' ), + 'margin-right' => astra_responsive_spacing( $margin, 'right', 'mobile' ), + ), + ); + + /* Parse CSS from array() */ + $css_output = astra_parse_css( $css_output_desktop ); + $css_output .= astra_parse_css( $css_output_tablet, '', astra_get_tablet_breakpoint() ); + $css_output .= astra_parse_css( $css_output_mobile, '', astra_get_mobile_breakpoint() ); + + $dynamic_css .= $css_output; + + $dynamic_css .= Astra_Builder_Base_Dynamic_CSS::prepare_advanced_typography_css( $_section, $selector . ' .ast-header-account-text' ); + + $dynamic_css .= Astra_Builder_Base_Dynamic_CSS::prepare_visibility_css( $_section, $selector ); + + return $dynamic_css; +} -- cgit v1.2.3-60-g2f50