Breakpoint was selected based on manual testing on real-world devices, DevTools simulation does not accurately reflect the excessive thickness that is apparent on a real screen.
content: "";
position: absolute;
z-index: -1;
- top: -6px;
- left: -6px;
- width: calc(100% + 12px);
- height: calc(100% + 12px);
+ top: -4px;
+ left: -4px;
+ width: calc(100% + 8px);
+ height: calc(100% + 8px);
border-radius: 18px;
--shade: 50% 70%;
background: conic-gradient(hsl(360deg var(--shade)),
transition: opacity 400ms;
}
+@media (min-width: 370px) {
+ .card::before {
+ top: -6px;
+ left: -6px;
+ width: calc(100% + 12px);
+ height: calc(100% + 12px);
+ }
+}
+
.subtitle {
margin-block: -8px;
font-size: 0.875em;