array( 'top' => astra_responsive_spacing( $padded_layout_padding, 'top', 'desktop' ), 'left' => astra_responsive_spacing( $padded_layout_padding, 'left', 'desktop' ), 'margin' => esc_attr( 0 ), ), ); /** * Padded layout Tablet Spacing */ $tablet_padded_layout_spacing = array( '#ast-fixed-header' => array( 'top' => astra_responsive_spacing( $padded_layout_padding, 'top', 'tablet' ), 'left' => astra_responsive_spacing( $padded_layout_padding, 'left', 'tablet' ), 'margin' => esc_attr( 0 ), ), ); /** * Padded layout Mobile Spacing */ $mobile_padded_layout_spacing = array( '#ast-fixed-header' => array( 'top' => astra_responsive_spacing( $padded_layout_padding, 'top', 'mobile' ), 'left' => astra_responsive_spacing( $padded_layout_padding, 'left', 'mobile' ), 'margin' => esc_attr( 0 ), ), ); $parse_css .= astra_parse_css( $padded_layout_spacing ); $parse_css .= astra_parse_css( $tablet_padded_layout_spacing, '', astra_addon_get_tablet_breakpoint() ); $parse_css .= astra_parse_css( $mobile_padded_layout_spacing, '', astra_addon_get_mobile_breakpoint() ); } $css .= '.ast-above-header, .main-header-bar, .ast-below-header {'; $css .= '-webkit-transition: all 0.2s linear;'; $css .= 'transition: all 0.2s linear;'; $css .= '}'; $css .= '.ast-above-header, .main-header-bar, .ast-below-header {'; $css .= 'max-width:' . esc_attr( $page_width ) . ';'; $css .= '}'; $parse_css .= $css; return $dynamic_css . $parse_css; }