Tengo Gzirishvili Claude Opus 4.8 commited on
Commit
e6b4c6d
·
1 Parent(s): 6f3dd42

UI: outline buttons invert on hover (ink fill + paper text)

Browse files

.ghost / .primary-ghost / .copy-btn now fill with ink and flip the label to
paper on hover — black rectangle + white text in light mode, parchment + dark
text in dark mode (both via neutral tokens, so contrast holds either way).
Icons inside flip too.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Files changed (2) hide show
  1. dee/static/app.css +7 -3
  2. dee/static/index.html +2 -2
dee/static/app.css CHANGED
@@ -3787,11 +3787,15 @@ h3, h4 {
3787
  font-weight: 500;
3788
  color: var(--ink);
3789
  }
 
 
 
3790
  .ghost:hover, .primary-ghost:hover, .ghost-btn:hover, .copy-btn:hover {
3791
- border-color: var(--brand);
3792
- color: var(--brand);
3793
- background: var(--bg-card);
3794
  }
 
3795
 
3796
  /* ── Fold button on each variant row — a touch more presence than other
3797
  ghosts, since it triggers a network call to ESMFold. Archival-blue text
 
3787
  font-weight: 500;
3788
  color: var(--ink);
3789
  }
3790
+ /* Invert on hover: the outline button fills with ink and the label flips to
3791
+ paper — black rect + white text in light mode, and the dark-mode inverse
3792
+ (parchment fill, dark text) so it stays high-contrast in either theme. */
3793
  .ghost:hover, .primary-ghost:hover, .ghost-btn:hover, .copy-btn:hover {
3794
+ background: var(--ink-strong);
3795
+ border-color: var(--ink-strong);
3796
+ color: var(--gray-0);
3797
  }
3798
+ .ghost:hover svg, .ghost-btn:hover svg, .copy-btn:hover svg { color: var(--gray-0); }
3799
 
3800
  /* ── Fold button on each variant row — a touch more presence than other
3801
  ghosts, since it triggers a network call to ESMFold. Archival-blue text
dee/static/index.html CHANGED
@@ -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-mono" />
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) viewer for AlphaFold structure embed. Loaded async; the
@@ -1817,6 +1817,6 @@
1817
  <!-- Cloning reference data must load before app.js so the Designer
1818
  can read VECTORS / ENZYMES / CLONING_METHODS / TAGS / LINKERS. -->
1819
  <script src="/static/cloning_db.js?v=20260530-ui-polish" defer></script>
1820
- <script src="/static/app.js?v=20260609-mono" defer></script>
1821
  </body>
1822
  </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-mono2" />
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) viewer for AlphaFold structure embed. Loaded async; the
 
1817
  <!-- Cloning reference data must load before app.js so the Designer
1818
  can read VECTORS / ENZYMES / CLONING_METHODS / TAGS / LINKERS. -->
1819
  <script src="/static/cloning_db.js?v=20260530-ui-polish" defer></script>
1820
+ <script src="/static/app.js?v=20260609-mono2" defer></script>
1821
  </body>
1822
  </html>