> .btn {
position: relative;
flex: 0 1 auto;
- margin-bottom: 0;
// Bring the hover, focused, and "active" buttons to the front to overlay
// the borders properly
.btn-group > .btn-group {
float: left;
}
+
.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
border-radius: 0;
}
+
.btn-group > .btn-group:first-child:not(:last-child) {
> .btn:last-child,
> .dropdown-toggle {
@include border-right-radius(0);
}
}
+
.btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {
@include border-left-radius(0);
}
//
.btn-group-vertical {
- display: inline-flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
margin-top: -$input-btn-border-width;
margin-left: 0;
}
-}
-.btn-group-vertical > .btn {
- &:not(:first-child):not(:last-child) {
- border-radius: 0;
+ > .btn {
+ &:not(:first-child):not(:last-child) {
+ border-radius: 0;
+ }
}
+
&:first-child:not(:last-child) {
@include border-bottom-radius(0);
}
+
&:last-child:not(:first-child) {
@include border-top-radius(0);
}
-}
-.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
- border-radius: 0;
-}
-.btn-group-vertical > .btn-group:first-child:not(:last-child) {
- > .btn:last-child,
- > .dropdown-toggle {
- @include border-bottom-radius(0);
+
+ > .btn-group:not(:first-child):not(:last-child) > .btn {
+ border-radius: 0;
+ }
+
+ > .btn-group:first-child:not(:last-child) {
+ > .btn:last-child,
+ > .dropdown-toggle {
+ @include border-bottom-radius(0);
+ }
+ }
+
+ > .btn-group:last-child:not(:first-child) > .btn:first-child {
+ @include border-top-radius(0);
}
-}
-.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {
- @include border-top-radius(0);
}
.btn-link {
font-weight: $font-weight-normal;
color: $link-color;
+ background-color: transparent;
border-radius: 0;
- &,
- &:active,
- &.active,
- &:disabled {
+ @include hover {
+ color: $link-hover-color;
+ text-decoration: $link-hover-decoration;
background-color: transparent;
- @include box-shadow(none);
+ border-color: transparent;
}
- &,
+
&:focus,
- &:active {
+ &.focus {
border-color: transparent;
box-shadow: none;
}
- @include hover {
- border-color: transparent;
- }
- @include hover-focus {
- color: $link-hover-color;
- text-decoration: $link-hover-decoration;
- background-color: transparent;
- }
- &:disabled {
- color: $btn-link-disabled-color;
- @include hover-focus {
- text-decoration: none;
- }
+ &:disabled,
+ &.disabled {
+ color: $btn-link-disabled-color;
}
+
+ // No need for an active state here
}