Spaces:
Sleeping
Sleeping
Tengo Gzirishvili Claude Opus 4.8 commited on
Commit Β·
92ef1c5
1
Parent(s): 0c44e17
ui: restyle policy notice to blend with the theme (was a pale bar in dark mode)
Browse filesThe notice used var(--ink) as its background β but --ink is the LIGHT text
colour in dark mode, so it rendered as a pale bar clashing with the dark UI.
Restyle to the .research-strip register: theme-aware surface (--bg-subtle),
soft text (--ink-soft), hairline rule, inset accent stripe, and a chrome-style
"Got it" button. Blends in both light and dark. Cache-buster -> v=20260607-noticeui.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- dee/static/app.css +21 -13
- dee/static/index.html +2 -2
dee/static/app.css
CHANGED
|
@@ -5890,26 +5890,34 @@ h3, h4 {
|
|
| 5890 |
}
|
| 5891 |
|
| 5892 |
/* ββ One-time policy-change notice (Privacy/Terms v2.0) βββββββββββββββββ */
|
|
|
|
|
|
|
| 5893 |
.policy-notice[hidden] { display: none; } /* must beat the .policy-notice display rule below */
|
| 5894 |
.policy-notice {
|
| 5895 |
display: flex; align-items: center; gap: 16px;
|
| 5896 |
-
padding:
|
| 5897 |
-
|
| 5898 |
-
|
| 5899 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5900 |
}
|
| 5901 |
.policy-notice-text { flex: 1 1 auto; }
|
| 5902 |
-
.policy-notice
|
| 5903 |
-
.policy-notice
|
|
|
|
| 5904 |
.policy-notice-close {
|
| 5905 |
flex: 0 0 auto; cursor: pointer;
|
| 5906 |
-
background:
|
| 5907 |
-
border: 1px solid
|
| 5908 |
-
padding:
|
| 5909 |
-
min-height:
|
| 5910 |
}
|
| 5911 |
-
.policy-notice-close:hover { background:
|
| 5912 |
@media (max-width: 540px) {
|
| 5913 |
-
.policy-notice { flex-direction: column; align-items: flex-start; gap: 10px; padding:
|
| 5914 |
-
.policy-notice-close { align-self: stretch; }
|
| 5915 |
}
|
|
|
|
| 5890 |
}
|
| 5891 |
|
| 5892 |
/* ββ One-time policy-change notice (Privacy/Terms v2.0) βββββββββββββββββ */
|
| 5893 |
+
/* Matches the .research-strip register so it reads as part of the chrome:
|
| 5894 |
+
theme-aware surface, hairline rule, an inset accent stripe on the left. */
|
| 5895 |
.policy-notice[hidden] { display: none; } /* must beat the .policy-notice display rule below */
|
| 5896 |
.policy-notice {
|
| 5897 |
display: flex; align-items: center; gap: 16px;
|
| 5898 |
+
padding: 9px max(env(safe-area-inset-right, 0px), 20px)
|
| 5899 |
+
9px max(env(safe-area-inset-left, 0px), 20px);
|
| 5900 |
+
background: var(--bg-subtle);
|
| 5901 |
+
color: var(--ink-soft);
|
| 5902 |
+
border-bottom: 1px solid var(--line);
|
| 5903 |
+
box-shadow: inset 4px 0 0 0 var(--accent, var(--brand, #1E3A8A));
|
| 5904 |
+
font-family: var(--font-body);
|
| 5905 |
+
font-size: 12.5px; line-height: 1.45;
|
| 5906 |
+
flex-shrink: 0;
|
| 5907 |
}
|
| 5908 |
.policy-notice-text { flex: 1 1 auto; }
|
| 5909 |
+
.policy-notice strong { color: var(--ink-strong); font-weight: 600; }
|
| 5910 |
+
.policy-notice a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
|
| 5911 |
+
.policy-notice a:hover { color: var(--accent, var(--brand, #1E3A8A)); }
|
| 5912 |
.policy-notice-close {
|
| 5913 |
flex: 0 0 auto; cursor: pointer;
|
| 5914 |
+
background: var(--bg-raised); color: var(--ink-soft);
|
| 5915 |
+
border: 1px solid var(--line-strong); border-radius: 8px;
|
| 5916 |
+
padding: 7px 14px; font: inherit; font-size: 12.5px;
|
| 5917 |
+
min-height: 36px; /* comfortable tap target without dominating the slim bar */
|
| 5918 |
}
|
| 5919 |
+
.policy-notice-close:hover { background: var(--bg-hover); color: var(--ink); border-color: var(--line-bold); }
|
| 5920 |
@media (max-width: 540px) {
|
| 5921 |
+
.policy-notice { flex-direction: column; align-items: flex-start; gap: 10px; padding: 11px 16px; }
|
| 5922 |
+
.policy-notice-close { align-self: stretch; min-height: 40px; }
|
| 5923 |
}
|
dee/static/index.html
CHANGED
|
@@ -22,7 +22,7 @@
|
|
| 22 |
<!-- ?v= query bumps invalidate browser + iframe asset caches when app.css /
|
| 23 |
app.js change. Bump these numbers whenever you ship a frontend update β
|
| 24 |
without them, users keep getting the stale file for up to a week. -->
|
| 25 |
-
<link rel="stylesheet" href="/static/app.css?v=20260607-
|
| 26 |
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg?v=2" />
|
| 27 |
<link rel="apple-touch-icon" href="/static/favicon.svg?v=2" />
|
| 28 |
<!-- Mol* (PDBe) viewer for AlphaFold structure embed. Loaded async; the
|
|
@@ -1669,6 +1669,6 @@
|
|
| 1669 |
<!-- Cloning reference data must load before app.js so the Designer
|
| 1670 |
can read VECTORS / ENZYMES / CLONING_METHODS / TAGS / LINKERS. -->
|
| 1671 |
<script src="/static/cloning_db.js?v=20260530-ui-polish" defer></script>
|
| 1672 |
-
<script src="/static/app.js?v=20260607-
|
| 1673 |
</body>
|
| 1674 |
</html>
|
|
|
|
| 22 |
<!-- ?v= query bumps invalidate browser + iframe asset caches when app.css /
|
| 23 |
app.js change. Bump these numbers whenever you ship a frontend update β
|
| 24 |
without them, users keep getting the stale file for up to a week. -->
|
| 25 |
+
<link rel="stylesheet" href="/static/app.css?v=20260607-noticeui" />
|
| 26 |
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg?v=2" />
|
| 27 |
<link rel="apple-touch-icon" href="/static/favicon.svg?v=2" />
|
| 28 |
<!-- Mol* (PDBe) viewer for AlphaFold structure embed. Loaded async; the
|
|
|
|
| 1669 |
<!-- Cloning reference data must load before app.js so the Designer
|
| 1670 |
can read VECTORS / ENZYMES / CLONING_METHODS / TAGS / LINKERS. -->
|
| 1671 |
<script src="/static/cloning_db.js?v=20260530-ui-polish" defer></script>
|
| 1672 |
+
<script src="/static/app.js?v=20260607-noticeui" defer></script>
|
| 1673 |
</body>
|
| 1674 |
</html>
|