// Buttons .btn, button { display: inline-block; height: 3.2rem; padding: .7rem 1.5rem; border: .1rem solid @core-color; background-color: transparent; border-radius: 3px; color: @core-color; font-size: 1.4rem; line-height: 1.6rem; text-align: center; text-decoration: none; vertical-align: middle; white-space: nowrap; cursor: pointer; user-select: none; -webkit-appearance: none; outline: 0; &:hover, &:focus { color: #fff; background-color: @core-color; } &:active, &.active { color: #fff; background-color: darken(@core-color, 5%); } &.loading { color: transparent !important; pointer-events: none; position: relative; &::after { border: 2px solid @core-color; border-right-color: transparent; border-top-color: transparent; border-radius: 8px; content: ""; position: absolute; left: 50%; top: 50%; margin-left: -8px; margin-top: -8px; display: block; width: 16px; height: 16px; animation: loading 500ms infinite linear; } } &[disabled] { opacity: .5; cursor: default; } // Button Primary &.btn-primary { color: #fff; border-color: @core-color; background-color: @core-color; &:hover, &:focus { color: #fff; border-color: darken(@core-color, 5%); background-color: darken(@core-color, 5%); } &:active, &.active { color: #fff; border-color: darken(@core-color, 10%); background-color: darken(@core-color, 10%); } &.loading { &::after { border-color: #fff; border-right-color: transparent; border-top-color: transparent; } } } // Button Link &.btn-link { color: @core-color; border-color: transparent; background-color: transparent; &:hover, &:focus { color: darken(@core-color, 15%); } &:active, &.active { color: darken(@core-color, 25%); } } // Button Small &.btn-sm { height: 2.4rem; border-radius: 2px; font-size: 1.2rem; line-height: 1.4rem; padding: .4rem 1rem; } // Button Large &.btn-lg { height: 4.2rem; border-radius: 4px; font-size: 1.8rem; line-height: 2rem; padding: 1rem 1.8rem; } // TODO: Button with icons // TODO: Button groups }