154 lines
2.8 KiB
SCSS
154 lines
2.8 KiB
SCSS
.market-orderbook-enhanced {
|
|
padding: 20px;
|
|
background: var(--color-alt-bg, #f5f5f5);
|
|
border-radius: 8px;
|
|
border: 1px solid var(--color-border, #e0e0e0);
|
|
}
|
|
|
|
.orderbook-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
|
|
h3 {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.view-mode-toggle {
|
|
display: flex;
|
|
gap: 5px;
|
|
|
|
button {
|
|
padding: 6px 12px;
|
|
background: transparent;
|
|
border: 1px solid var(--color-border, #e0e0e0);
|
|
border-radius: 4px;
|
|
color: var(--color-text, #000);
|
|
cursor: pointer;
|
|
font-size: 0.85rem;
|
|
transition: all 0.2s ease;
|
|
|
|
&:hover {
|
|
background: var(--color-bg, #fff);
|
|
}
|
|
|
|
&.active {
|
|
background: rgba(0, 240, 255, 0.2);
|
|
border-color: #00f0ff;
|
|
color: #00f0ff;
|
|
}
|
|
}
|
|
}
|
|
|
|
.orderbook-table {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.orderbook-side {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.side-header {
|
|
font-weight: 600;
|
|
padding: 8px;
|
|
background: var(--color-bg, #fff);
|
|
border-radius: 4px;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.orderbook-rows {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.orderbook-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr 1fr;
|
|
gap: 10px;
|
|
padding: 6px 8px;
|
|
font-size: 0.85rem;
|
|
border-radius: 3px;
|
|
|
|
&.ask {
|
|
background: rgba(255, 0, 0, 0.05);
|
|
}
|
|
|
|
&.bid {
|
|
background: rgba(0, 255, 0, 0.05);
|
|
}
|
|
|
|
.price {
|
|
font-weight: 600;
|
|
font-family: monospace;
|
|
}
|
|
|
|
.amount,
|
|
.total {
|
|
text-align: right;
|
|
font-family: monospace;
|
|
}
|
|
}
|
|
|
|
.orderbook-spread {
|
|
padding: 10px;
|
|
text-align: center;
|
|
background: var(--color-bg, #fff);
|
|
border-radius: 4px;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.spread-value {
|
|
font-weight: 600;
|
|
color: var(--color-text, #000);
|
|
}
|
|
|
|
.depth-chart {
|
|
padding: 20px;
|
|
background: var(--color-bg, #fff);
|
|
border-radius: 6px;
|
|
min-height: 300px;
|
|
}
|
|
|
|
.depth-placeholder {
|
|
text-align: center;
|
|
color: var(--color-text-dimmed, #666);
|
|
padding: 40px;
|
|
}
|
|
|
|
.orderbook-loading {
|
|
padding: 40px;
|
|
text-align: center;
|
|
color: var(--color-text-dimmed, #666);
|
|
}
|
|
|
|
// Dark theme
|
|
[data-theme="dark"] .market-orderbook-enhanced,
|
|
.dark .market-orderbook-enhanced {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border-color: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
[data-theme="dark"] .side-header,
|
|
[data-theme="dark"] .orderbook-spread,
|
|
.dark .side-header,
|
|
.dark .orderbook-spread {
|
|
background: rgba(255, 255, 255, 0.02);
|
|
}
|
|
|
|
[data-theme="dark"] .view-mode-toggle button,
|
|
.dark .view-mode-toggle button {
|
|
border-color: rgba(255, 255, 255, 0.2);
|
|
color: rgba(255, 255, 255, 0.9);
|
|
|
|
&:hover {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
}
|
|
}
|
|
|