Skip to content

Commit

Permalink
fix css rules for pointer-events (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianSipple authored and RobbieTheWagner committed Sep 25, 2018
1 parent bc0da32 commit 9c9f4da
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions addon/styles/addon.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
-khtml-opacity: 0.5;
opacity: 0.5;
z-index: 9997;
pointer-events: none;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#66000000',endColorstr='#e6000000',GradientType=1);
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
filter: alpha(opacity=50);
Expand All @@ -17,16 +16,23 @@
-ms-transition: all 0.3s ease-out;
-o-transition: all 0.3s ease-out;
transition: all 0.3s ease-out;

/**
* Block all clicks except for those that would occur
* on the modals "unfilled" (in the SVG sense) opening.
*/
pointer-events: visibleFill;
}


.shepherd-modal.shepherd-enabled {
position: relative;
z-index: 9998;
}

/**
* Block clicks except for those that would occur
* on Shepherd elements or on the target element.
*/
.shepherd-active :not(.shepherd-target) {
pointer-events: none;
}
.shepherd-active .shepherd-target,
.shepherd-active .shepherd-cancel-link,
.shepherd-active .shepherd-button {
pointer-events: auto;
}

0 comments on commit 9c9f4da

Please sign in to comment.