]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Neutralize link styles for placeholder links/named anchors 19411/head
authorPatrick H. Lauke <redux@splintered.co.uk>
Sat, 5 Mar 2016 01:01:09 +0000 (01:01 +0000)
committerPatrick H. Lauke <redux@splintered.co.uk>
Sat, 5 Mar 2016 01:01:09 +0000 (01:01 +0000)
scss/_reboot.scss

index 0b2990130d49c3027d2a13b3b0f46b320b40049e..d01d31f68cdd882892bdb13eb82d89a320640c3f 100644 (file)
@@ -171,6 +171,25 @@ a {
   }
 }
 
+// and undo these styles for placeholder links/named anchors (without href)
+// would be more straightforward to just use a[href] in previous block, but this
+// causes specificity issues in many other styles that are too complex to fix
+// see https://github.com/twbs/bootstrap/issues/19402
+
+a:not([href]) {
+  color: inherit;
+  text-decoration: none;
+
+  @include hover-focus {
+    color: inherit;
+    text-decoration: none;
+  }
+
+  &:focus {
+    outline: none;
+  }
+}
+
 
 //
 // Code