Files
aitrade/pkg/app/web/static/style.css
T
kaedwen fe16cb55cb
Build and Push Docker Image / build-and-push (push) Successful in 3m43s
fix news page
Signed-off-by: kaedwen <kaedwen@heinrich.blue>
2026-07-09 22:54:40 +02:00

501 lines
8.2 KiB
CSS

body {
font-family: Arial, sans-serif;
margin: 20px;
background: #f5f5f5;
}
.container {
max-width: 1600px;
margin: 0 auto;
background: white;
padding: 20px;
border-radius: 8px;
}
h1 {
color: #333;
margin-bottom: 10px;
}
h2 {
color: #555;
margin-top: 30px;
border-bottom: 2px solid #ddd;
padding-bottom: 5px;
}
.tabs {
display: flex;
border-bottom: 2px solid #ddd;
margin-bottom: 20px;
}
.tab {
padding: 10px 20px;
cursor: pointer;
background: #f0f0f0;
border: none;
margin-right: 5px;
text-decoration: none;
color: inherit;
display: inline-block;
}
.tab:hover {
background: #e0e0e0;
}
.tab.active {
background: white;
border-bottom: 3px solid #4CAF50;
}
.tab-content {
display: block;
}
.mode-banner {
padding: 6px 16px;
margin: 0;
border-radius: 20px;
font-weight: bold;
text-align: center;
font-size: 0.85em;
opacity: 0;
transition: opacity 0.3s ease;
white-space: nowrap;
}
.mode-banner.loaded {
opacity: 1;
}
.mode-live {
background: #f8d7da;
color: #721c24;
border: 2px solid #dc3545;
}
.mode-dryrun {
background: #fff3cd;
color: #856404;
border: 2px solid #ffc107;
}
.stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
margin: 20px 0;
}
.stat-card {
background: #f9f9f9;
padding: 15px;
border-radius: 5px;
border-left: 4px solid #4CAF50;
}
.stat-card h3 {
margin: 0 0 10px 0;
color: #666;
font-size: 14px;
}
.stat-card .value {
font-size: 24px;
font-weight: bold;
color: #333;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 10px;
}
th, td {
padding: 12px;
text-align: left;
border-bottom: 1px solid #ddd;
}
th {
background: #f0f0f0;
font-weight: bold;
}
.status {
padding: 4px 8px;
border-radius: 3px;
font-size: 12px;
font-weight: bold;
}
.status-pending { background: #FFF3CD; color: #856404; }
.status-approved { background: #D1ECF1; color: #0C5460; }
.status-submitted { background: #D4EDDA; color: #155724; }
.status-completed { background: #D4EDDA; color: #155724; }
.status-rejected { background: #F8D7DA; color: #721C24; }
.action-btn {
padding: 6px 12px;
margin: 2px;
border: none;
border-radius: 3px;
cursor: pointer;
font-size: 12px;
}
.approve-btn { background: #28a745; color: white; }
.reject-btn { background: #dc3545; color: white; }
.force-btn { background: #ffc107; color: black; }
.add-btn { background: #007bff; color: white; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; }
.edit-btn { background: #17a2b8; color: white; }
.delete-btn { background: #dc3545; color: white; }
.save-btn { background: #28a745; color: white; padding: 8px 16px; }
.cancel-btn { background: #6c757d; color: white; padding: 8px 16px; }
.enabled { color: #28a745; font-weight: bold; }
.disabled { color: #dc3545; font-weight: bold; }
.dry-run-badge { background: #ffc107; color: black; padding: 2px 6px; border-radius: 3px; font-size: 11px; margin-left: 5px; }
.pnl-positive { color: #28a745; font-weight: bold; }
.pnl-negative { color: #dc3545; font-weight: bold; }
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.5);
z-index: 1000;
}
.modal.active {
display: flex;
align-items: center;
justify-content: center;
}
.modal-content {
background: white;
padding: 30px;
border-radius: 8px;
max-width: 500px;
width: 90%;
}
.modal-content h2 {
margin-top: 0;
}
.form-group {
margin-bottom: 15px;
}
.form-group label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}
.form-group input, .form-group textarea {
width: 100%;
padding: 8px;
border: 1px solid #ddd;
border-radius: 4px;
}
.form-group textarea {
height: 80px;
resize: vertical;
}
.form-actions {
display: flex;
gap: 10px;
margin-top: 20px;
}
.checkbox-label {
display: flex;
align-items: center;
gap: 8px;
}
.checkbox-label input[type="checkbox"] {
width: auto;
}
/* ===== NEWS PAGE STYLES ===== */
.news-container {
max-width: 1200px;
margin: 0 auto;
}
.news-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 2px solid #ddd;
}
.news-stats {
display: flex;
align-items: center;
gap: 15px;
font-size: 0.9em;
color: #666;
}
.stat-highlight {
font-weight: bold;
color: #007bff;
background: #e7f3ff;
padding: 4px 12px;
border-radius: 12px;
}
.news-filters {
display: flex;
gap: 10px;
margin-bottom: 20px;
}
.filter-btn {
padding: 8px 16px;
border: 2px solid #ddd;
background: white;
cursor: pointer;
border-radius: 4px;
transition: all 0.2s;
}
.filter-btn:hover {
background: #f0f0f0;
}
.filter-btn.active {
background: #007bff;
color: white;
border-color: #007bff;
}
.news-list {
display: flex;
flex-direction: column;
gap: 15px;
}
.news-article {
padding: 15px;
border-radius: 8px;
border-left: 4px solid #ccc;
background: white;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
transition: all 0.2s ease;
}
.news-article:hover {
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
border-left-width: 6px;
}
.news-article.positive {
border-left-color: #28a745;
background: #f0fff4;
}
.news-article.negative {
border-left-color: #dc3545;
background: #fff5f5;
}
.news-article.neutral {
border-left-color: #6c757d;
background: #f8f9fa;
}
.news-article-header {
display: flex;
justify-content: space-between;
align-items: start;
margin-bottom: 10px;
}
.news-title {
font-size: 1.1em;
font-weight: bold;
margin: 0;
flex: 1;
}
.news-title a {
color: #333;
text-decoration: none;
}
.news-title a:hover {
color: #007bff;
text-decoration: underline;
}
.news-sentiment {
display: flex;
align-items: center;
gap: 8px;
margin-left: 15px;
}
.sentiment-badge {
padding: 4px 12px;
border-radius: 12px;
font-size: 0.85em;
font-weight: bold;
white-space: nowrap;
}
.sentiment-badge.positive {
background: #28a745;
color: white;
}
.sentiment-badge.negative {
background: #dc3545;
color: white;
}
.sentiment-badge.neutral {
background: #6c757d;
color: white;
}
.sentiment-score {
font-size: 0.9em;
color: #666;
font-weight: bold;
}
.news-meta {
display: flex;
gap: 15px;
font-size: 0.85em;
color: #666;
margin-bottom: 8px;
}
.news-source {
font-weight: bold;
color: #007bff;
}
.news-time {
color: #999;
}
.news-fetched {
color: #999;
font-size: 0.9em;
}
.news-fetched:hover {
color: #666;
cursor: help;
}
.news-content {
color: #555;
line-height: 1.5;
margin-top: 8px;
}
.news-symbols {
margin-top: 10px;
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.symbol-tag {
padding: 3px 8px;
background: #e9ecef;
border-radius: 4px;
font-size: 0.85em;
font-weight: bold;
color: #495057;
}
.news-method {
font-size: 0.8em;
color: #999;
font-style: italic;
margin-top: 5px;
}
.loading {
text-align: center;
padding: 40px;
color: #999;
}
.no-news {
text-align: center;
padding: 40px;
color: #999;
font-style: italic;
}
/* Sticky Header Styles */
.sticky-header {
position: sticky;
top: 0;
background: white;
z-index: 100;
transition: all 0.3s ease;
padding: 20px 20px 10px 20px;
margin: 0 -20px 20px -20px; /* Extend to container edges */
}
.sticky-header.scrolled {
padding: 10px 20px 5px 20px;
}
.sticky-header.scrolled h2 {
font-size: 1.3rem;
margin-top: 10px;
}
.sticky-header.scrolled .stats {
gap: 10px;
}
.sticky-header.scrolled .stat-card {
padding: 10px;
}
.sticky-header.scrolled .stat-card h3 {
font-size: 0.8rem;
}
.sticky-header.scrolled .stat-card .value {
font-size: 1.2rem;
}
.sticky-header h2 {
transition: all 0.3s ease;
}
.sticky-header .stats {
transition: all 0.3s ease;
}
.sticky-header .stat-card {
transition: all 0.3s ease;
}