Add collapsible rule descriptions to trade, strategy, and key pages.

Shared module-rules styling; key monitor rules collapsed by default like other modules.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-29 07:46:58 +08:00
parent 4d2463c9a9
commit f8ff97f93d
5 changed files with 51 additions and 7 deletions
+8
View File
@@ -203,6 +203,14 @@ border-radius:2px;box-shadow:0 0 8px var(--card-glow);
.form-compact .symbol-wrap{display:flex;flex-direction:column;align-self:stretch}
.form-compact .symbol-wrap>label.text-label,.form-compact .symbol-wrap>label.symbol-field-label{margin-bottom:.28rem}
.form-compact .symbol-selected{font-size:.68rem;margin:0}
.module-rules{margin-bottom:.75rem;font-size:.82rem;color:var(--text-muted)}
.module-rules summary{cursor:pointer;color:var(--accent);font-weight:600;margin-bottom:0;list-style:none}
.module-rules summary::-webkit-details-marker{display:none}
.module-rules[open] summary{margin-bottom:.35rem}
.module-rules-body{padding:.35rem 0 .15rem}
.module-rules-body ul{margin:.25rem 0 .5rem 1.1rem;padding:0}
.module-rules-body li{margin:.15rem 0}
.module-rules-body p{margin:.35rem 0 .25rem}
.form-compact button.btn-primary{padding:.55rem 1.5rem;font-size:.85rem;white-space:nowrap}
.form-compact-review input.calc-readonly{color:var(--accent);background:var(--calc-bg);font-size:.82rem}
.form-compact-review textarea{min-height:44px;font-size:.85rem;padding:.45rem .65rem}
-5
View File
@@ -1,8 +1,3 @@
.key-rules{margin-bottom:.75rem;font-size:.82rem;color:var(--text-muted)}
.key-rules summary{cursor:pointer;color:var(--accent);font-weight:600;margin-bottom:.35rem}
.key-rules-body{padding:.35rem 0 .15rem}
.key-rules-body ul{margin:.25rem 0 .5rem 1.1rem;padding:0}
.key-rules-body li{margin:.15rem 0}
.key-form-rows{display:flex;flex-direction:column;gap:.75rem;margin-bottom:.85rem}
.key-form-line{display:grid;gap:.65rem;align-items:end}
.key-form-line.line-3{grid-template-columns:1.4fr .85fr .85fr}