astra_footer_menu_static_css()

Footer menu static CSS


Description


Return

(string)


Source

File: inc/builder/type/footer/menu/dynamic-css/dynamic.css.php

function astra_footer_menu_static_css() {
	$footer_menu_css = '
	.footer-nav-wrap .astra-footer-vertical-menu {
		display: grid;
	}
	@media (min-width: 769px) {
		.footer-nav-wrap .astra-footer-horizontal-menu li {
		  margin: 0;
		}
		.footer-nav-wrap .astra-footer-horizontal-menu a {
		  padding: 0 0.5em;
		}
	}';

	if ( is_rtl() ) {
		$footer_menu_css .= '
		@media (min-width: 769px) {
			.footer-nav-wrap .astra-footer-horizontal-menu li:first-child a {
				padding-right: 0;
			}
			.footer-nav-wrap .astra-footer-horizontal-menu li:last-child a {
				padding-left: 0;
			}
		}';
	} else {
		$footer_menu_css .= '
		@media (min-width: 769px) {
			.footer-nav-wrap .astra-footer-horizontal-menu li:first-child a {
				padding-left: 0;
			}
			.footer-nav-wrap .astra-footer-horizontal-menu li:last-child a {
				padding-right: 0;
			}
		}';
	}
	return Astra_Enqueue_Scripts::trim_css( $footer_menu_css );
}

Changelog

Changelog
Version Description
3.5.0 Introduced.


User Contributed Notes

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