GC_Customize_Manager::customize_preview_loading_style()

最后更新于:2021-11-27 00:52:22

GC_Customize_Manager::customize_preview_loading_style()

Print CSS for loading indicators for the Customizer preview.

源文件

文件: gc-includes/class-gc-customize-manager.php

	public function customize_preview_loading_style() {
		?>
		<style>
			body.gc-customizer-unloading {
				opacity: 0.25;
				cursor: progress !important;
				-webkit-transition: opacity 0.5s;
				transition: opacity 0.5s;
			}
			body.gc-customizer-unloading * {
				pointer-events: none !important;
			}
			form.customize-unpreviewable,
			form.customize-unpreviewable input,
			form.customize-unpreviewable select,
			form.customize-unpreviewable button,
			a.customize-unpreviewable,
			area.customize-unpreviewable {
				cursor: not-allowed !important;
			}
		</style>
		<?php
	}