Skip to content

Instantly share code, notes, and snippets.

@takunagai
Last active September 11, 2022 23:36
Show Gist options
  • Save takunagai/09a1e20a8605d04672c0b4f60414abc8 to your computer and use it in GitHub Desktop.
Save takunagai/09a1e20a8605d04672c0b4f60414abc8 to your computer and use it in GitHub Desktop.
[Enable phone number clicks on mobile only] #css
<a href=”tel:00000000000″>0000-00-0000</a>
@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