remove fullscreen feature and nicely cleanup all CSS

This commit is contained in:
2026-06-11 20:41:17 +02:00
parent 9a54e22bd0
commit 522be1f28b
30 changed files with 12626 additions and 9975 deletions
+1 -570
View File
@@ -9,576 +9,7 @@
<link rel="stylesheet" href="/static/css/buttons.css">
<link rel="stylesheet" href="/static/css/components.css">
<link rel="stylesheet" href="/static/css/responsive.css">
<style>
/* Draft-specific styles */
html, body {
margin: 0;
padding: 0;
background: #f5f5f5;
font-family: Arial, sans-serif;
height: 100vh;
overflow: hidden;
}
.main-container {
height: calc(100vh - 70px);
display: flex;
flex-direction: column;
padding: 0px;
gap: 0px;
}
.tournament-header {
background: white;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
padding: 10px 16px;
flex-shrink: 0;
margin: 8px 15px 0px 15px;
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.tournament-title {
font-size: 1rem;
font-weight: 700;
color: #333;
white-space: nowrap;
}
.tournament-stats {
color: #888;
font-size: 0.82rem;
}
.tournament-controls {
display: flex;
align-items: center;
gap: 10px;
margin-left: auto;
}
.round-nav-btn {
background: #f8f9fa;
border: 2px solid #e9ecef;
cursor: pointer;
padding: 8px 14px;
border-radius: 8px;
transition: all 0.2s ease;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
color: #333;
font-weight: bold;
font-size: 0.85rem;
}
.round-nav-btn:hover {
background: #e9ecef;
border-color: #28a745;
color: #28a745;
}
.round-nav-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none !important;
}
.current-round-display {
font-size: 1rem;
font-weight: bold;
color: #333;
margin: 0 15px;
min-width: 140px;
text-align: center;
}
/* Rounds Container - Vertical stack */
.rounds-container {
flex: 1;
display: flex;
flex-direction: column;
gap: 8px;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
padding: 10px;
background: white;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
margin: 8px 15px 8px 15px;
}
/* Custom scrollbar styling */
.rounds-container::-webkit-scrollbar {
width: 12px;
}
.rounds-container::-webkit-scrollbar-track {
background: #f5f5f5;
border-radius: 10px;
}
.rounds-container::-webkit-scrollbar-thumb {
background: #5a8fd1;
border-radius: 10px;
border: 2px solid #f5f5f5;
}
.rounds-container::-webkit-scrollbar-thumb:hover {
background: #4a7db8;
}
.round-row {
background: white;
border-radius: 12px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
overflow: hidden;
transition: all 0.3s ease;
display: flex;
flex-direction: row;
flex-shrink: 0;
min-height: 0;
border: 2px solid #e9ecef;
border-left: 5px solid #9ca3af;
}
.round-row.current {
border-left: 5px solid #5a8fd1;
border-color: #5a8fd1;
box-shadow: 0 6px 24px rgba(90, 143, 209, 0.25);
}
.round-row.completed {
border-left: 5px solid #28a745;
border-color: #28a745;
opacity: 0.98;
box-shadow: 0 4px 16px rgba(40, 167, 69, 0.15);
}
.round-row.waiting {
opacity: 0.8;
border-color: #d1d5db;
}
.round-header {
background: linear-gradient(135deg, #f8f9fa 0%, #f0f1f3 100%);
border-right: 3px solid #e9ecef;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 14px 16px;
flex-shrink: 0;
text-align: center;
min-width: 130px;
}
.round-row.current .round-header {
background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
border-right-color: #5a8fd1;
}
.round-row.completed .round-header {
background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
border-right-color: #28a745;
}
.round-title {
font-size: 1.05rem;
font-weight: 700;
color: #333;
margin-bottom: 6px;
letter-spacing: 0.3px;
}
.round-badge {
padding: 4px 10px;
border-radius: 12px;
font-size: 0.7rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.current-badge {
background: #5a8fd1;
color: white;
box-shadow: 0 2px 8px rgba(90, 143, 209, 0.3);
}
.completed-badge {
background: #28a745;
color: white;
box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}
.waiting-badge {
background: #9ca3af;
color: white;
box-shadow: 0 2px 6px rgba(156, 163, 175, 0.2);
}
.positions-container {
flex: 1;
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 8px;
padding: 12px;
overflow: hidden;
}
.position-card {
background: white;
border: 2px solid #9ca3af;
border-radius: 10px;
overflow: hidden;
display: flex;
flex-direction: row;
transition: all 0.3s ease;
box-shadow: 0 2px 8px rgba(156, 163, 175, 0.18);
min-height: 80px;
flex-shrink: 0;
}
.position-card:hover {
transform: translateY(-2px);
box-shadow: 0 3px 12px rgba(156, 163, 175, 0.28);
}
/* Current round - blue cards */
.round-row.current .position-card {
border-color: #5a8fd1;
box-shadow: 0 2px 8px rgba(90, 143, 209, 0.25);
}
.round-row.current .position-card:hover {
box-shadow: 0 3px 12px rgba(90, 143, 209, 0.35);
}
.round-row.current .position-card .position-header {
background: linear-gradient(135deg, #5a8fd1 0%, #4a7db8 100%);
}
/* Completed round - green cards */
.round-row.completed .position-card {
border-color: #28a745;
box-shadow: 0 2px 8px rgba(40, 167, 69, 0.25);
}
.round-row.completed .position-card:hover {
box-shadow: 0 3px 12px rgba(40, 167, 69, 0.35);
}
.round-row.completed .position-card .position-header {
background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}
/* Waiting round - gray cards */
.round-row.waiting .position-card {
border-color: #9ca3af;
box-shadow: 0 2px 8px rgba(156, 163, 175, 0.2);
}
.round-row.waiting .position-card:hover {
box-shadow: 0 3px 10px rgba(156, 163, 175, 0.3);
}
.round-row.waiting .position-card .position-header {
background: linear-gradient(135deg, #9ca3af 0%, #8b929f 100%);
}
.position-header {
background: #9ca3af;
padding: 12px 0;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
min-width: 50px;
width: 50px;
min-height: 80px;
}
.position-card.empty .position-header {
background: #9ca3af;
}
.position-number {
font-size: 2rem;
font-weight: 700;
color: white;
line-height: 1;
}
.position-body {
padding: 12px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
flex: 1;
background: white;
border-radius: 0 8px 8px 0;
overflow: visible;
}
.position-card.empty .position-body {
background: #f8f9fa;
}
.player-name {
font-size: 1.15rem;
font-weight: 600;
color: #2c3e50;
line-height: 1.4;
word-wrap: break-word;
max-width: 100%;
text-align: center;
white-space: normal;
overflow: visible;
text-overflow: clip;
}
.position-card.empty .player-name {
color: #6c757d;
font-style: italic;
font-weight: 500;
}
.player-id {
display: none;
}
/* No Tournament State */
.no-tournament {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
color: #666;
}
.no-tournament h2 {
color: #333;
margin-bottom: 15px;
font-size: 1.5rem;
}
.no-tournament p {
margin-bottom: 20px;
font-size: 1.1rem;
}
/* PRINT STYLES */
@media print {
.navbar,
.tournament-controls {
display: none !important;
}
.print-logo {
display: block !important;
height: 80px !important;
max-width: 300px !important;
object-fit: contain !important;
margin: 0 auto 16px auto !important;
}
html, body {
height: auto !important;
overflow: visible !important;
background: white !important;
margin: 0;
padding: 20px;
}
.main-container {
height: auto !important;
padding: 0 !important;
}
.tournament-header {
background: white !important;
color: #333 !important;
box-shadow: none !important;
border: 2px solid #ddd !important;
padding: 20px;
margin-bottom: 20px;
page-break-inside: avoid;
}
.tournament-title,
.tournament-stats {
display: none !important;
}
.tournament-header {
display: flex !important;
flex-direction: row !important;
align-items: center !important;
justify-content: space-between !important;
background: transparent !important;
border: none !important;
box-shadow: none !important;
border-radius: 0 !important;
padding: 0 0 16px 0 !important;
margin-bottom: 16px !important;
border-bottom: 1px solid #ddd !important;
}
.print-logo {
display: block !important;
height: 80px !important;
max-width: 300px !important;
object-fit: contain !important;
margin: 0 !important;
}
.print-meta {
display: flex !important;
flex-direction: column !important;
align-items: flex-end !important;
font-size: 11pt !important;
color: #555 !important;
gap: 4px;
}
.current-round-info,
.round-badge,
.round-print-info,
.player-id,
.no-tournament {
display: none !important;
}
.rounds-container {
display: block !important;
overflow: visible !important;
padding: 0 !important;
background: transparent !important;
border-radius: 0 !important;
box-shadow: none !important;
margin: 0 !important;
}
.round-row,
.round-row.current,
.round-row.completed,
.round-row.waiting {
box-shadow: none !important;
page-break-inside: avoid !important;
opacity: 1 !important;
margin-bottom: 6px !important;
min-height: 0 !important;
border-top: 1px solid #dee2e6 !important;
border-right: 1px solid #dee2e6 !important;
border-bottom: 1px solid #dee2e6 !important;
border-left: 1px solid #dee2e6 !important;
border-color: #dee2e6 !important;
}
.round-row.current .round-header,
.round-row.completed .round-header,
.round-row.waiting .round-header {
background: linear-gradient(135deg, #f8f9fa 0%, #f0f1f3 100%) !important;
}
.round-row.current .position-card,
.round-row.completed .position-card,
.round-row.waiting .position-card {
border-color: #5a8fd1 !important;
}
.round-row.current .position-card .position-header,
.round-row.completed .position-card .position-header,
.round-row.waiting .position-card .position-header {
background: #5a8fd1 !important;
}
.round-header {
padding: 8px 12px !important;
min-width: 90px !important;
}
.round-title {
font-size: 9pt !important;
}
.round-badge {
display: none !important;
}
.positions-container {
gap: 5px !important;
padding: 8px !important;
}
.position-card {
box-shadow: none !important;
transform: none !important;
transition: none !important;
page-break-inside: avoid !important;
min-height: 48px !important;
overflow: hidden !important;
border-radius: 10px !important;
}
.position-header {
min-width: 36px !important;
width: 36px !important;
}
.position-number {
font-size: 1.2rem !important;
}
.player-name {
font-size: 10pt !important;
}
/* Done checkbox */
.print-done-check {
display: flex !important;
align-items: center !important;
justify-content: center !important;
padding: 0 14px !important;
flex-shrink: 0 !important;
border-left: 1px solid rgba(0,0,0,0.1) !important;
}
.print-done-box {
width: 20px !important;
height: 20px !important;
border: 1.5px solid #555 !important;
border-radius: 4px !important;
display: block !important;
}
.print-done-label {
display: none !important;
}
.no-tournament {
display: none !important;
}
}
/* Print-only elements - hidden on screen */
@media screen {
.round-print-info,
.print-logo,
.print-meta,
.print-done-check {
display: none !important;
}
}
</style>
<link rel="stylesheet" href="/static/css/pages/draft.css">
<script src="/static/js/i18n.js"></script>
</head>
<body>