Skip to content

Commit

Permalink
Selector improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnCuppens authored and andresgalante committed Sep 14, 2018
1 parent a689120 commit 3b6ca2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scss/_badge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
vertical-align: baseline;
@include border-radius($badge-border-radius);

&[href] {
@at-root a#{&} {
@include hover-focus {
text-decoration: none;
}
Expand Down
2 changes: 1 addition & 1 deletion scss/mixins/_badge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
color: color-yiq($bg);
background-color: $bg;

&[href] {
@at-root a#{&} {
@include hover-focus {
color: color-yiq($bg);
background-color: darken($bg, 10%);
Expand Down

0 comments on commit 3b6ca2a

Please sign in to comment.