38451-vm/assets/css/terminal.css
2026-02-16 05:50:45 +00:00

429 lines
8.2 KiB
CSS

:root {
--term-bg: #0b0e11;
--term-surface: #161a1e;
--term-border: #2b3139;
--term-text: #eaecef;
--term-muted: #848e9c;
--term-primary: #0062ff;
--term-success: #26a69a;
--term-danger: #ef5350;
--header-height: 60px;
--sidebar-width: 280px;
--orderbook-width: 300px;
}
.terminal-container {
display: flex;
flex-direction: column;
height: 100vh;
background: var(--term-bg);
color: var(--term-text);
overflow: hidden;
}
.sidebar-tabs {
display: flex;
height: 60px;
border-bottom: 1px solid var(--term-border);
background: var(--term-surface);
}
.sidebar-tabs .terminal-tab {
flex: 1;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 13px;
border-right: 1px solid var(--term-border);
color: var(--term-muted);
text-decoration: none;
font-weight: 600;
transition: all 0.2s;
}
.sidebar-tabs .terminal-tab:hover {
color: var(--term-text);
background: rgba(255,255,255,0.03);
}
.sidebar-tabs .terminal-tab.active {
background: var(--term-bg);
color: var(--term-primary);
border-bottom: 2px solid var(--term-primary);
}
.sidebar-tabs .terminal-tab:last-child {
border-right: none;
}
.sidebar-search {
padding: 10px 12px;
border-bottom: 1px solid var(--term-border);
height: 60px;
display: flex;
align-items: center;
background: var(--term-surface);
}
.sidebar-search input {
background: #0b0e11;
border: 1px solid var(--term-border);
color: #fff;
width: 100%;
height: 38px;
padding: 0 12px;
border-radius: 4px;
font-size: 12px;
outline: none;
transition: all 0.2s;
}
.content-header {
height: 50px;
border-bottom: 1px solid var(--term-border);
display: flex;
align-items: center;
padding: 0 15px;
gap: 20px;
background: var(--term-surface);
}
.terminal-sidebar {
width: var(--sidebar-width);
border-right: 1px solid var(--term-border);
display: flex;
flex-direction: column;
background: var(--term-surface);
}
.terminal-right-sidebar {
width: var(--orderbook-width);
border-left: 1px solid var(--term-border);
background: var(--term-surface);
}
.sidebar-search input {
background: #0b0e11;
border: 1px solid var(--term-border);
color: #fff;
width: 100%;
padding: 8px 15px;
border-radius: 8px;
font-size: 13px;
outline: none;
transition: border-color 0.2s;
}
.sidebar-search input:focus {
border-color: var(--term-primary);
}
/* Order Book Beautification */
.order-book {
display: flex;
flex-direction: column;
height: 100%;
font-family: 'Roboto Mono', 'Noto Sans SC', monospace;
background: #0b0e11;
}
.ob-header {
display: flex;
justify-content: space-between;
padding: 12px 15px;
font-size: 11px;
color: #848e9c;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
border-bottom: 1px solid var(--term-border);
}
.ob-list {
flex: 1;
display: flex;
flex-direction: column;
}
.ob-row {
display: flex;
justify-content: space-between;
padding: 2px 15px;
font-size: 12px;
position: relative;
cursor: pointer;
}
.ob-mid-price {
padding: 10px 15px;
text-align: left;
background: rgba(0,0,0,0.4);
border-top: 1px solid var(--term-border);
border-bottom: 1px solid var(--term-border);
}
.ob-mid-price .val {
font-size: 18px;
font-weight: 700;
display: block;
}
.ob-row:hover {
background: rgba(255,255,255,0.05);
}
.ob-row .price { font-weight: 600; z-index: 2; }
.asks .price { color: #f6465d; }
.bids .price { color: #0ecb81; }
.ob-row .amount { color: #eaecef; opacity: 0.9; z-index: 2; }
.ob-row-bg {
position: absolute;
top: 0;
right: 0;
bottom: 0;
z-index: 1;
opacity: 0.1;
transition: width 0.3s ease;
}
.asks .ob-row-bg { background: #f6465d; }
.bids .ob-row-bg { background: #0ecb81; }
.ob-mid-price {
padding: 15px;
text-align: left;
background: rgba(0,0,0,0.3);
border-top: 1px solid var(--term-border);
border-bottom: 1px solid var(--term-border);
}
.ob-mid-price .val {
font-size: 20px;
font-weight: 700;
display: block;
}
/* Order Panel Records */
.order-history table {
border-collapse: separate;
border-spacing: 0;
}
.order-history th {
font-weight: 600;
text-transform: uppercase;
font-size: 10px;
letter-spacing: 0.5px;
color: var(--term-muted);
padding: 10px;
}
.order-history td {
padding: 12px 10px;
border-bottom: 1px solid rgba(255,255,255,0.03);
}
.order-history tr:hover td {
background: rgba(255,255,255,0.02);
}
.terminal-tab {
padding: 0 24px;
height: 100%;
display: flex;
align-items: center;
color: var(--term-muted);
text-decoration: none !important;
font-weight: 600;
font-size: 14px;
border-right: 1px solid var(--term-border);
transition: all 0.2s;
}
.terminal-tab:hover {
color: var(--term-text);
background: rgba(255,255,255,0.05);
}
.terminal-tab.active {
background: var(--term-bg);
color: var(--term-primary);
border-bottom: 2px solid var(--term-primary);
}
.terminal-main {
display: flex;
flex: 1;
overflow: hidden;
}
.terminal-sidebar {
width: var(--sidebar-width);
border-right: 1px solid var(--term-border);
display: flex;
flex-direction: column;
background: var(--term-surface);
}
.sidebar-search {
padding: 12px;
border-bottom: 1px solid var(--term-border);
height: 60px;
display: flex;
align-items: center;
}
.sidebar-search input {
background: #2b3139;
border: 1px solid var(--term-border);
color: #fff;
width: 100%;
padding: 6px 12px;
border-radius: 4px;
font-size: 13px;
outline: none;
}
.coin-list-container {
flex: 1;
overflow-y: auto;
scrollbar-width: none;
-ms-overflow-style: none;
}
.coin-list-container::-webkit-scrollbar {
display: none;
}
.coin-row {
padding: 10px 15px;
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
border-bottom: 1px solid rgba(255,255,255,0.02);
transition: background 0.2s;
}
.coin-row:hover {
background: rgba(255,255,255,0.05);
}
.coin-row img {
width: 20px;
height: 20px;
margin-right: 10px;
}
.coin-row .symbol {
font-weight: 600;
font-size: 13px;
}
.coin-row .change {
font-size: 11px;
margin-left: 5px;
}
.coin-row .price {
font-size: 13px;
font-weight: 500;
}
.terminal-content {
flex: 1;
display: flex;
flex-direction: column;
border-right: 1px solid var(--term-border);
}
.content-header {
height: 60px;
border-bottom: 1px solid var(--term-border);
display: flex;
align-items: center;
padding: 0 20px;
gap: 30px;
}
.kline-container {
flex: 1;
min-height: 400px;
background: #000;
}
.trading-panels {
padding: 20px;
background: var(--term-surface);
}
.order-history {
flex: 1;
overflow-y: auto;
scrollbar-width: none;
}
.order-history::-webkit-scrollbar {
display: none;
}
/* Binary Order Panel */
.cycle-grid {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 1px;
background: var(--term-border);
border: 1px solid var(--term-border);
border-radius: 4px;
overflow: hidden;
}
.cycle-btn {
background: var(--term-bg);
border: none;
color: var(--term-muted);
padding: 12px 5px;
font-size: 11px;
font-weight: 600;
transition: all 0.2s;
}
.cycle-btn:hover {
background: rgba(255,255,255,0.05);
color: var(--term-text);
}
.cycle-btn.active {
background: var(--term-primary);
color: #fff;
}
.amount-input-wrapper input {
height: 50px;
font-size: 18px;
font-weight: bold;
text-align: center;
border-radius: 8px;
}
.section-title {
font-size: 12px;
font-weight: 600;
color: var(--term-muted);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.quick-amounts .btn {
font-weight: 600;
background: #2b3139;
border: none;
}
.quick-amounts .btn:hover {
background: #3b424c;
}
.binary-order-panel {
background: var(--term-surface);
border-radius: 12px;
}