Last active
September 11, 2022 23:36
-
-
Save takunagai/09a1e20a8605d04672c0b4f60414abc8 to your computer and use it in GitHub Desktop.
[Enable phone number clicks on mobile only] #css
This file contains 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
<a href=”tel:00000000000″>0000-00-0000</a> |
This file contains 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
@media(min-width: 678px) { | |
a[href^="tel:"] { | |
pointer-events: none; | |
cursor: default; | |
text-decoration: none; | |
} | |
} | |
// Bootstrap | |
@include media-breakpoint-up(md) { | |
a[href^="tel:"] { | |
pointer-events: none; | |
cursor: default; | |
text-decoration: none; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment