Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treat button width definition as a block extension, not redefinition #724

Open
wants to merge 1 commit into
base: bem-info-data
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions method/redefinition-levels/redefinition-levels.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ Rendered result:

To make changes, you need to:

* Redefine the block – change the color and size of the button.
* Extend the block – add a shadow to the button.
* Redefine the block – change the color of the button.
* Extend the block – add a shadow and set the size of the button.

To do this, create the `button` block on the `common.blocks` project level and place the `button.css` file in it with the new button styles.

Expand Down
4 changes: 2 additions & 2 deletions method/redefinition-levels/redefinition-levels.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ CSS-реализация:

Чтобы внести изменения, необходимо:

* Переопределить блок — изменить цвет и размер кнопки.
* Доопределить блок — добавить кнопке тень.
* Переопределить блок — изменить цвет кнопки.
* Доопределить блок — добавить тень и указать размер кнопки.

Для этого необходимо создать блок `button` на уровне проекта `common.blocks` и разместить в нем файл `button.css` с новыми стилями для кнопки.

Expand Down