diff options
author | Martijn Cuppens <martijn.cuppens@gmail.com> | 2018-09-14 15:31:48 +0300 |
---|---|---|
committer | Andres Galante <agalante@gmail.com> | 2018-09-14 15:31:48 +0300 |
commit | 7a01f3c41b6fde3f56fb82d743767caf4bca9254 (patch) | |
tree | fc9da443ba9bd6a6043035b944083f7dfa0b5c61 | |
parent | a689120fd2af44bfb317f899b42037c46bfcd2fe (diff) |
Selector improvement (#27219)
-rw-r--r-- | scss/_badge.scss | 2 | ||||
-rw-r--r-- | scss/mixins/_badge.scss | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scss/_badge.scss b/scss/_badge.scss index 2e489a05b1..bdbe4b9cc8 100644 --- a/scss/_badge.scss +++ b/scss/_badge.scss @@ -14,7 +14,7 @@ vertical-align: baseline; @include border-radius($badge-border-radius); - &[href] { + @at-root a#{&} { @include hover-focus { text-decoration: none; } diff --git a/scss/mixins/_badge.scss b/scss/mixins/_badge.scss index 535bcb4cc3..cf99b3537a 100644 --- a/scss/mixins/_badge.scss +++ b/scss/mixins/_badge.scss @@ -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%); |