Astra_Global_Palette::global_border_compatibility( string $dynamic_css )

Add dynamic CSS for the global border color.


Description


Parameters

$dynamic_css

(string) (Required) Astra Dynamic CSS.


Return

(String) Generated dynamic CSS for global border.


Source

File: inc/class-astra-global-palette.php

	public function global_border_compatibility( $dynamic_css ) {
		$global_border_color = astra_get_option( 'border-color', '#dddddd' );

		$global_border = '
			:root {
				--ast-border-color : ' . $global_border_color . ';
			}
		';

		return $dynamic_css .= Astra_Enqueue_Scripts::trim_css( $global_border );
	}

Changelog

Changelog
Version Description
3.9.0 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.