增加k线图
This commit is contained in:
+87
-1
@@ -22,7 +22,7 @@ body {
|
||||
color: var(--text);
|
||||
line-height: 1.5;
|
||||
padding: 1.5rem;
|
||||
max-width: 1100px;
|
||||
max-width: 1280px;
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
@@ -218,3 +218,89 @@ button:hover {
|
||||
.error {
|
||||
color: var(--down);
|
||||
}
|
||||
|
||||
.symbol-cell {
|
||||
white-space: nowrap;
|
||||
min-width: 88px;
|
||||
}
|
||||
|
||||
.chart-col {
|
||||
min-width: 320px;
|
||||
color: var(--muted);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.chart-cell {
|
||||
padding: 0.35rem 0.5rem !important;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.mini-chart {
|
||||
position: relative;
|
||||
width: 300px;
|
||||
height: 64px;
|
||||
cursor: zoom-in;
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border);
|
||||
background: #121820;
|
||||
}
|
||||
|
||||
.mini-chart canvas {
|
||||
display: block;
|
||||
width: 300px;
|
||||
height: 64px;
|
||||
}
|
||||
|
||||
.chart-status {
|
||||
position: absolute;
|
||||
right: 4px;
|
||||
bottom: 2px;
|
||||
font-size: 0.65rem;
|
||||
color: var(--muted);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.chart-modal {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0, 0, 0, 0.72);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.chart-modal.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.chart-modal-inner {
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
padding: 1rem 1.25rem;
|
||||
max-width: 95vw;
|
||||
}
|
||||
|
||||
.chart-modal-inner h3 {
|
||||
margin: 0 0 0.75rem;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.chart-modal-close {
|
||||
float: right;
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--text);
|
||||
font-size: 1.5rem;
|
||||
cursor: pointer;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
#chart-modal-canvas {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
border-radius: 6px;
|
||||
background: #121820;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user