Spaces:
Sleeping
Filled CTAs: light bar at rest in both themes, invert to black on hover
Browse filesPer the user's choice, the filled primary buttons (.primary / .primary-lg —
"Import & map", "Generate library", "Design guides", etc.) are now a LIGHT bar
(warm-white fill, ink label, hairline edge) at rest in BOTH light and dark
themes, inverting to a near-black rectangle with white text on hover — the same
white→black behaviour as the outline/ghost buttons.
Before, in light mode these were solid black bars, so hovering them showed no
change (only dark mode flipped cream→black). Now both themes behave identically.
Icon chip tints dark on the light bar and light once it inverts. Bump cache-buster.
Verified in preview: resting bg #FBFAF6 + ink label in light AND dark; hover
resolves to #0A0A0A bg + #FBFAF6 text in both.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- dee/static/app.css +16 -8
- dee/static/index.html +3 -3
|
@@ -3875,12 +3875,15 @@ h3, h4 {
|
|
| 3875 |
dark (both via the neutral tokens, so it adapts per theme). Cream/ink text
|
| 3876 |
stays readable in either mode. Zero hue — the editorial register comes from
|
| 3877 |
the ink + serif type, not a colour accent. */
|
|
|
|
|
|
|
|
|
|
| 3878 |
.primary {
|
| 3879 |
-
background: var(--
|
| 3880 |
-
border-color:
|
| 3881 |
-
color: var(--
|
| 3882 |
border-radius: var(--r-2);
|
| 3883 |
-
box-shadow: 0 1px 2px rgba(20, 19, 16, 0.
|
| 3884 |
font-family: var(--font-body);
|
| 3885 |
font-weight: 600;
|
| 3886 |
letter-spacing: 0;
|
|
@@ -3893,9 +3896,10 @@ h3, h4 {
|
|
| 3893 |
box-shadow: 0 4px 12px rgba(20, 19, 16, 0.24);
|
| 3894 |
}
|
| 3895 |
.primary-lg {
|
| 3896 |
-
background:
|
| 3897 |
-
border-color:
|
| 3898 |
-
|
|
|
|
| 3899 |
}
|
| 3900 |
.primary-lg:not(:disabled):hover {
|
| 3901 |
background: var(--hover-fill);
|
|
@@ -3903,7 +3907,11 @@ h3, h4 {
|
|
| 3903 |
color: var(--hover-text);
|
| 3904 |
box-shadow: 0 6px 18px rgba(20, 19, 16, 0.24);
|
| 3905 |
}
|
| 3906 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3907 |
|
| 3908 |
/* ── Ghost / secondary — keep the thin border but tighten typography and
|
| 3909 |
make it feel like a text-link with a frame. */
|
|
|
|
| 3875 |
dark (both via the neutral tokens, so it adapts per theme). Cream/ink text
|
| 3876 |
stays readable in either mode. Zero hue — the editorial register comes from
|
| 3877 |
the ink + serif type, not a colour accent. */
|
| 3878 |
+
/* Filled CTAs are a LIGHT bar at rest in BOTH themes (warm-white fill, ink
|
| 3879 |
+
label, hairline edge) that inverts to a near-black rectangle with white text
|
| 3880 |
+
on hover — same behaviour light + dark, matching the outline buttons. */
|
| 3881 |
.primary {
|
| 3882 |
+
background: var(--hover-text);
|
| 3883 |
+
border-color: rgba(10, 10, 10, 0.20);
|
| 3884 |
+
color: var(--hover-fill);
|
| 3885 |
border-radius: var(--r-2);
|
| 3886 |
+
box-shadow: 0 1px 2px rgba(20, 19, 16, 0.14);
|
| 3887 |
font-family: var(--font-body);
|
| 3888 |
font-weight: 600;
|
| 3889 |
letter-spacing: 0;
|
|
|
|
| 3896 |
box-shadow: 0 4px 12px rgba(20, 19, 16, 0.24);
|
| 3897 |
}
|
| 3898 |
.primary-lg {
|
| 3899 |
+
background: var(--hover-text);
|
| 3900 |
+
border-color: rgba(10, 10, 10, 0.20);
|
| 3901 |
+
color: var(--hover-fill);
|
| 3902 |
+
box-shadow: 0 1px 2px rgba(20, 19, 16, 0.14);
|
| 3903 |
}
|
| 3904 |
.primary-lg:not(:disabled):hover {
|
| 3905 |
background: var(--hover-fill);
|
|
|
|
| 3907 |
color: var(--hover-text);
|
| 3908 |
box-shadow: 0 6px 18px rgba(20, 19, 16, 0.24);
|
| 3909 |
}
|
| 3910 |
+
/* Icon chip: dark-tint on the light resting bar, light-tint once the bar
|
| 3911 |
+
inverts to black on hover. */
|
| 3912 |
+
.primary-icon { background: rgba(10,10,10,0.10); }
|
| 3913 |
+
.primary:not(:disabled):hover .primary-icon,
|
| 3914 |
+
.primary-lg:not(:disabled):hover .primary-icon { background: rgba(255,255,255,0.20); }
|
| 3915 |
|
| 3916 |
/* ── Ghost / secondary — keep the thin border but tighten typography and
|
| 3917 |
make it feel like a text-link with a frame. */
|
|
@@ -28,7 +28,7 @@
|
|
| 28 |
<!-- ?v= query bumps invalidate browser + iframe asset caches when app.css /
|
| 29 |
app.js change. Bump these numbers whenever you ship a frontend update —
|
| 30 |
without them, users keep getting the stale file for up to a week. -->
|
| 31 |
-
<link rel="stylesheet" href="/static/app.css?v=20260609-
|
| 32 |
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg?v=2" />
|
| 33 |
<link rel="apple-touch-icon" href="/static/favicon.svg?v=2" />
|
| 34 |
<!-- Mol* (PDBe) 3-D viewer is ~4.9 MB. We do NOT eager-load it on every
|
|
@@ -1859,10 +1859,10 @@
|
|
| 1859 |
Authorization header on every same-origin /api/* call. Without
|
| 1860 |
this, signed-in users would still hit the anonymous-quota
|
| 1861 |
gate. -->
|
| 1862 |
-
<script src="/static/auth.js?v=20260609-
|
| 1863 |
<!-- Cloning reference data must load before app.js so the Designer
|
| 1864 |
can read VECTORS / ENZYMES / CLONING_METHODS / TAGS / LINKERS. -->
|
| 1865 |
<script src="/static/cloning_db.js?v=20260530-ui-polish" defer></script>
|
| 1866 |
-
<script src="/static/app.js?v=20260609-
|
| 1867 |
</body>
|
| 1868 |
</html>
|
|
|
|
| 28 |
<!-- ?v= query bumps invalidate browser + iframe asset caches when app.css /
|
| 29 |
app.js change. Bump these numbers whenever you ship a frontend update —
|
| 30 |
without them, users keep getting the stale file for up to a week. -->
|
| 31 |
+
<link rel="stylesheet" href="/static/app.css?v=20260609-hov3" />
|
| 32 |
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg?v=2" />
|
| 33 |
<link rel="apple-touch-icon" href="/static/favicon.svg?v=2" />
|
| 34 |
<!-- Mol* (PDBe) 3-D viewer is ~4.9 MB. We do NOT eager-load it on every
|
|
|
|
| 1859 |
Authorization header on every same-origin /api/* call. Without
|
| 1860 |
this, signed-in users would still hit the anonymous-quota
|
| 1861 |
gate. -->
|
| 1862 |
+
<script src="/static/auth.js?v=20260609-hov3"></script>
|
| 1863 |
<!-- Cloning reference data must load before app.js so the Designer
|
| 1864 |
can read VECTORS / ENZYMES / CLONING_METHODS / TAGS / LINKERS. -->
|
| 1865 |
<script src="/static/cloning_db.js?v=20260530-ui-polish" defer></script>
|
| 1866 |
+
<script src="/static/app.js?v=20260609-hov3" defer></script>
|
| 1867 |
</body>
|
| 1868 |
</html>
|