Fixed mobile not toggling on/off properly

- Chrome & Firefox Mobile issue
- Despite not having hover in JS, CSS :hover selector was activating
- Tiny, inactive mobile-only button was clickable
- Fixed duplicate key issue in icon links
This commit is contained in:
Xevion
2022-12-28 20:19:41 -06:00
parent 5446b5093f
commit 253930aac2
4 changed files with 29 additions and 33 deletions

View File

@@ -7,6 +7,16 @@
@tailwind components;
@tailwind utilities;
@mixin active {
.elements {
@apply grid opacity-100;
}
> img {
@apply blur-2xl;
}
}
html, body {
@apply font-manrope;
}
@@ -25,33 +35,20 @@ html, body {
}
}
&:hover, &.active {
.elements {
@apply grid opacity-100;
}
> img {
@apply blur-2xl;
@media (hover: hover) and (pointer: fine) {
&:hover {
@include active;
}
}
}
.stepped {
@apply text-white text-8xl;
font-family: monospace;
> span {
@apply transition-colors delay-300;
&:hover, &.active {
@apply text-black bg-white;
transition-delay: 0s;
}
&.active {
@include active;
}
}
.icon-grid {
direction: rtl;
@apply min-w-0 max-w-full min-h-0 max-h-full;
> a > svg {
@apply w-full h-full;