aboutsummaryrefslogtreecommitdiff
path: root/scss/utilities
diff options
context:
space:
mode:
authorMartijn Cuppens <[email protected]>2018-12-04 21:22:12 +0100
committerMartijn Cuppens <[email protected]>2018-12-04 21:22:12 +0100
commit3007d4b4353fd0b8f3f65d660e19168e8400ee20 (patch)
tree2eddc136519e8755ffe6d72a7f0824821bca83e4 /scss/utilities
parent3e25bf403a9d07dbeef701c340c1de47bb4e58ca (diff)
downloadbootstrap-3007d4b4353fd0b8f3f65d660e19168e8400ee20.tar.xz
bootstrap-3007d4b4353fd0b8f3f65d660e19168e8400ee20.zip
Stretched link
Diffstat (limited to 'scss/utilities')
-rw-r--r--scss/utilities/_stretched-link.scss19
1 files changed, 19 insertions, 0 deletions
diff --git a/scss/utilities/_stretched-link.scss b/scss/utilities/_stretched-link.scss
new file mode 100644
index 000000000..fb5066bf5
--- /dev/null
+++ b/scss/utilities/_stretched-link.scss
@@ -0,0 +1,19 @@
+//
+// Stretched link
+//
+
+.stretched-link {
+ &::after {
+ position: absolute;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ z-index: 1;
+ // Just in case `pointer-events: none` is set on a parent
+ pointer-events: auto;
+ content: "";
+ // IE10 bugfix, see https://stackoverflow.com/questions/16947967/ie10-hover-pseudo-class-doesnt-work-without-background-color
+ background-color: rgba(0, 0, 0, 0);
+ }
+}