Automattic\WooCommerce\Internal\ComingSoon

ComingSoonAdminBarBadge::output_css()publicWC 1.0

Output CSS for site visibility badge.

Метод класса: ComingSoonAdminBarBadge{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$ComingSoonAdminBarBadge = new ComingSoonAdminBarBadge();
$ComingSoonAdminBarBadge->output_css();

Код ComingSoonAdminBarBadge::output_css() WC 9.3.3

public function output_css() {
	if ( is_admin_bar_showing() ) {
		echo '<style>
			#wpadminbar .quicklinks #wp-admin-bar-woocommerce-site-visibility-badge a.ab-item {
				background-color: #F6F7F7;
				color: black;
				margin-top:7px;
				padding: 0 6px;
				height: 18px;
				line-height: 17px;
				border-radius: 2px;
			}

			#wpadminbar .quicklinks #wp-admin-bar-woocommerce-site-visibility-badge a.ab-item:hover,
			#wpadminbar .quicklinks #wp-admin-bar-woocommerce-site-visibility-badge a.ab-item:focus {
				background-color: #DCDCDE;
			}

			#wpadminbar .quicklinks #wp-admin-bar-woocommerce-site-visibility-badge a.ab-item:focus {
				outline: var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color-darker-20);
			}

			#wpadminbar .quicklinks #wp-admin-bar-woocommerce-site-visibility-badge.woocommerce-site-status-badge-live a.ab-item {
				background-color: #E6F2E8;
				color: #00450C;
			}

			#wpadminbar .quicklinks #wp-admin-bar-woocommerce-site-visibility-badge.woocommerce-site-status-badge-live a.ab-item:hover,
			#wpadminbar .quicklinks #wp-admin-bar-woocommerce-site-visibility-badge.woocommerce-site-status-badge-live a.ab-item:focus {
				background-color: #B8E6BF;
			}
		</style>';
	}
}