/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/block-library/src/columns/editor.scss
18 строк
684 B
Ramon
Columns: Avoid using CSS variables for block gap styles (#37436)
06 янв 2022, 00:07
Не верифицирован
06 янв 2022, 00:07
d9cb56c
Код
Авторство
О чём код?
// This max-width is used to constrain the main editor column, it should not // cascade into columns. // We use :where to provide minimum specificity, so that intentional margins, // such as those of navigation menu items, override and win on specificity. .wp-block-columns :where(.wp-block) { max-width: none; margin-left: 0; margin-right: 0; } // Individual columns do not have top and bottom margins on the frontend. // So we make the editor match that. // We use :where to provide minimum specificity, so that intentional margins, // such as those configured in theme.json, override and win on specificity. html :where(.wp-block-column) { margin-top: 0; margin-bottom: 0; }