.btn { padding-top: $spacer / 2; padding-right: $spacer; padding-bottom: $spacer / 2; padding-left: $spacer; display: inline-flex; align-items: center; justify-content: space-around; svg { margin-right: $spacer / 4; } &:disabled { color: $red; fill: currentColor; box-shadow: none !important; &:not(.btn-link) { border-color: gray("400"); background-color: gray("400"); } } } .btn-primary { background-color: $red; border-radius: $border-radius; border: none; box-shadow: 1px 2px 2px -1px #4f252566 inset; &:hover { background-color: $red-hover; } &:not(:disabled):not(.disabled):active:focus, &:focus-visible { border: none; box-shadow: none; background-color: $red-click; } &:focus { border: none; box-shadow: 0px 0px 0px 4px $red-shadow; background-color: $red; } &:active { border: none; box-shadow: none; background-color: $red; } } .btn-secondary { background-color: $gray-5; color: $red; border-radius: $border-radius; border: none; box-shadow: 1px 2px 4px -1px rgb(79 37 37 / 10%) inset; &:hover { background-color: $gray-5-hover; color: $red; } &:focus { border: none; box-shadow: 0px 0px 0px 4px $red-shadow; color: $red; background-color: $gray-5-hover; } &:not(:disabled):not(.disabled):active:focus, &:focus-visible { border: none; box-shadow: none; color: $red; background-color: $gray-5-hover; } &:active { background-color: $gray-5-hover; } } .btn-danger { border: none; border-radius: $border-radius; } .btn-unstiled { border: none; &:focus { box-shadow: none; } &:active { box-shadow: none; } } .btn-popover { border: none; color: $red; height: 28px; border-radius: $border-radius; font-weight: 500; font-size: 12px; transition: ease-in 0.2s; &:hover { color: $white; transition: ease-in 0.2s; } &:focus { box-shadow: none; } &:active { box-shadow: none; } &.selected-unit-button { transition: ease-in 0.2s; color: $white; } &.selected-choice-button { transition: ease-in 0.2s; color: $white; } } .btn-toogle-popover { justify-content: flex-start; width: 25px; height: 16px; padding: 0; &:focus { box-shadow: none; } &:active { box-shadow: none; } } // Global style for all button link .btn-link { color: $text-primary; text-decoration: none !important; border-radius: $border-radius; margin-right: 5px; &:hover { background-color: gray("200"); color: theme-color("primary"); } &:active { background-color: gray("300"); } &:disabled { box-shadow: $btn-focus-box-shadow; } &.collapsed { .icon-expand { transform: rotate(180deg); transition: 0.3s linear; } .icon-expand-right { transform: rotate(180deg); transition: 0.3s linear; } } } // Icon only buttons .btn-icon-only svg { margin-right: 0; } // Datepicker, clear search and Password toggle buttons .input-action-btn, .btn-datepicker { position: absolute; right: 0; top: 0; z-index: $zindex-dropdown + 1; } // Contain input buttons within input .btn-datepicker .dropdown-toggle, .input-action-btn { padding: 6px; margin: 1px; } .btn-collapse { height: 56px; width: 100%; border-bottom: 1px solid $gray-10; gap: 8px; &:active, &:focus { box-shadow: none; } &:hover { color: $text-primary; } .icon-expand { margin-left: auto; transition: 0.3s linear; } &.collapsed { .icon-expand { transform: rotate(180deg); transition: 0.3s linear; } } }