remove mobile hover styles

This commit is contained in:
august kline 2025-02-25 10:47:25 -05:00
parent 390497b743
commit 4ef7a827fe
1 changed files with 61 additions and 47 deletions

View File

@ -45,6 +45,7 @@ body,
html { html {
block-size: 100%; block-size: 100%;
inline-size: 100%; inline-size: 100%;
overflow: hidden;
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
@ -79,8 +80,10 @@ a {
outline: 2px transparent solid; outline: 2px transparent solid;
&:hover { @media (hover:hover) {
text-shadow: 0px 0px 1px var(--color); &:hover {
text-shadow: 0px 0px 1px var(--color);
}
} }
&:focus-visible { &:focus-visible {
@ -143,9 +146,11 @@ main {
} }
@media not (prefers-reduced-motion) { @media not (prefers-reduced-motion) {
&:hover { @media (hover:hover) {
transform: scale(1.025) rotate(0deg); &:hover {
box-shadow: 0px 0px 30px rgba(152, 97, 42, 0.05); transform: scale(1.025) rotate(0deg);
box-shadow: 0px 0px 30px rgba(152, 97, 42, 0.05);
}
} }
} }
@ -170,12 +175,15 @@ main {
} }
&:hover, @media (hover:hover) {
&:focus-visible {
transform: translateY(-2px) rotate(-2deg) scale(1.025);
* { &:hover,
text-shadow: 0px 2px 4px rgba(152, 97, 42, 0.1); &:focus-visible {
transform: translateY(-2px) rotate(-2deg) scale(1.025);
* {
text-shadow: 0px 2px 4px rgba(152, 97, 42, 0.1);
}
} }
} }
} }
@ -274,61 +282,65 @@ main {
filter: brightness(0.85); filter: brightness(0.85);
} }
@media (prefers-reduced-motion) { @media (prefers-reduced-motion),
(hover: none) {
.clipped-items { .clipped-items {
transform: rotate(9deg) translate(-5%, 10%); transform: rotate(9deg) translateX(-5cqi, 0);
.slip-george { .slip-george {
bottom: -15%; bottom: 1cqb;
left: 40%; left: 40cqi;
transform: translateX(-50%) rotate(-15deg); transform: translateX(-50%) rotate(-15deg);
} }
} }
.paperclip { .paperclip {
transform: rotate(4deg); transform: rotate(4deg);
top: -25%; top: -3cqb;
} }
} }
@media not (prefers-reduced-motion) { @media not (prefers-reduced-motion) {
* { @media (hover:hover) {
transition: transform 0.4s ease, top 0.3s ease, bottom 0.3s ease, left 0.3s ease; * {
} transition: transform 0.4s ease, top 0.3s ease, bottom 0.3s ease, left 0.3s ease;
&:has(.clipped-items:focus) {
.clipped-items {
transform: rotate(9deg) translate(-5%, 10%);
} }
.paperclip { &:has(.clipped-items:focus) {
transform: rotate(4deg); .clipped-items {
top: -25%; transform: rotate(9deg) translate(-5%, 10%);
}
}
&:hover,
&:focus-visible {
.clipped-items {
transform: rotate(9deg) translate(-5%, 10%);
.slip-george {
bottom: 5%;
left: 50%;
transform: translateX(-50%) rotate(-18deg);
} }
.slip-sitemap { .paperclip {
bottom: 70%; transform: rotate(4deg);
left: -30%; top: -25%;
transform: translateX(-50%) rotate(7deg);
} }
} }
.paperclip {
transform: rotate(4deg); &:hover,
top: -25%; &:focus-visible {
.clipped-items {
transform: rotate(9deg) translate(-5%, 10%);
.slip-george {
bottom: 5%;
left: 50%;
transform: translateX(-50%) rotate(-18deg);
}
.slip-sitemap {
bottom: 70%;
left: -30%;
transform: translateX(-50%) rotate(7deg);
}
}
.paperclip {
transform: rotate(4deg);
top: -25%;
}
} }
} }
} }
@ -350,9 +362,11 @@ main {
block-size: 15cqb; block-size: 15cqb;
} }
&:hover { @media (hover:hover) {
img { &:hover {
transform: rotate(0deg) scale(1.05) !important; img {
transform: rotate(0deg) scale(1.05) !important;
}
} }
} }
} }