WordPress/wp-includes/css/wp-empty-template-alert.css
mikachan e0d58b3987 Editor: Warn about empty templates on the frontend for logged in users.
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
2024-11-22 10:57:19 +00:00

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;
}