|
169 | 169 | } |
170 | 170 | } |
171 | 171 |
|
| 172 | + &.attention { |
| 173 | + position: relative; |
| 174 | + overflow: hidden; |
| 175 | + font-weight: 600; |
| 176 | + border: 2px solid var(--theme-button-attention-border); |
| 177 | + background: var(--theme-button-attention-gradient); |
| 178 | + animation: attention-pulse 2s ease-in-out infinite; |
| 179 | + |
| 180 | + .icon { color: var(--button-accent-IconColor); } |
| 181 | + span { color: var(--button-accent-LabelColor); } |
| 182 | + |
| 183 | + &::before { |
| 184 | + content: ''; |
| 185 | + position: absolute; |
| 186 | + top: 0; |
| 187 | + left: -100%; |
| 188 | + width: 100%; |
| 189 | + height: 100%; |
| 190 | + background: var(--theme-button-attention-shine); |
| 191 | + transition: left 0.6s ease; |
| 192 | + } |
| 193 | + |
| 194 | + &:not(.disabled, :disabled):hover { |
| 195 | + background: var(--theme-button-attention-hover-gradient); |
| 196 | + border-color: var(--theme-button-attention-hover-border); |
| 197 | + transform: translateY(-2px); |
| 198 | + box-shadow: var(--theme-button-attention-hover-shadow); |
| 199 | + |
| 200 | + &::before { left: 100%; } |
| 201 | + } |
| 202 | + |
| 203 | + &:not(.disabled, :disabled):active, |
| 204 | + &.pressed:not(.disabled, :disabled) { |
| 205 | + transform: translateY(0) scale(0.98); |
| 206 | + box-shadow: var(--theme-button-attention-active-shadow); |
| 207 | + } |
| 208 | + |
| 209 | + &:not(.no-focus):focus { |
| 210 | + box-shadow: var(--theme-button-attention-focus-shadow); |
| 211 | + } |
| 212 | + |
| 213 | + &:disabled:not(.loading), |
| 214 | + &.disabled:not(.loading) { |
| 215 | + background: var(--button-disabled-BackgroundColor); |
| 216 | + border-color: var(--button-disabled-BackgroundColor); |
| 217 | + animation: none; |
| 218 | + transform: none; |
| 219 | + box-shadow: none; |
| 220 | + |
| 221 | + &::before { display: none; } |
| 222 | + } |
| 223 | + |
| 224 | + &.loading { |
| 225 | + background: var(--theme-button-attention-active-gradient); |
| 226 | + |
| 227 | + span { color: var(--button-accent-LabelColor); } |
| 228 | + } |
| 229 | + } |
| 230 | + |
172 | 231 | & > * { pointer-events: none; } |
173 | 232 | } |
174 | 233 |
|
|
532 | 591 | background-color: var(--negative-button-disabled); |
533 | 592 | } |
534 | 593 | } |
| 594 | + &.attention { |
| 595 | + position: relative; |
| 596 | + overflow: hidden; |
| 597 | + font-weight: 600; |
| 598 | + color: var(--primary-button-color); |
| 599 | + background: var(--theme-button-attention-gradient); |
| 600 | + border: 2px solid var(--theme-button-attention-border); |
| 601 | + animation: attention-pulse 2s ease-in-out infinite; |
| 602 | + |
| 603 | + .btn-icon, |
| 604 | + .btn-right-icon { color: var(--primary-button-color); } |
| 605 | + |
| 606 | + &::before { |
| 607 | + content: ''; |
| 608 | + position: absolute; |
| 609 | + top: 0; |
| 610 | + left: -100%; |
| 611 | + width: 100%; |
| 612 | + height: 100%; |
| 613 | + background: var(--theme-button-attention-shine); |
| 614 | + transition: left 0.6s ease; |
| 615 | + } |
| 616 | + |
| 617 | + &:hover { |
| 618 | + background: var(--theme-button-attention-hover-gradient); |
| 619 | + border-color: var(--theme-button-attention-hover-border); |
| 620 | + transform: translateY(-2px); |
| 621 | + box-shadow: var(--theme-button-attention-hover-shadow); |
| 622 | + |
| 623 | + &::before { left: 100%; } |
| 624 | + } |
| 625 | + |
| 626 | + &:active, |
| 627 | + &.pressed, |
| 628 | + &.pressed:hover { |
| 629 | + transform: translateY(0) scale(0.98); |
| 630 | + box-shadow: var(--theme-button-attention-active-shadow); |
| 631 | + } |
| 632 | + |
| 633 | + &:not(.no-focus):focus { |
| 634 | + box-shadow: var(--theme-button-attention-focus-shadow); |
| 635 | + } |
| 636 | + |
| 637 | + &:disabled { |
| 638 | + color: var(--primary-button-disabled-color); |
| 639 | + background: var(--primary-button-disabled); |
| 640 | + border-color: var(--primary-button-disabled); |
| 641 | + animation: none; |
| 642 | + transform: none; |
| 643 | + box-shadow: none; |
| 644 | + |
| 645 | + &::before { display: none; } |
| 646 | + |
| 647 | + .btn-icon, |
| 648 | + .btn-right-icon { color: var(--primary-button-disabled-color); } |
| 649 | + } |
| 650 | + } |
535 | 651 | &.contrast { |
536 | 652 | padding: .75rem 1rem; |
537 | 653 | font-weight: 500; |
|
902 | 1018 | content: none; |
903 | 1019 | } |
904 | 1020 | } |
| 1021 | + |
| 1022 | + @keyframes attention-pulse { |
| 1023 | + 0%, 100% { |
| 1024 | + box-shadow: var(--theme-button-attention-active-shadow), 0 0 0 0 var(--theme-button-attention-border); |
| 1025 | + transform: scale(1); |
| 1026 | + } |
| 1027 | + 50% { |
| 1028 | + box-shadow: var(--theme-button-attention-hover-shadow), 0 0 0 4px rgba(124, 58, 237, 0.1); |
| 1029 | + transform: scale(1.02); |
| 1030 | + } |
| 1031 | + } |
905 | 1032 | } |
0 commit comments