mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 06:57:35 +01:00
e0d58b3987
Adds a new function, `wp_render_empty_block_template_warning`, that renders a warning for logged-in users when a block template is empty. Reviewed by get_dave, richtabor. Props vcanales, mikachan, peterwilsoncc, richtabor, get_dave, mrfoxtalbot, matveb, arielmaidana, seifradwane, annezazu. Fixes #62053. Built from https://develop.svn.wordpress.org/trunk@59449 git-svn-id: http://core.svn.wordpress.org/trunk@58835 1a063a9b-81f0-0310-95a4-ce76da25c4cd
24 lines
465 B
CSS
24 lines
465 B
CSS
#wp-empty-template-alert {
|
|
display: flex;
|
|
padding: var(--wp--style--root--padding-right, 2rem);
|
|
min-height: 60vh;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--wp--style--block-gap, 2rem);
|
|
}
|
|
|
|
#wp-empty-template-alert > * {
|
|
max-width: 400px;
|
|
}
|
|
|
|
#wp-empty-template-alert h2,
|
|
#wp-empty-template-alert p {
|
|
margin: 0;
|
|
text-align: center;
|
|
}
|
|
|
|
#wp-empty-template-alert a {
|
|
margin-top: 1rem;
|
|
}
|