/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/block-library/src/embed/editor.scss
55 строк
1 KB
Riad Benguella
Build v2: Migrate block library (#72333)
15 окт 2025, 13:29
Не верифицирован
15 окт 2025, 13:29
983b40b
Код
Авторство
О чём код?
@use "@wordpress/base-styles/breakpoints" as *; .wp-block-embed { // Remove the left and right margin the figure is born with. margin-left: 0; margin-right: 0; // Necessary because we use responsive trickery to set width/height, // therefore the video doesn't intrinsically clear floats like an image does. clear: both; &.is-loading { display: flex; justify-content: center; } .wp-block-embed__placeholder-input { flex: 1 1 auto; } // Stops long URLs from breaking out of the no preview available screen .components-placeholder__error { word-break: break-word; } } .wp-block-embed__learn-more { @at-root .wp-block-post-content & { a { color: var(--wp-admin-theme-color); } } } .block-library-embed__interactive-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0; } .wp-block[data-align="left"], .wp-block[data-align="right"] { > .wp-block-embed { max-width: 360px; width: 100%; // Unless these have a min-width, they collapse when floated. .wp-block-embed__wrapper { min-width: $break-zoomed-in; } } }