/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/block-library/src/button/editor.scss
36 строк
878 B
Riad Benguella
Build v2: Migrate block library (#72333)
15 окт 2025, 13:29
Не верифицирован
15 окт 2025, 13:29
983b40b
Код
Авторство
О чём код?
@use "@wordpress/base-styles/colors" as *; .wp-block[data-align="center"] > .wp-block-button { text-align: center; margin-left: auto; margin-right: auto; } .wp-block[data-align="right"] > .wp-block-button { /*!rtl:ignore*/ text-align: right; } .wp-block-button { position: relative; cursor: text; // Add outline to button on focus to indicate focus-state &:focus { box-shadow: 0 0 0 1px $white, 0 0 0 3px var(--wp-admin-theme-color); // Windows' High Contrast mode will show this outline, but not the box-shadow. outline: 2px solid transparent; outline-offset: -2px; } // Increase placeholder opacity to meet contrast ratios. &[data-rich-text-placeholder]::after { opacity: 0.8; } } // Display "table" is used because the button container should only wrap the content and not takes the full width. div[data-type="core/button"] { display: table; }