@use '../utilities/main_utilities' as *; /* Buttons/Inputs */ .button, button, input[type="submit"] { color: $color-background; background: $color-link; border: 2px solid $color-accent; border-radius: $border-radius; display: inline-block; font-size: .9rem; font-weight: bold; line-height: $line-height; margin-top: 0.5rem; padding: .6rem 1.2rem; text-decoration: none; @include color-scheme(dark) { background-color: $color-link--dark; border-color: $color-accent--dark; } } .button + .button, button + button{ margin-left: 6px; } .button--small, button.button--small, input[type="submit"].button--small{ padding: .2rem 1.6rem; } .button, button, input[type="submit"] { font-family: $font-family; } .button:hover, button:hover, input[type="submit"]:hover { cursor: pointer; filter: brightness($hover-brightness); } .button:active, button:active, input[type="submit"]:active { filter: brightness($active-brightness); } .button--blue, button.button--blue, input[type="submit"].button--blue { background-color: $color-link; color: $color-background; @include color-scheme(dark) { border-color: $color-link--dark; } } .button--disabled, button:disabled, input:disabled { background: $color-text-secondary; border-color: $color-text-secondary; color: $color-tertiary; cursor: not-allowed; @include color-scheme(dark) { background-color: $color-text-secondary--dark; border-color: $color-text-secondary--dark; color: $color-tertiary--dark; } } .button--disabled:hover, button[disabled]:hover, input[type="submit"][disabled]:hover { filter: none; }