/
GreenBankSdk
/
button-sdk
Обзор
Документация
Войти
/
GreenBankSdk
/
button-sdk
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/button/button.module.less
238 строк
5 KB
22110408
initial commit
28 июл 2025, 19:57
28 июл 2025, 19:57
da27b6f
Код
Авторство
О чём код?
@import 'common/styles/fonts'; @import 'common/styles/colors'; @import '~@sberbusiness/core-styles/metrics'; @import '~@sberbusiness/core-styles/typography'; body { overflow: hidden; } .sbbid_button_wrapper { position: relative; } .sbbid_button { align-self: center; display: flex; flex-direction: row; align-items: center; justify-content: center; max-height: 64px; min-height: 28px; cursor: pointer; -webkit-text-decoration: none; text-decoration: none; user-select: none; gap: 8px; height: 32px; width: 227px; margin: 0; border-radius: 16px; text-align: center; background-color: @color-malachite-02; &:hover, :focus { background-color: @color-malachite-03; } &:active { background-color: @color-malachite-01; } &[data-style='general'] { background-color: @color-malachite-02; &:hover, :focus { background-color: @color-malachite-03; } &:active { background-color: @color-malachite-01; } .sbbid_button_logo { color: @color-snowy; } } &[data-style='secondary'] { background-color: @color-snowy; box-sizing: border-box; border: 1px solid @color-asphalt-03; &:hover, :focus { background-color: @color-snowy; border: 1px solid @color-graphite-01; } &:active { background-color: @color-asphalt-03; border: 1px solid @color-graphite-01; } .sbbid_button_logo { color: @color-malachite-02; } } &[data-size='sm'] { height: 28px; width: 211px; border-radius: 16px; .sbbid_button_logo { width: 16px; height: 16px; } .sbbid_button_text { font-size: 14px; line-height: 16px; } } &[data-size='md'] { height: 32px; width: 227px; border-radius: 16px; .sbbid_button_logo { width: 16px; height: 16px; } .sbbid_button_text { font-size: 14px; line-height: 16px; } } &[data-size='lg'] { height: 40px; width: 237px; border-radius: 20px; .sbbid_button_logo { width: 22px; height: 22px; } .sbbid_button_text { font-size: 14px; line-height: 16px; } } &[data-size='xlg'] { height: 56px; width: 264px; border-radius: 30px; .sbbid_button_logo { width: 26px; height: 26px; } .sbbid_button_text { font-size: 16px; line-height: 24px; } } &[data-stretched='true'] { width: 100%; } &[data-theme='dark'] { &[data-style='general'] { background-color: @color-malachite-03; &:hover, :focus { background-color: @color-malachite-02; } &:active { background-color: @color-malachite-04; } } &[data-style='secondary'] { background-color: @color-total-black-02; border: 1px solid @color-graphite-02; &:hover, :focus { background-color: @color-total-black-02; border: 1px solid @color-asphalt-05-a; } &:active { background-color: @color-graphite-02; border: 1px solid @color-asphalt-05-a; } } } } .sbbid_button_text { font-family: 'SBSansUI', 'Arial', sans-serif; font-weight: normal; letter-spacing: 0; text-decoration: none; text-align: center; font-size: 14px; line-height: 16px; &[data-theme='light'] { &[data-style='general'] { color: @color-snowy; } &[data-style='secondary'] { color: @color-graphite-01; } } &[data-theme='dark'] { color: @color-asphalt-05-a; } &[data-size='sm'] { font-size: 14px; line-height: 16px; } &[data-size='md'] { font-size: 14px; line-height: 16px; } &[data-size='lg'] { font-size: 14px; line-height: 16px; } &[data-size='xlg'] { height: 16px; width: 24px; } } .sbbid_button_logo { width: 16px; height: 16px; color: @color-snowy; } .container { margin: 0; padding: 0; display: flex; width: 100%; align-items: center; justify-content: center; }