297 lines
4.8 KiB
CSS
297 lines
4.8 KiB
CSS
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html, body, #root {
|
|
width: 100%;
|
|
height: 100%;
|
|
font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
}
|
|
|
|
body {
|
|
overflow: hidden;
|
|
background: #ffffff;
|
|
color: #1f2328;
|
|
}
|
|
|
|
body.dark {
|
|
background: #0d1117;
|
|
color: #c9d1d9;
|
|
}
|
|
|
|
#toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: nowrap;
|
|
gap: 10px;
|
|
height: 44px;
|
|
padding: 0 12px;
|
|
border-bottom: 1px solid #d0d7de;
|
|
background: #f6f8fa;
|
|
color: #1f2328;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
body.dark #toolbar {
|
|
border-color: #30363d;
|
|
background: #161b22;
|
|
color: #c9d1d9;
|
|
}
|
|
|
|
#period-switcher,
|
|
#indicator-switcher,
|
|
#zoom-controls,
|
|
#tool-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
padding: 2px;
|
|
border: 1px solid #d0d7de;
|
|
border-radius: 4px;
|
|
background: #ffffff;
|
|
}
|
|
|
|
body.dark #period-switcher,
|
|
body.dark #indicator-switcher,
|
|
body.dark #zoom-controls,
|
|
body.dark #tool-actions {
|
|
border-color: #30363d;
|
|
background: #21262d;
|
|
}
|
|
|
|
.toolbar-btn {
|
|
height: 28px;
|
|
padding: 0 10px;
|
|
border: 1px solid transparent;
|
|
border-radius: 4px;
|
|
background: transparent;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
font: inherit;
|
|
}
|
|
|
|
.toolbar-btn:hover {
|
|
background: #eef2f6;
|
|
border-color: #c9d0d8;
|
|
}
|
|
|
|
body.dark .toolbar-btn:hover {
|
|
background: #30363d;
|
|
border-color: #58a6ff;
|
|
}
|
|
|
|
.toolbar-btn.active {
|
|
border-color: #0969da;
|
|
background: #0969da;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.toolbar-btn.active:hover {
|
|
background: #0969da;
|
|
}
|
|
|
|
.toolbar-btn.wide {
|
|
min-width: 42px;
|
|
}
|
|
|
|
.toolbar-btn.icon {
|
|
min-width: 32px;
|
|
font-size: 15px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.toolbar-btn.active-icon {
|
|
color: #0969da;
|
|
background: transparent;
|
|
border-color: #0969da;
|
|
}
|
|
|
|
#file-picker {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 2px 6px;
|
|
border: 1px dashed #d0d7de;
|
|
border-radius: 4px;
|
|
background: #ffffff;
|
|
min-width: 180px;
|
|
max-width: 300px;
|
|
flex-shrink: 1;
|
|
}
|
|
|
|
#file-picker.over {
|
|
border-color: #0969da;
|
|
background: #ddf4ff;
|
|
}
|
|
|
|
body.dark #file-picker {
|
|
border-color: #30363d;
|
|
background: #21262d;
|
|
}
|
|
|
|
body.dark #file-picker.over {
|
|
border-color: #58a6ff;
|
|
background: #1f6feb;
|
|
}
|
|
|
|
#btn-file {
|
|
height: 28px;
|
|
padding: 0 10px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
line-height: 1;
|
|
color: inherit;
|
|
}
|
|
|
|
#btn-file:hover {
|
|
background: #eef2f6;
|
|
}
|
|
|
|
body.dark #btn-file:hover {
|
|
background: #30363d;
|
|
}
|
|
|
|
#file-name {
|
|
font-size: 12px;
|
|
color: #57606a;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
flex: 1;
|
|
}
|
|
|
|
body.dark #file-name { color: #8b949e; }
|
|
|
|
#status {
|
|
margin-left: auto;
|
|
color: #57606a;
|
|
font-size: 12px;
|
|
}
|
|
|
|
body.dark #status { color: #8b949e; }
|
|
|
|
#chart {
|
|
width: 100%;
|
|
height: calc(100% - 44px);
|
|
}
|
|
|
|
.loading {
|
|
position: fixed;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
color: #8b949e;
|
|
font-size: 14px;
|
|
z-index: 999;
|
|
}
|
|
|
|
#crosshair-info {
|
|
position: fixed;
|
|
top: 52px;
|
|
right: 16px;
|
|
padding: 8px 12px;
|
|
border-radius: 4px;
|
|
background: rgba(255, 255, 255, 0.95);
|
|
border: 1px solid #d0d7de;
|
|
font-size: 11px;
|
|
line-height: 1.7;
|
|
font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
|
|
z-index: 100;
|
|
pointer-events: none;
|
|
min-width: 200px;
|
|
}
|
|
|
|
body.dark #crosshair-info {
|
|
background: rgba(22, 27, 34, 0.95);
|
|
border-color: #30363d;
|
|
color: #c9d1d9;
|
|
}
|
|
|
|
.hidden { display: none !important; }
|
|
|
|
#bar-detail,
|
|
#context-menu {
|
|
position: fixed;
|
|
z-index: 200;
|
|
border-radius: 6px;
|
|
border: 1px solid #d0d7de;
|
|
background: #ffffff;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
body.dark #bar-detail,
|
|
body.dark #context-menu {
|
|
border-color: #30363d;
|
|
background: #161b22;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
#bar-detail {
|
|
padding: 10px 14px;
|
|
min-width: 160px;
|
|
}
|
|
|
|
#bar-detail .row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 1px 0;
|
|
}
|
|
|
|
#bar-detail .label { color: #8b949e; }
|
|
#bar-detail .value { font-weight: 600; font-family: ui-monospace, monospace; }
|
|
#bar-detail .bull { color: #cf222e; }
|
|
#bar-detail .bear { color: #1a7f37; }
|
|
|
|
body.dark #bar-detail .bull { color: #ff7b72; }
|
|
body.dark #bar-detail .bear { color: #7ee787; }
|
|
|
|
#context-menu {
|
|
padding: 4px 0;
|
|
min-width: 160px;
|
|
}
|
|
|
|
#context-menu .item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 14px;
|
|
cursor: pointer;
|
|
color: inherit;
|
|
border: none;
|
|
background: none;
|
|
width: 100%;
|
|
font: inherit;
|
|
text-align: left;
|
|
}
|
|
|
|
#context-menu .item:hover {
|
|
background: #f6f8fa;
|
|
}
|
|
|
|
body.dark #context-menu .item:hover {
|
|
background: #30363d;
|
|
}
|
|
|
|
#context-menu .sep {
|
|
height: 1px;
|
|
margin: 4px 8px;
|
|
background: #d0d7de;
|
|
}
|
|
|
|
body.dark #context-menu .sep { background: #30363d; }
|
|
|
|
#context-menu .check { width: 14px; color: #0969da; }
|
|
|
|
.key-hint {
|
|
color: #8b949e;
|
|
font-size: 11px;
|
|
margin-left: 6px;
|
|
} |