411 lines
6.0 KiB
CSS
411 lines
6.0 KiB
CSS
.dashboard {
|
|
background: white;
|
|
padding: 1rem;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.dashboard {
|
|
padding: 2rem;
|
|
}
|
|
}
|
|
|
|
.dashboard h2 {
|
|
margin-bottom: 1rem;
|
|
color: #2c3e50;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.dashboard h2 {
|
|
margin-bottom: 2rem;
|
|
font-size: 2rem;
|
|
}
|
|
}
|
|
|
|
.dashboard-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 1rem;
|
|
}
|
|
|
|
/* @media (min-width: 768px) {
|
|
.dashboard-grid {
|
|
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
|
|
gap: 2rem;
|
|
}
|
|
} */
|
|
|
|
.dashboard-card {
|
|
background: #f8f9fa;
|
|
padding: 1rem;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.dashboard-card {
|
|
padding: 1.5rem;
|
|
}
|
|
}
|
|
|
|
.dashboard-card h3 {
|
|
margin-bottom: 1rem;
|
|
color: #34495e;
|
|
}
|
|
|
|
.account-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.info-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.75rem 0;
|
|
border-bottom: 1px solid #dee2e6;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.info-item {
|
|
padding: 0.5rem 0;
|
|
}
|
|
}
|
|
|
|
.info-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.info-item .label {
|
|
color: #666;
|
|
font-weight: 500;
|
|
font-size: 0.9rem;
|
|
width: 100px;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.info-item .label {
|
|
font-size: 1rem;
|
|
}
|
|
}
|
|
|
|
.info-item .value {
|
|
font-weight: bold;
|
|
color: #2c3e50;
|
|
font-size: 0.95rem;
|
|
text-align: right;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
flex-direction: column;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.info-item .value {
|
|
flex-direction: row;
|
|
}
|
|
}
|
|
|
|
.position-bar-container {
|
|
width: 100px;
|
|
height: 8px;
|
|
background-color: #e9ecef;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
display: inline-block;
|
|
}
|
|
|
|
.position-bar {
|
|
height: 100%;
|
|
display: block;
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.info-item .value {
|
|
font-size: 1rem;
|
|
}
|
|
}
|
|
|
|
.info-item .value.positive {
|
|
color: #27ae60;
|
|
}
|
|
|
|
.info-item .value.negative {
|
|
color: #e74c3c;
|
|
}
|
|
|
|
.trades-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.trade-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 1rem;
|
|
background: white;
|
|
border-radius: 8px;
|
|
gap: 0.75rem;
|
|
margin-bottom: 0.75rem;
|
|
border: 1px solid #e9ecef;
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 768px) {
|
|
.trade-item {
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
.trade-info {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 0.5rem;
|
|
font-size: 0.85rem;
|
|
color: #666;
|
|
flex: 1;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.trade-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
}
|
|
}
|
|
|
|
.trade-symbol {
|
|
font-weight: bold;
|
|
color: #2c3e50;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.trade-symbol {
|
|
font-size: 1rem;
|
|
}
|
|
}
|
|
|
|
.trade-side {
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 12px;
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.trade-side.buy {
|
|
background-color: #d4edda;
|
|
color: #155724;
|
|
}
|
|
|
|
.trade-side.sell {
|
|
background-color: #f8d7da;
|
|
color: #721c24;
|
|
}
|
|
|
|
.trade-actions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.trade-actions {
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
}
|
|
|
|
.trade-pnl {
|
|
font-weight: bold;
|
|
font-size: 1rem;
|
|
text-align: right;
|
|
padding: 0.5rem;
|
|
background: #f8f9fa;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.entry-time {
|
|
color: #999;
|
|
font-size: 0.8rem;
|
|
font-style: italic;
|
|
}
|
|
|
|
.price-change {
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 4px;
|
|
display: inline-block;
|
|
}
|
|
|
|
.price-change.positive {
|
|
color: #28a745;
|
|
background-color: #d4edda;
|
|
}
|
|
|
|
.price-change.negative {
|
|
color: #dc3545;
|
|
background-color: #f8d7da;
|
|
}
|
|
|
|
.stop-take-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
margin-top: 0.5rem;
|
|
padding: 0.5rem;
|
|
background-color: #fff3cd;
|
|
border-radius: 4px;
|
|
border-left: 3px solid #ffc107;
|
|
}
|
|
|
|
.stop-loss-info,
|
|
.take-profit-info {
|
|
font-size: 0.85rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
padding: 0.5rem;
|
|
margin-bottom: 0.5rem;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.stop-loss-info {
|
|
background-color: #fff5f5;
|
|
border-left: 3px solid #dc3545;
|
|
}
|
|
|
|
.take-profit-info {
|
|
background-color: #f0fff4;
|
|
border-left: 3px solid #28a745;
|
|
}
|
|
|
|
.stop-header,
|
|
.take-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.stop-details,
|
|
.take-details {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
font-size: 0.8rem;
|
|
color: #666;
|
|
}
|
|
|
|
.stop-explanation,
|
|
.take-explanation {
|
|
font-size: 0.75rem;
|
|
color: #888;
|
|
font-style: italic;
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.stop-loss-info .negative,
|
|
.take-profit-info .positive {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.stop-loss-info .negative {
|
|
color: #dc3545;
|
|
}
|
|
|
|
.take-profit-info .positive {
|
|
color: #28a745;
|
|
}
|
|
|
|
.stop-price,
|
|
.take-price {
|
|
color: #666;
|
|
font-size: 0.8rem;
|
|
font-style: italic;
|
|
}
|
|
|
|
.close-btn {
|
|
padding: 0.5rem 1rem;
|
|
background: #e74c3c;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
transition: all 0.3s;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.close-btn:hover:not(:disabled) {
|
|
background: #c0392b;
|
|
}
|
|
|
|
.close-btn:active:not(:disabled) {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.close-btn:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
background: #95a5a6;
|
|
}
|
|
|
|
.message {
|
|
padding: 1rem;
|
|
margin-bottom: 1rem;
|
|
border-radius: 4px;
|
|
animation: slideIn 0.3s ease-out;
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.message.success {
|
|
background-color: #d4edda;
|
|
color: #155724;
|
|
border: 1px solid #c3e6cb;
|
|
}
|
|
|
|
.message.error {
|
|
background-color: #f8d7da;
|
|
color: #721c24;
|
|
border: 1px solid #f5c6cb;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.trade-pnl {
|
|
background: transparent;
|
|
padding: 0;
|
|
text-align: left;
|
|
}
|
|
}
|
|
|
|
.loading {
|
|
text-align: center;
|
|
padding: 2rem;
|
|
font-size: 1.2rem;
|
|
color: #666;
|
|
}
|