Created
December 25, 2015 06:36
-
-
Save YushengLi/824d3317f36c31f3d3e9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Remember to add tabindex to <a> | |
body.no-js { | |
a.dropdown-toggle:focus { | |
pointer-events: none; | |
} | |
a.dropdown-toggle:focus + .dropdown-menu { | |
opacity: 1; | |
visibility: visible; | |
pointer-events: auto; | |
} | |
.dropdown-menu { | |
opacity: 0; | |
display: block; | |
visibility: hidden; | |
transition: visibility 0.5s; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment