Files
bini-trading-view/styles.css

524 lines
8.3 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
background-color: #131722;
color: #d1d4dc;
min-height: 100vh;
}
.container {
max-width: 100%;
margin: 0;
padding: 10px 20px;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
background: #1e222d;
border-radius: 8px;
margin-bottom: 10px;
}
.title-section {
display: flex;
align-items: center;
gap: 25px;
}
.header h1 {
font-size: 1.5rem;
color: #f0b90b;
}
.controls {
display: flex;
align-items: center;
gap: 20px;
}
select {
padding: 8px 15px;
background: #2a2e39;
border: 1px solid #363a45;
border-radius: 5px;
color: #d1d4dc;
font-size: 14px;
cursor: pointer;
}
select:hover {
border-color: #f0b90b;
}
.price-info {
display: flex;
flex-direction: column;
align-items: flex-end;
}
#current-price {
font-size: 1.8rem;
font-weight: bold;
color: #f0b90b;
}
#price-change {
font-size: 0.9rem;
}
#price-change.up {
color: #26a69a;
}
#price-change.down {
color: #ef5350;
}
.main-content {
display: flex;
gap: 15px;
}
.charts-container {
display: flex;
flex-direction: column;
gap: 5px;
flex: 1;
}
/* Analysis Panel */
.analysis-panel {
width: 280px;
background: #1e222d;
border-radius: 8px;
padding: 15px;
display: flex;
flex-direction: column;
gap: 15px;
height: fit-content;
position: sticky;
top: 10px;
}
.analysis-header {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #363a45;
padding-bottom: 10px;
}
.analysis-header h3 {
color: #f0b90b;
font-size: 1rem;
}
#analysis-time {
font-size: 11px;
color: #848e9c;
}
.overall-signal {
display: flex;
flex-direction: column;
align-items: center;
padding: 15px;
background: #2a2e39;
border-radius: 8px;
}
.overall-signal .signal-label {
font-size: 12px;
color: #848e9c;
margin-bottom: 5px;
}
.overall-signal .signal-value {
font-size: 1.5rem;
font-weight: bold;
}
.overall-signal .signal-value.buy {
color: #26a69a;
}
.overall-signal .signal-value.sell {
color: #ef5350;
}
.overall-signal .signal-value.neutral {
color: #848e9c;
}
/* Korean Analysis */
.korean-analysis {
background: #2a2e39;
border-radius: 8px;
padding: 12px;
border-left: 3px solid #f0b90b;
}
.korean-analysis-header {
font-size: 12px;
color: #f0b90b;
font-weight: 600;
margin-bottom: 8px;
}
.korean-analysis p {
font-size: 13px;
line-height: 1.6;
color: #d1d4dc;
word-break: keep-all;
}
.indicator-analysis {
display: flex;
flex-direction: column;
gap: 8px;
}
.analysis-item {
display: flex;
align-items: center;
padding: 8px 10px;
background: #2a2e39;
border-radius: 5px;
gap: 8px;
}
.analysis-item .item-label {
font-size: 12px;
color: #848e9c;
min-width: 70px;
}
.analysis-item .item-value {
font-size: 12px;
font-weight: 600;
min-width: 50px;
text-align: center;
padding: 2px 6px;
border-radius: 3px;
}
.analysis-item .item-value.buy {
background: rgba(38, 166, 154, 0.2);
color: #26a69a;
}
.analysis-item .item-value.sell {
background: rgba(239, 83, 80, 0.2);
color: #ef5350;
}
.analysis-item .item-value.neutral {
background: rgba(132, 142, 156, 0.2);
color: #848e9c;
}
.analysis-item .item-detail {
font-size: 11px;
color: #6c7284;
flex: 1;
text-align: right;
}
.analysis-summary {
padding: 10px;
background: #2a2e39;
border-radius: 5px;
}
.analysis-summary h4 {
font-size: 12px;
color: #848e9c;
margin-bottom: 8px;
}
.analysis-summary p {
font-size: 12px;
line-height: 1.5;
color: #d1d4dc;
}
.analysis-score {
padding: 10px;
}
.score-bar {
position: relative;
height: 8px;
background: linear-gradient(to right, #ef5350 0%, #ef5350 33%, #848e9c 33%, #848e9c 66%, #26a69a 66%, #26a69a 100%);
border-radius: 4px;
margin-bottom: 5px;
}
.score-fill {
display: none;
}
.score-marker {
position: absolute;
top: -4px;
width: 16px;
height: 16px;
background: #fff;
border-radius: 50%;
transform: translateX(-50%);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
transition: left 0.3s ease;
left: 50%;
}
.score-labels {
display: flex;
justify-content: space-between;
font-size: 10px;
color: #6c7284;
}
.chart-wrapper {
background: #1e222d;
border-radius: 8px;
overflow: hidden;
}
.chart-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 15px;
background: #2a2e39;
border-bottom: 1px solid #363a45;
}
.chart-title {
font-weight: 600;
color: #d1d4dc;
}
.legend {
display: flex;
gap: 10px;
font-size: 12px;
align-items: center;
}
.ma-toggle {
display: flex;
align-items: center;
cursor: pointer;
padding: 3px 8px;
border-radius: 4px;
transition: all 0.2s;
user-select: none;
}
.ma-toggle:hover {
background: rgba(255, 255, 255, 0.1);
}
.ma-toggle input[type="checkbox"] {
display: none;
}
.ma-toggle span {
padding: 2px 6px;
border-radius: 3px;
font-weight: 500;
}
.ma-toggle input:not(:checked) + span {
opacity: 0.4;
text-decoration: line-through;
}
.legend .ma5 span { color: #FFEB3B; }
.legend .ma20 span { color: #1565C0; }
.legend .ma60 span { color: #00E676; }
.legend .ma120 span { color: #FF5252; }
.legend .ma200 span { color: #E040FB; }
.legend .bb span { color: #FF9800; }
.legend .gc-dc span { color: #26a69a; }
.main-chart {
position: relative;
}
#main-chart {
height: 450px;
}
#macd-chart,
#rsi-chart,
#stochastic-chart {
height: 150px;
}
.indicator-chart {
margin-top: 5px;
}
#signals-container {
position: absolute;
top: 50px;
left: 10px;
z-index: 100;
pointer-events: none;
}
.signal-marker {
position: absolute;
padding: 3px 6px;
border-radius: 3px;
font-size: 10px;
font-weight: bold;
}
.signal-marker.golden {
background: rgba(38, 166, 154, 0.9);
color: white;
}
.signal-marker.dead {
background: rgba(239, 83, 80, 0.9);
color: white;
}
.signal-panel {
margin-top: 10px;
padding: 15px;
background: #1e222d;
border-radius: 8px;
max-height: 200px;
overflow-y: auto;
}
.signal-panel h3 {
margin-bottom: 10px;
color: #f0b90b;
font-size: 1rem;
}
#signal-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.signal-item {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 12px;
background: #2a2e39;
border-radius: 5px;
font-size: 13px;
}
.signal-item .time {
color: #848e9c;
min-width: 80px;
}
.signal-item .type {
padding: 2px 8px;
border-radius: 3px;
font-weight: 600;
min-width: 100px;
text-align: center;
}
.signal-item .type.buy {
background: rgba(38, 166, 154, 0.2);
color: #26a69a;
}
.signal-item .type.sell {
background: rgba(239, 83, 80, 0.2);
color: #ef5350;
}
.signal-item .description {
flex: 1;
}
/* Scrollbar styling */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #1e222d;
}
::-webkit-scrollbar-thumb {
background: #363a45;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #4a4e59;
}
/* Loading indicator */
.loading {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
color: #848e9c;
}
.loading::after {
content: '';
width: 30px;
height: 30px;
border: 3px solid #363a45;
border-top-color: #f0b90b;
border-radius: 50%;
animation: spin 1s linear infinite;
margin-left: 10px;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Responsive */
@media (max-width: 768px) {
.header {
flex-direction: column;
gap: 10px;
}
.header h1 {
font-size: 1.2rem;
}
#main-chart {
height: 350px;
}
#macd-chart,
#rsi-chart,
#stochastic-chart {
height: 120px;
}
.legend {
flex-wrap: wrap;
gap: 8px;
}
}