Skip to content

Commit

Permalink
remove unused css selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
fekoch committed Jan 29, 2024
1 parent 109f3ee commit 9769815
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions evap/static/scss/_adjustments.scss
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ $alert-colors: (

// If .btn is not the last element in the group, remove the right border.
// Also uses :has to not remove the right border if the next element is a disabled input
.btn:not(:last-child):not(.dropdown-toggle):has(+ :not(.btn-check[disabled])), .btn-group:not(:last-child) > .btn {
.btn:not(:last-child):has(+ :not(.btn-check[disabled])) {
border-right: 0;
}

Expand All @@ -149,9 +149,8 @@ $alert-colors: (
border-left: 0;
}

// Revert Bootstrap (Prevent double borders when buttons are next to each other)
> :not(.btn-check:first-child) + .btn,
> .btn-group:not(:first-child) {
// Revert Bootstrap's hack, that uses negative margin which would appear as double borders
:not(.btn-check:first-child) + .btn {
margin-left: unset;
}
}

0 comments on commit 9769815

Please sign in to comment.