remove fullscreen feature and nicely cleanup all CSS
This commit is contained in:
@@ -0,0 +1,169 @@
|
||||
/* ============================================================
|
||||
Results display page styles
|
||||
============================================================ */
|
||||
|
||||
html, body {
|
||||
background: #f5f5f5;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.navbar-logo { height: 40px; max-width: 120px; object-fit: contain; }
|
||||
.nav-btn.primary { background: #28a745; border-color: #1e7e34; color: white; }
|
||||
.nav-btn.primary:hover { background: #1e7e34; color: white; }
|
||||
|
||||
/* Main TV Layout */
|
||||
.tv-container {
|
||||
height: calc(100vh - 90px);
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 2fr;
|
||||
gap: 20px;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.left-column { display: flex; flex-direction: column; gap: 0; overflow: hidden; flex: 1; min-height: 0; }
|
||||
|
||||
.results-header {
|
||||
border-radius: 12px 12px 0 0;
|
||||
padding: 15px;
|
||||
text-align: center;
|
||||
flex-shrink: 0;
|
||||
color: white;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.results-header.tournament-4_targets { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
|
||||
.results-header.tournament-20_targets { background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%); }
|
||||
.results-header.tournament-40_targets { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
|
||||
|
||||
.results-header::before {
|
||||
content: ''; position: absolute; inset: 0;
|
||||
background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
|
||||
pointer-events: none;
|
||||
}
|
||||
.results-header * { position: relative; z-index: 2; }
|
||||
|
||||
.header-logo {
|
||||
height: 60px; max-width: 160px; object-fit: contain; margin-bottom: 12px;
|
||||
filter: brightness(1.2) contrast(1.1); background-color: white; padding: 8px;
|
||||
border-radius: 8px; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2);
|
||||
}
|
||||
|
||||
.results-title { font-size: 2rem; font-weight: 700; color: white; margin-bottom: 6px; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
|
||||
.results-subtitle { font-size: 1rem; color: rgba(255,255,255,0.95); margin-bottom: 12px; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
|
||||
.results-meta { display: flex; justify-content: space-around; gap: 12px; }
|
||||
.meta-item { text-align: center; }
|
||||
.meta-number { font-size: 1.2rem; font-weight: 700; color: white; display: block; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
|
||||
.meta-label { font-size: 0.65rem; color: rgba(255,255,255,0.9); text-transform: uppercase; letter-spacing: 0.3px; font-weight: 500; }
|
||||
|
||||
/* Podium */
|
||||
.podium-section {
|
||||
background: white; border-radius: 0 0 12px 12px; padding: 12px;
|
||||
flex: 1; display: flex; flex-direction: column; overflow: visible;
|
||||
min-height: 0; border: 1px solid #e9ecef;
|
||||
}
|
||||
.podium-title { text-align: center; font-size: 0.9rem; font-weight: 700; color: #2c3e50; margin-bottom: 8px; }
|
||||
.podium-container { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 0.75fr 0.75fr 1.5fr; gap: 10px; overflow: hidden; flex: 1; min-height: 0; }
|
||||
|
||||
.podium-card {
|
||||
background: white; border-radius: 12px; padding: 12px 12px 18px 12px;
|
||||
display: flex; flex-direction: column; align-items: center; gap: 8px;
|
||||
transition: all 0.3s ease; position: relative; overflow: hidden;
|
||||
border: 1px solid #e9ecef; border-top-width: 6px; justify-content: flex-end;
|
||||
}
|
||||
|
||||
.podium-card::before {
|
||||
content: ''; position: absolute; top: 6px; left: 1px; right: 1px; bottom: 1px;
|
||||
background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 100%);
|
||||
pointer-events: none; z-index: 1; border-radius: 0 0 11px 11px;
|
||||
}
|
||||
.podium-card:hover { box-shadow: none; }
|
||||
|
||||
.podium-card.rank-1 { border-top-color: #ffd700; border-color: #ffd700; background: linear-gradient(135deg, #fffbf0 0%, #fff9e6 100%); grid-column: 2; grid-row: 1 / 4; }
|
||||
.podium-card.rank-2 { border-top-color: #c0c0c0; border-color: #c0c0c0; background: linear-gradient(135deg, #f5f5f5 0%, #f0f0f0 100%); grid-column: 1; grid-row: 2 / 4; }
|
||||
.podium-card.rank-3 { border-top-color: #cd7f32; border-color: #cd7f32; background: linear-gradient(135deg, #fff5f0 0%, #ffe8dc 100%); grid-column: 3; grid-row: 3; }
|
||||
|
||||
.rank-display { display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; z-index: 2; }
|
||||
.medal { font-size: 4.5rem; line-height: 1; }
|
||||
.rank-number { font-size: 1.9rem; font-weight: 900; color: #333; line-height: 1; }
|
||||
.podium-card.rank-1 .rank-number { color: #b8860b; }
|
||||
.podium-card.rank-2 .rank-number { color: #696969; }
|
||||
.podium-card.rank-3 .rank-number { color: #8b4513; }
|
||||
|
||||
.participant-info { flex: 1; min-width: 0; text-align: center; position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; }
|
||||
.participant-name { font-size: 1rem; font-weight: 700; color: #2c3e50; margin: 0; word-wrap: break-word; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }
|
||||
.participant-id { display: none; }
|
||||
|
||||
.score-display { text-align: center; position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 1px; }
|
||||
.score-number { font-size: 1.8rem; font-weight: 900; color: #28a745; line-height: 1; }
|
||||
.tens-count { font-size: 1.2rem; color: #ffc107; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
|
||||
.score-label { font-size: 0.6rem; color: #999; text-transform: uppercase; font-weight: 600; letter-spacing: 0.3px; }
|
||||
|
||||
/* Right Column - Results Table */
|
||||
.right-column { background: white; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid #e9ecef; }
|
||||
.table-header { background: #f8f9fa; padding: 8px 12px; border-bottom: 1px solid #dee2e6; flex-shrink: 0; }
|
||||
.table-title { font-size: 0.95rem; font-weight: 600; color: #2c3e50; margin: 0; }
|
||||
.table-container { flex: 1; overflow: auto; min-height: 0; }
|
||||
|
||||
.results-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
|
||||
.results-table th, .results-table td { padding: 4px 6px; text-align: center; border-bottom: 1px solid #f1f3f4; border-right: 1px solid #f1f3f4; }
|
||||
.results-table th { background: #f8f9fa; font-weight: 600; color: #495057; text-transform: uppercase; font-size: 0.65rem; letter-spacing: 0.3px; position: sticky; top: 0; z-index: 10; }
|
||||
.results-table th.player-col { text-align: left; }
|
||||
.results-table th.score-col { background: #e3f2fd; }
|
||||
.results-table th.tens-col { background: #fff3cd; }
|
||||
.results-table tbody tr:hover { background: #f8f9fa; }
|
||||
.results-table tbody tr:nth-child(1) { background: #fff9e6; }
|
||||
.results-table tbody tr:nth-child(1):hover { background: #fff3cd; }
|
||||
.results-table tbody tr:nth-child(2) { background: #f5f5f5; }
|
||||
.results-table tbody tr:nth-child(2):hover { background: #e9ecef; }
|
||||
.results-table tbody tr:nth-child(3) { background: #fdf6f0; }
|
||||
.results-table tbody tr:nth-child(3):hover { background: #f8f1e6; }
|
||||
|
||||
.rank-cell { font-size: 1rem; font-weight: 700; text-align: center; }
|
||||
.rank-1 { color: #b8860b; }
|
||||
.rank-2 { color: #6c757d; }
|
||||
.rank-3 { color: #8b4513; }
|
||||
.player-cell { text-align: left !important; }
|
||||
.player-name { font-size: 0.75rem; font-weight: 600; color: #2c3e50; }
|
||||
.score-cell { background: #e3f2fd !important; font-size: 0.75rem; font-weight: 700; color: #1976d2; }
|
||||
.tens-cell { background: #fff3cd !important; font-size: 0.75rem; font-weight: 700; color: #856404; }
|
||||
|
||||
.stats-footer { background: white; border-top: 1px solid #dee2e6; padding: 6px 15px; display: flex; justify-content: space-around; font-size: 0.7rem; color: #6c757d; flex-shrink: 0; }
|
||||
.stat-item { text-align: center; }
|
||||
.stat-value { font-weight: 600; color: #28a745; }
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.tv-container { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
|
||||
.results-meta { gap: 15px; }
|
||||
.meta-number { font-size: 1.5rem; }
|
||||
.podium-section { padding: 20px 15px; }
|
||||
.results-table { font-size: 0.8rem; }
|
||||
.results-table th, .results-table td { padding: 8px 6px; }
|
||||
.tens-cell, .score-cell { width: 60px; }
|
||||
}
|
||||
|
||||
@media print {
|
||||
.navbar, .debug-info { display: none !important; }
|
||||
html, body { height: auto !important; overflow: visible !important; background: white !important; margin: 0; padding: 20px; }
|
||||
.tv-container { display: block !important; height: auto !important; padding: 0 !important; gap: 0 !important; margin: 0 !important; }
|
||||
.left-column { display: block !important; margin-bottom: 0; }
|
||||
.results-header { background: white !important; color: #333 !important; box-shadow: none !important; border: 2px solid #ddd !important; border-radius: 8px !important; padding: 16px 20px !important; margin-bottom: 16px; overflow: visible !important; position: static !important; }
|
||||
.results-header::before { display: none !important; }
|
||||
.results-header * { position: static !important; z-index: auto !important; }
|
||||
.header-logo { display: block !important; height: 50px !important; max-width: 140px !important; background-color: transparent !important; padding: 0 !important; border: none !important; filter: none !important; backdrop-filter: none !important; margin-bottom: 10px; }
|
||||
.results-title { font-size: 20pt !important; font-weight: bold !important; color: #111 !important; text-shadow: none !important; margin-bottom: 4px; }
|
||||
.results-subtitle { font-size: 11pt !important; color: #555 !important; text-shadow: none !important; margin-bottom: 10px; }
|
||||
.results-meta { color: #333 !important; }
|
||||
.meta-number { font-size: 14pt !important; color: #111 !important; text-shadow: none !important; }
|
||||
.meta-label { font-size: 9pt !important; color: #666 !important; }
|
||||
.podium-section { display: none !important; }
|
||||
.right-column { background: white !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible !important; display: block !important; margin: 0 !important; padding: 0 !important; }
|
||||
.table-header { display: none !important; }
|
||||
.results-table { margin-top: 0 !important; }
|
||||
}
|
||||
Reference in New Issue
Block a user