Skip to content

Commit

Permalink
simplify selector
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Sep 16, 2020
1 parent 72c1de3 commit 4c184e1
Showing 1 changed file with 21 additions and 23 deletions.
44 changes: 21 additions & 23 deletions scss/forms/_input-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -129,32 +129,30 @@
// with the `.input-group >` part, but without it, we cannot override the sizing.

// stylelint-disable-next-line no-duplicate-selectors
.input-group {
&-start {
> .input-group-text,
> .btn {
@include border-right-radius(0);
}
.input-group-start {
> .input-group-text,
> .btn {
@include border-right-radius(0);
}

> .form-control,
> .form-select,
> .form-file {
margin-left: -$input-border-width;
@include border-left-radius(0);
}
> .form-control,
> .form-select,
> .form-file {
margin-left: -$input-border-width;
@include border-left-radius(0);
}
}

&-end {
> .input-group-text,
> .btn {
margin-left: -$input-border-width;
@include border-left-radius(0);
}
.input-group-end {
> .input-group-text,
> .btn {
margin-left: -$input-border-width;
@include border-left-radius(0);
}

> .form-control,
> .form-select,
> .form-file {
@include border-right-radius(0);
}
> .form-control,
> .form-select,
> .form-file {
@include border-right-radius(0);
}
}

0 comments on commit 4c184e1

Please sign in to comment.