Make 永期 hedge UI clearer with dir segments and field grid.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -3366,8 +3366,10 @@ html[data-theme="light"] .opt-be-dist-down {
|
||||
}
|
||||
.hedge-plan-page-wrap .hp-oo-size-mode.is-selected,
|
||||
.hedge-plan-page-wrap .hp-oo-close-mode.is-selected,
|
||||
.hedge-plan-page-wrap .hp-po-dir.is-selected,
|
||||
.hedge-plan-page-wrap .hp-oo-size-mode.active,
|
||||
.hedge-plan-page-wrap .hp-oo-close-mode.active {
|
||||
.hedge-plan-page-wrap .hp-oo-close-mode.active,
|
||||
.hedge-plan-page-wrap .hp-po-dir.active {
|
||||
border-color: var(--accent, #00d4ff);
|
||||
color: var(--text, #fff);
|
||||
background: rgba(0, 212, 255, 0.16);
|
||||
@@ -3376,11 +3378,118 @@ html[data-theme="light"] .opt-be-dist-down {
|
||||
}
|
||||
.hedge-plan-page-wrap .hp-oo-size-mode.is-selected .hp-oo-check,
|
||||
.hedge-plan-page-wrap .hp-oo-close-mode.is-selected .hp-oo-check,
|
||||
.hedge-plan-page-wrap .hp-po-dir.is-selected .hp-oo-check,
|
||||
.hedge-plan-page-wrap .hp-oo-size-mode.active .hp-oo-check,
|
||||
.hedge-plan-page-wrap .hp-oo-close-mode.active .hp-oo-check {
|
||||
.hedge-plan-page-wrap .hp-oo-close-mode.active .hp-oo-check,
|
||||
.hedge-plan-page-wrap .hp-po-dir.active .hp-oo-check {
|
||||
display: inline;
|
||||
color: var(--accent, #00d4ff);
|
||||
}
|
||||
.hedge-plan-page-wrap .hp-po-top {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 12px 16px;
|
||||
margin: 8px 0 4px;
|
||||
}
|
||||
.hedge-plan-page-wrap .hp-po-dir-seg {
|
||||
flex: 1 1 180px;
|
||||
max-width: 220px;
|
||||
}
|
||||
.hedge-plan-page-wrap .hp-po-mark {
|
||||
font-size: 0.95rem;
|
||||
font-weight: 700;
|
||||
font-variant-numeric: tabular-nums;
|
||||
color: #3dd68c;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.hedge-plan-page-wrap .hp-po-meta {
|
||||
margin: 2px 0 8px;
|
||||
font-size: 0.74rem;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.hedge-plan-page-wrap .hp-po-fields {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 10px 12px;
|
||||
margin: 8px 0 6px;
|
||||
padding: 10px 12px;
|
||||
border-radius: 8px;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
.hedge-plan-page-wrap .hp-po-field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
margin: 0;
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
.hedge-plan-page-wrap .hp-po-field-lab {
|
||||
color: #9aa4b2;
|
||||
font-size: 0.72rem;
|
||||
}
|
||||
.hedge-plan-page-wrap .hp-po-field-lab em {
|
||||
font-style: normal;
|
||||
color: #6b7388;
|
||||
margin-left: 2px;
|
||||
}
|
||||
.hedge-plan-page-wrap .hp-po-field input {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.hedge-plan-page-wrap .hp-po-field--tp input {
|
||||
border-color: rgba(61, 214, 140, 0.45);
|
||||
}
|
||||
.hedge-plan-page-wrap .hp-po-field--sl input {
|
||||
border-color: rgba(255, 138, 138, 0.45);
|
||||
}
|
||||
.hedge-plan-page-wrap .hp-po-summary {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
.hedge-plan-page-wrap .hp-po-pnl {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
.hedge-plan-page-wrap .hp-po-chip {
|
||||
display: inline-flex;
|
||||
align-items: baseline;
|
||||
gap: 4px;
|
||||
padding: 4px 8px;
|
||||
border-radius: 6px;
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
font-size: 0.76rem;
|
||||
}
|
||||
.hedge-plan-page-wrap .hp-po-sizing {
|
||||
font-size: 0.74rem;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.hedge-plan-page-wrap .hp-po-opt-toolbar {
|
||||
align-items: center;
|
||||
}
|
||||
.hedge-plan-page-wrap .hp-po-index {
|
||||
margin-left: auto;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 700;
|
||||
font-variant-numeric: tabular-nums;
|
||||
color: #3dd68c;
|
||||
white-space: nowrap;
|
||||
}
|
||||
@media (max-width: 720px) {
|
||||
.hedge-plan-page-wrap .hp-po-fields {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.hedge-plan-page-wrap .hp-po-index {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
.hedge-plan-page-wrap #hp-oo-close-mode-row.hidden {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user