// stylelint-disable selector-no-qualifying-type // // Base styles // .btn { display: inline-block; text-align: center; white-space: nowrap; vertical-align: middle; user-select: none; font: 600 16px Montserrat; border: $btn-border-width solid transparent; padding: 19px 55px 20px; text-transform: uppercase; @include transition($btn-transition); // Share hover and focus styles @include hover-focus { text-decoration: none; } &:focus, &.focus { outline: 0; box-shadow: $btn-focus-box-shadow; } // Disabled comes first so active can properly restyle &.disabled, &:disabled { opacity: $btn-disabled-opacity; @include box-shadow(none); } // Opinionated: add "hand" cursor to non-disabled .btn elements &:not(:disabled):not(.disabled) { cursor: pointer; } &:not(:disabled):not(.disabled):active, &:not(:disabled):not(.disabled).active { @include box-shadow($btn-active-box-shadow); &:focus { @include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow); } } } // Future-proof disabling of clicks on `` elements a.btn.disabled, fieldset:disabled a.btn { pointer-events: none; } // // Alternate buttons // @each $color, $value in $theme-colors { .btn-#{$color} { @include button-variant($value, $value); } } @each $color, $value in $theme-colors { .btn-outline-#{$color} { @include button-outline-variant($value); } } // // Link buttons // // Make a button look and behave like a link .btn-link { background-color: transparent; color: #253241; font-family: Montserrat; font-size: 12px; font-weight: 700; text-transform: uppercase; border-bottom: 2px solid #253241; transition: all .3s; @include hover { text-decoration: none; } &:focus, &.focus { text-decoration: $link-hover-decoration; border-color: transparent; box-shadow: none; } &:disabled, &.disabled { color: $btn-link-disabled-color; pointer-events: none; } // No need for an active state here } // // Button Sizes // .btn-lg { font-size: 16px; padding: 12px 35px; font-weight: 700; text-transform: uppercase; } .btn-sm { padding: 10px 22px; font-size: 14px; font-weight: 700; } // // Block button // .btn-block { display: block; width: 100%; // Vertically space out multiple block buttons + .btn-block { margin-top: $btn-block-spacing-y; } } // Specificity overrides input[type="submit"], input[type="reset"], input[type="button"] { &.btn-block { width: 100%; } }