aboutsummaryrefslogtreecommitdiff
path: root/scss
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2019-03-16 19:13:47 +0200
committerXhmikosR <[email protected]>2019-03-18 01:11:05 +0200
commit15d242d21ad67fa5b762eb5bdfbcdfb68b9bcce1 (patch)
tree9366ccf5c78ffa2414407bf4bf4e2990a131caa1 /scss
parent08679ac0b5f34e1a1f1766be460e51bc1aa8d82a (diff)
downloadbootstrap-15d242d21ad67fa5b762eb5bdfbcdfb68b9bcce1.tar.xz
bootstrap-15d242d21ad67fa5b762eb5bdfbcdfb68b9bcce1.zip
Revert "Remove IE-specific breadcrumb CSS hack"
This reverts commit 9fda96e197abc9eba24962443ed79bc11fef485c.
Diffstat (limited to 'scss')
-rw-r--r--scss/_breadcrumb.scss10
1 files changed, 10 insertions, 0 deletions
diff --git a/scss/_breadcrumb.scss b/scss/_breadcrumb.scss
index dd856bbed..38f668153 100644
--- a/scss/_breadcrumb.scss
+++ b/scss/_breadcrumb.scss
@@ -21,6 +21,16 @@
}
}
+ // IE9-11 hack to properly handle hyperlink underlines for breadcrumbs built
+ // without `<ul>`s. The `::before` pseudo-element generates an element
+ // *within* the .breadcrumb-item and thereby inherits the `text-decoration`.
+ //
+ // To trick IE into suppressing the underline, we give the pseudo-element an
+ // underline and then immediately remove it.
+ + .breadcrumb-item:hover::before {
+ text-decoration: underline;
+ }
+ // stylelint-disable-next-line no-duplicate-selectors
+ .breadcrumb-item:hover::before {
text-decoration: none;
}