feat: show force-close badge and countdown when FORCE_CLOSE is enabled
Add shared lib/UI for midnight force-close indicator on instance and hub pages, and document Gate intraday 0-point exit alignment. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -590,6 +590,53 @@ html[data-theme="light"] .pos-meta-item::after {
|
||||
font-variant-numeric: tabular-nums;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
.force-close-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 600;
|
||||
color: #ffc870;
|
||||
background: #2a2218;
|
||||
border: 1px solid #6a5020;
|
||||
padding: 4px 12px;
|
||||
border-radius: 999px;
|
||||
letter-spacing: 0.02em;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.force-close-badge .force-close-header-cd {
|
||||
font-variant-numeric: tabular-nums;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
.pos-force-close-meta {
|
||||
color: #ffc870;
|
||||
}
|
||||
.pos-symbol-force-close {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
font-size: 0.72rem;
|
||||
font-weight: 500;
|
||||
color: #ffc870;
|
||||
padding: 1px 6px;
|
||||
border-radius: 4px;
|
||||
background: rgba(255, 200, 112, 0.12);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.pos-symbol-force-close .pos-force-close-cd {
|
||||
font-variant-numeric: tabular-nums;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
html[data-theme="light"] .force-close-badge {
|
||||
color: #9a6200;
|
||||
background: #fff6e8;
|
||||
border-color: #d4a84a;
|
||||
}
|
||||
html[data-theme="light"] .pos-symbol-force-close,
|
||||
html[data-theme="light"] .pos-force-close-meta {
|
||||
color: #9a6200;
|
||||
background: rgba(212, 168, 74, 0.14);
|
||||
}
|
||||
.key-time-close-wrap.is-disabled > label,
|
||||
.order-time-close-wrap.is-disabled > label {
|
||||
opacity: 0.72;
|
||||
|
||||
Reference in New Issue
Block a user