This commit is contained in:
6 files changed
+174
-20
No files matched your search
@@ -351,3 +351,19 @@
|
||||
transition-duration: 0.01ms !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Widens a control's tap area to 44px on a phone without changing how it looks
|
||||
or what space it takes. Apply it to a container of buttons. */
|
||||
@utility touch-hit {
|
||||
@media (max-width: 767px) {
|
||||
& button:not(.absolute) {
|
||||
position: relative;
|
||||
}
|
||||
& button::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset-block: min(0px, calc((100% - 44px) / 2));
|
||||
inset-inline: min(0px, calc((100% - 44px) / 2));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user