/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/block-library/src/file/editor.scss
51 строка
832 B
George Mamadashvili
File: Add center alignment editor class for classic themes (#59975)
19 мар 2024, 08:30
Не верифицирован
19 мар 2024, 08:30
998bd28
Код
Авторство
О чём код?
.wp-block-file { .wp-block[data-align="left"] > &, .wp-block[data-align="right"] > & { // Stop file block from collapsing when floated. height: auto; } .wp-block[data-align="center"] > & { text-align: center; } display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-bottom: 0; .components-resizable-box__container { margin-bottom: 1em; } .wp-block-file__preview { margin-bottom: 1em; width: 100%; height: 100%; } .wp-block-file__preview-overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; } .wp-block-file__content-wrapper { flex-grow: 1; } a { min-width: 1em; &:not(.wp-block-file__button) { display: inline-block; } } .wp-block-file__button-richtext-wrapper { display: inline-block; margin-left: 0.75em; } }