quality update:

- calculator
- result screens
- some fixes
This commit is contained in:
2026-02-08 15:19:13 +01:00
parent aa01f4136d
commit d0bbf7bdce
39 changed files with 3323 additions and 69107 deletions
+155 -55
View File
@@ -24,7 +24,7 @@
height: calc(100vh - 70px);
display: flex;
flex-direction: column;
padding: 15px;
padding: 0px;
gap: 15px;
}
@@ -36,6 +36,7 @@
text-align: center;
flex-shrink: 0;
position: relative;
margin: 10px 15px 5px 15px;
}
.tournament-header .nav-btn {
@@ -104,85 +105,126 @@
flex: 1;
display: flex;
flex-direction: column;
gap: 8px;
gap: 12px;
min-height: 0;
overflow-y: auto;
padding: 5px;
overflow-x: hidden;
padding: 15px;
background: white;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
margin: 5px 15px 15px 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: 10px;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
border-radius: 12px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
overflow: hidden;
transition: all 0.2s ease;
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: 4px solid #28a745;
box-shadow: 0 4px 15px rgba(0, 123, 255, 0.25);
border-left: 5px solid #5a8fd1;
border-color: #5a8fd1;
box-shadow: 0 6px 24px rgba(90, 143, 209, 0.25);
}
.round-row.completed {
border-left: 4px solid #28a745;
opacity: 0.95;
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: #f8f9fa;
border-right: 1px solid #e9ecef;
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: 10px 15px;
min-width: 120px;
padding: 14px 16px;
flex-shrink: 0;
text-align: center;
min-width: 130px;
}
.round-row.current .round-header {
background: #e3f2fd;
background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
border-right-color: #5a8fd1;
}
.round-row.completed .round-header {
background: #e8f5e8;
background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
border-right-color: #28a745;
}
.round-title {
font-size: 1rem;
font-weight: bold;
font-size: 1.05rem;
font-weight: 700;
color: #333;
margin-bottom: 4px;
margin-bottom: 6px;
letter-spacing: 0.3px;
}
.round-badge {
padding: 3px 8px;
border-radius: 10px;
font-size: 0.65rem;
font-weight: bold;
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: #28a745;
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: #6c757d;
background: #9ca3af;
color: white;
box-shadow: 0 2px 6px rgba(156, 163, 175, 0.2);
}
.positions-container {
@@ -191,59 +233,79 @@
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;
overflow: visible;
display: flex;
flex-direction: row;
transition: all 0.3s ease;
box-shadow: 0 2px 6px rgba(156, 163, 175, 0.2);
min-height: 70px;
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 6px rgba(90, 143, 209, 0.2);
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: #5a8fd1;
background: linear-gradient(135deg, #5a8fd1 0%, #4a7db8 100%);
}
/* Completed round - green cards */
.round-row.completed .position-card {
border-color: #28a745;
box-shadow: 0 2px 6px rgba(40, 167, 69, 0.2);
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: #28a745;
background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}
/* Waiting round - gray cards */
.round-row.waiting .position-card {
border-color: #9ca3af;
box-shadow: 0 2px 6px rgba(156, 163, 175, 0.2);
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: #9ca3af;
background: linear-gradient(135deg, #9ca3af 0%, #8b929f 100%);
}
.position-header {
background: #9ca3af;
padding: 0;
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 {
@@ -251,14 +313,14 @@
}
.position-number {
font-size: 1.6rem;
font-size: 2rem;
font-weight: 700;
color: white;
line-height: 1;
}
.position-body {
padding: 10px 12px;
padding: 12px;
display: flex;
flex-direction: column;
justify-content: center;
@@ -266,6 +328,7 @@
flex: 1;
background: white;
border-radius: 0 8px 8px 0;
overflow: visible;
}
.position-card.empty .position-body {
@@ -276,10 +339,13 @@
font-size: 1.15rem;
font-weight: 600;
color: #2c3e50;
line-height: 1.3;
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 {
@@ -372,26 +438,30 @@
border: 1px solid #ddd !important;
border-radius: 0 !important;
box-shadow: none !important;
margin-bottom: 15px;
page-break-inside: avoid;
display: block !important;
display: flex !important;
flex-direction: row !important;
margin-bottom: 15px;
flex-shrink: 0 !important;
}
.round-row.current,
.round-row.completed,
.round-row.waiting {
border-left: 1px solid #ddd !important;
border-left: 2px solid #ddd !important;
opacity: 1 !important;
}
.round-header {
background: #f8f9fa !important;
border: none !important;
border-bottom: 1px solid #ddd !important;
border-right: 1px solid #ddd !important;
display: flex !important;
justify-content: space-between !important;
flex-direction: column !important;
justify-content: center !important;
align-items: center !important;
padding: 10px 15px !important;
min-width: 130px !important;
}
.round-row.current .round-header,
@@ -403,7 +473,6 @@
.round-title {
font-size: 14pt !important;
font-weight: bold !important;
flex-shrink: 0;
}
.round-badge {
@@ -411,9 +480,7 @@
}
.round-print-info {
display: flex !important;
align-items: center !important;
gap: 20px !important;
display: none !important;
}
.round-time-field {
@@ -460,21 +527,23 @@
.positions-container {
display: grid !important;
grid-template-columns: repeat(3, 1fr) !important;
gap: 10px !important;
grid-template-columns: repeat(6, 1fr) !important;
gap: 8px !important;
padding: 15px !important;
overflow: visible !important;
}
.position-card {
border: 1px solid #5a8fd1 !important;
border-radius: 8px !important;
overflow: hidden !important;
border-radius: 4px !important;
overflow: visible !important;
background: white !important;
box-shadow: none !important;
min-height: 60px !important;
min-height: 70px !important;
page-break-inside: avoid;
display: flex !important;
flex-direction: row !important;
flex-shrink: 0 !important;
}
/* All cards in print have same blue color */
@@ -486,13 +555,42 @@
.position-header {
background: #5a8fd1 !important;
padding: 0 !important;
padding: 10px 0 !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
flex-shrink: 0 !important;
min-width: 40px !important;
width: 40px !important;
min-height: 70px !important;
}
.position-number {
font-size: 12pt !important;
font-weight: bold !important;
color: white !important;
}
.position-body {
padding: 6px 10px !important;
display: flex !important;
flex-direction: column !important;
justify-content: center !important;
align-items: center !important;
flex: 1 !important;
background: white !important;
overflow: hidden !important;
}
.player-name {
font-size: 10pt !important;
font-weight: 600 !important;
color: #2c3e50 !important;
line-height: 1.2 !important;
white-space: nowrap !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
max-width: 100% !important;
}
.round-row.current .position-card .position-header,
@@ -511,7 +609,7 @@
}
.position-body {
padding: 8px 10px !important;
padding: 10px !important;
background: white !important;
flex: 1 !important;
display: flex !important;
@@ -525,8 +623,10 @@
}
.player-name {
font-size: 11pt !important;
font-size: 10pt !important;
color: #2c3e50 !important;
white-space: normal !important;
overflow: visible !important;
}
.position-card.empty .player-name {