Astra_Builder_Base_Dynamic_CSS::prepare_advanced_typography_css( string $section_id, string $selector )
Prepare Advanced Margin / Padding Dynamic CSS.
Description
Parameters
- $section_id
-
(string) (Required) section id.
- $selector
-
(string) (Required) selector.
Return
(array)
Source
File: inc/builder/type/class-astra-builder-base-dynamic-css.php
public static function prepare_advanced_typography_css( $section_id, $selector ) { $font_size = astra_get_option( 'font-size-' . $section_id ); /** * Typography CSS. */ $css_output_desktop = array( $selector => array( // Typography. 'font-size' => astra_responsive_font( $font_size, 'desktop' ), ), ); $css_output_tablet = array( $selector => array( 'font-size' => astra_responsive_font( $font_size, 'tablet' ), ), ); $css_output_mobile = array( $selector => array( 'font-size' => astra_responsive_font( $font_size, '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() ); return $css_output; }
Expand full source code Collapse full source code View on Trac