Skip to content

Commit 62e15f3

Browse files
Add files via upload
1 parent b19eddd commit 62e15f3

1 file changed

Lines changed: 74 additions & 0 deletions

File tree

metridex_theme_hover.css

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
2+
/* === Metridex: hover & light-theme enhancements (additive, safe) === */
3+
4+
/* Subtle hover for feature cards (keeps layout stable) */
5+
.features-grid .feature.glass {
6+
transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
7+
will-change: transform;
8+
}
9+
.features-grid .feature.glass:hover {
10+
transform: translateY(-2px);
11+
box-shadow: 0 10px 24px rgba(0,0,0,.28);
12+
border-color: rgba(229,201,122,.65); /* gold */
13+
}
14+
15+
/* Reduced-motion: disable lift */
16+
@media (prefers-reduced-motion: reduce) {
17+
.features-grid .feature.glass,
18+
.cta-row .cta {
19+
transition: none !important;
20+
}
21+
.features-grid .feature.glass:hover {
22+
transform: none !important;
23+
box-shadow: none !important;
24+
}
25+
}
26+
27+
/* CTA gentle hover (matches earlier style) */
28+
.cta-row .cta {
29+
transition: transform .08s ease, box-shadow .14s ease, border-color .14s ease;
30+
}
31+
.cta-row .cta:hover {
32+
transform: translateY(-1px);
33+
box-shadow: 0 6px 14px rgba(0,0,0,.22);
34+
border-color: #f1d58a;
35+
}
36+
37+
/* Hero tip readability */
38+
.hero-tip.text-center {
39+
max-width: 860px;
40+
margin-left: auto;
41+
margin-right: auto;
42+
}
43+
44+
/* === Light theme (automatic) === */
45+
@media (prefers-color-scheme: light) {
46+
body { background: #fafafa; color: #0f0f0f; }
47+
.glass, .feature.glass {
48+
background: #ffffff;
49+
border-color: #e7e7e7;
50+
box-shadow: 0 1px 0 rgba(0,0,0,.02) inset;
51+
}
52+
h1, h2, h3, h4 { color: #111; }
53+
.hero-tip { color: #333; }
54+
/* Accent gold slightly darker for light bg */
55+
.accent, .badge, .plan-note, a, .cta-row .cta {
56+
border-color: rgba(193,154,52,.55);
57+
color: #111;
58+
}
59+
.cta-row .cta:hover {
60+
box-shadow: 0 8px 18px rgba(0,0,0,.12);
61+
border-color: rgba(193,154,52,.85);
62+
background: #fffdf4;
63+
}
64+
/* Bottom banner (if present) */
65+
#paywallBanner, #paywall, .paywall, .footer-bar {
66+
background: #fffef7;
67+
color: #111;
68+
border-top: 1px solid #ece2c2;
69+
}
70+
#paywallBanner a, #paywall a, .paywall a, .footer-bar a {
71+
color: #111;
72+
border-color: rgba(193,154,52,.45);
73+
}
74+
}

0 commit comments

Comments
 (0)