SHA256
56 lines
3.8 KiB
CSS
56 lines
3.8 KiB
CSS
/* Семантические роли кнопок. Геометрией сложных компонентов владеют их стили. */
|
|
.ui-button, .primary-btn, .secondary-btn, .destructive-btn, .ghost-btn, .icon-btn, .text-btn, .shine-btn { color: var(--text-primary); background: transparent; border: 0; box-shadow: none; font: inherit; cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
|
|
.primary-btn { color: var(--on-accent); background: var(--accent); }
|
|
.secondary-btn { color: var(--text-primary); background: var(--surface); border: 1px solid var(--border-control); }
|
|
.destructive-btn { color: var(--danger); }
|
|
:is(.ui-button, .primary-btn, .secondary-btn, .destructive-btn, .ghost-btn, .icon-btn, .text-btn, .shine-btn):hover { filter: brightness(.96); }
|
|
:is(.ui-button, .primary-btn, .secondary-btn, .destructive-btn, .ghost-btn, .icon-btn, .text-btn, .shine-btn):active { filter: brightness(.9); }
|
|
:is(.ui-button, .primary-btn, .secondary-btn, .destructive-btn, .ghost-btn, .icon-btn, .text-btn, .shine-btn):focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
|
|
:is(.ui-button, .primary-btn, .secondary-btn, .destructive-btn, .ghost-btn, .icon-btn, .text-btn, .shine-btn):disabled { opacity: .5; cursor: not-allowed; filter: none; }
|
|
/* Explicit filled-action variant used by pre-auth/settings/profile screens. */
|
|
.filled-action-buttons :is(.primary-btn, .secondary-btn, .destructive-btn, .ghost-btn, .text-btn, .shine-btn, .square-btn, .login-panel-inline-back, .registration-faq-link, .profiles-select, .profiles-close) {
|
|
color: #ffffff;
|
|
background: var(--shine-action-blue);
|
|
background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
|
|
border: 0;
|
|
border-radius: 14px;
|
|
box-shadow:
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.24),
|
|
0 8px 22px rgba(var(--shine-action-blue-rgb), 0.24);
|
|
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
|
|
}
|
|
|
|
.filled-action-buttons :is(.primary-btn, .secondary-btn, .destructive-btn, .ghost-btn, .text-btn, .shine-btn, .square-btn, .login-panel-inline-back, .registration-faq-link, .profiles-select, .profiles-close):hover {
|
|
background: var(--shine-action-blue-hover);
|
|
box-shadow:
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.28),
|
|
0 10px 26px rgba(var(--shine-action-blue-rgb), 0.32);
|
|
filter: brightness(1.12);
|
|
}
|
|
|
|
.filled-action-buttons :is(.primary-btn, .secondary-btn, .destructive-btn, .ghost-btn, .text-btn, .shine-btn, .square-btn, .login-panel-inline-back, .registration-faq-link, .profiles-select, .profiles-close):active {
|
|
background: var(--shine-action-blue-pressed);
|
|
box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.26);
|
|
transform: translateY(1px) scale(0.97);
|
|
filter: brightness(0.9);
|
|
}
|
|
|
|
.filled-action-buttons :is(.primary-btn, .secondary-btn, .destructive-btn, .ghost-btn, .text-btn, .shine-btn, .square-btn, .login-panel-inline-back, .registration-faq-link, .profiles-select, .profiles-close):focus-visible {
|
|
outline: 2px solid rgba(255, 255, 255, 0.62);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.filled-action-buttons :is(.primary-btn, .secondary-btn, .destructive-btn, .ghost-btn, .text-btn, .shine-btn, .square-btn, .login-panel-inline-back, .registration-faq-link, .profiles-select, .profiles-close)::before,
|
|
.filled-action-buttons :is(.primary-btn, .secondary-btn, .destructive-btn, .ghost-btn, .text-btn, .shine-btn, .square-btn, .login-panel-inline-back, .registration-faq-link, .profiles-select, .profiles-close)::after {
|
|
background: transparent;
|
|
background-image: none;
|
|
border-color: transparent;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.filled-action-buttons :is(.primary-btn, .secondary-btn, .destructive-btn, .ghost-btn, .text-btn, .shine-btn, .square-btn, .login-panel-inline-back, .registration-faq-link, .profiles-select, .profiles-close):disabled {
|
|
color: rgba(255, 255, 255, 0.58);
|
|
background: rgba(var(--shine-action-blue-rgb), 0.42);
|
|
box-shadow: none;
|
|
}
|