// Buttons .btn { -webkit-appearance: none; background-color: transparent; border: .1rem solid @core-color; border-radius: .3rem; color: @core-link-color; cursor: pointer; display: inline-block; font-size: 1.4rem; height: 3.2rem; line-height: 1.6rem; outline: 0; padding: .7rem 1.5rem; text-align: center; text-decoration: none; user-select: none; vertical-align: middle; white-space: nowrap; &:hover, &:focus { background-color: @core-color; border-color: darken(@core-color, 5%); color: #fff; } &:active, &.active { background-color: darken(@core-color, 5%); border-color: darken(@core-color, 10%); color: #fff; } // Button Primary &.btn-primary { background-color: @core-color; border-color: darken(@core-color, 5%); color: #fff; &:hover, &:focus { background-color: darken(@core-color, 5%); border-color: darken(@core-color, 10%); color: #fff; } &:active, &.active { background-color: darken(@core-color, 10%); border-color: darken(@core-color, 15%); color: #fff; } &.loading { &::after { border-color: #fff; border-right-color: transparent; border-top-color: transparent; } } } // Button Link &.btn-link { background-color: transparent; border-color: transparent; color: @core-link-color; &:hover, &:focus { color: darken(@core-link-color, 15%); } &:active, &.active { color: darken(@core-link-color, 25%); } } // Button Small &.btn-sm { border-radius: .2rem; font-size: 1.2rem; height: 2.4rem; line-height: 1.4rem; padding: .4rem 1rem; } // Button Large &.btn-lg { border-radius: .4rem; font-size: 1.8rem; height: 4.2rem; line-height: 2rem; padding: 1rem 1.8rem; } // Button Block &.btn-block { display: block; width: 100%; } // Button Clear &.btn-clear { background-color: transparent; border: 0; border-radius: .7rem; height: 1.4rem; margin: .1rem -.2rem .1rem .2rem; opacity: .35; padding: 0; position: relative; vertical-align: top; width: 1.4rem; &:hover { opacity: .75; } &::before, &::after { background-color: #333; content: ""; display: block; left: 50%; position: absolute; top: 50%; transform: rotate(-45deg); } &::before { height: .2rem; margin-left: -.5rem; margin-top: -.1rem; width: 1rem; } &::after { height: 1rem; margin-left: -.1rem; margin-top: -.5rem; width: .2rem; } } } // Button groups .btn-group { display: inline-flex; flex-wrap: wrap; .btn { flex: 1 0 auto; &:first-child:not(:last-child) { border-bottom-right-radius: 0; border-top-right-radius: 0; } &:not(:first-child):not(:last-child) { border-radius: 0; margin-left: -.1rem; } &:last-child:not(:first-child) { border-bottom-left-radius: 0; border-top-left-radius: 0; margin-left: -.1rem; } &:hover, &:focus { z-index: 99; } } &.btn-group-block { display: flex; } }