We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://ru.bem.info/methodology/css/#dry
В разделе описывается принцип DRY в БЭМ.
HTML
<button class="button">...</button> <button class="btn">...</button>
CSS
.button { font-family: Arial, sans-serif; text-align: center; color: #000; background: #fff; } .btn { font-family: Arial, sans-serif; text-align: center; color: #000; background: rgba(255, 0, 0, 0.4); }
<button class="button button_theme_islands">...</button> <button class="button button_theme_simple">...</button>
.button { font-family: Arial, sans-serif; text-align: center; } .button_theme_islands { color: #000; background: #fff; } .button_theme_simple { color: #000; background: rgba(255, 0, 0, 0.4); }
Что, кажется, не совсем соответствует принципам DRY
Возможно вы имели ввиду:
.button { font-family: Arial, sans-serif; text-align: center; color: #000; } .button_theme_islands { background: #fff; } .button_theme_simple { background: rgba(255, 0, 0, 0.4); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://ru.bem.info/methodology/css/#dry
В разделе описывается принцип DRY в БЭМ.
Как неправильный представлен код:
HTML
CSS
А как правильный:
HTML
CSS
Что, кажется, не совсем соответствует принципам DRY
Возможно вы имели ввиду:
CSS
The text was updated successfully, but these errors were encountered: