diff --git a/tournaments/static/tournaments/css/broadcast.css b/tournaments/static/tournaments/css/broadcast.css
index 513e9ed..77a67b5 100644
--- a/tournaments/static/tournaments/css/broadcast.css
+++ b/tournaments/static/tournaments/css/broadcast.css
@@ -23,12 +23,15 @@ body {
}
.bubble-header {
- padding: 30px;
+ padding: 20px;
background-color: white;
border-radius: 24px;
box-shadow: 0 0 0px 0px #fbead6;
}
+.bracket-bubble-header {
+}
+
.bubble-footer {
background-color: white;
display: flex;
@@ -36,7 +39,7 @@ body {
box-shadow: 0 0 0px 0px #fbead6;
align-items: center;
justify-content: center;
- padding: 0px 20px;
+ padding: 20px;
margin: 0;
}
@@ -56,15 +59,21 @@ body {
display: flex;
justify-content: center;
align-items: center;
- padding: 10px;
+ padding: 0px;
z-index: 100;
+ margin-bottom: 20px;
}
.sponsor-logo-broadcast {
- height: 16vh;
+ height: 100px;
object-fit: contain;
}
+.sponsor-logo-broadcast.screen-size-overlay {
+ object-fit: contain;
+ height: 80px; /* Example height matching QR code */
+}
+
.bold {
font-family: "Montserrat-Bold";
}
@@ -122,3 +131,20 @@ body {
.center {
align-items: center;
}
+
+.left-content.bubble-header {
+ display: flex;
+ align-items: top; /* Vertically align items (logo and text) */
+ height: 140px; /* Example height matching QR code */
+}
+
+.left-content.bubble-header.screen-size-overlay {
+ display: flex;
+ align-items: top; /* Vertically align items (logo and text) */
+ height: 100px; /* Example height matching QR code */
+}
+
+.logo {
+ height: 100%; /* Make the logo's height match the parent's height */
+ width: auto; /* Maintain the logo's aspect ratio */
+}
diff --git a/tournaments/static/tournaments/css/style.css b/tournaments/static/tournaments/css/style.css
index 2d72aab..cac39e7 100644
--- a/tournaments/static/tournaments/css/style.css
+++ b/tournaments/static/tournaments/css/style.css
@@ -46,7 +46,7 @@ h1 {
}
header {
- padding: 0px 10px;
+ padding: 0px 0px;
font-size: 1.5em;
}
@@ -112,7 +112,7 @@ hr {
@media print, screen and (min-width: 40em) {
.wrapper {
- margin: 0px 40px;
+ margin: 0px 20px;
}
}
@@ -930,7 +930,7 @@ h-margin {
display: flex;
justify-content: space-between;
align-items: center;
- padding: 30px 30px;
+ padding: 20px;
}
.left-content {
@@ -939,7 +939,8 @@ h-margin {
}
.right-content {
- margin-left: auto;
+ display: flex;
+ align-items: center;
}
/* CRM form */
diff --git a/tournaments/static/tournaments/css/tournament_bracket.css b/tournaments/static/tournaments/css/tournament_bracket.css
index 12ba4d6..966bc12 100644
--- a/tournaments/static/tournaments/css/tournament_bracket.css
+++ b/tournaments/static/tournaments/css/tournament_bracket.css
@@ -34,6 +34,7 @@
gap: 40px; /* Increased to account for horizontal lines (20px on each side) */
position: relative;
margin-bottom: 80px;
+ font-size: clamp(0.6em, 1vw, 1.2em) !important;
}
.round-title {
@@ -54,7 +55,7 @@
}
.round-title.broadcast-mode {
- font-size: 0.9em;
+ font-size: 0.8em;
width: auto; /* Change from 100% to auto */
}
@@ -208,12 +209,13 @@
.broadcast-mode .round-name,
.broadcast-mode .round-format {
padding: 0px;
- color: #505050;
+ color: white;
}
.broadcast-mode .round-title {
padding: 8px 20px; /* Slightly more horizontal padding */
- background-color: white;
+ background-color: #1a223a;
+ color: white !important;
align-content: center;
border-radius: 24px;
}
@@ -227,8 +229,12 @@
background-color: #505050 !important; /* Bright yellow - change to your preferred color */
}
-/* Broadcast mode styling for all lines */
-.broadcast-mode .butterfly-match::before,
+.broadcast-mode
+ .butterfly-round:first-child
+ .butterfly-match.butterfly-match:has(.incoming-line.disabled)::before {
+ visibility: hidden;
+}
+
.broadcast-mode .butterfly-match.reverse-bracket::before,
.broadcast-mode .incoming-line,
.broadcast-mode .outgoing-line,
diff --git a/tournaments/static/tournaments/js/tournament_bracket.js b/tournaments/static/tournaments/js/tournament_bracket.js
index a62be46..a5aec18 100644
--- a/tournaments/static/tournaments/js/tournament_bracket.js
+++ b/tournaments/static/tournaments/js/tournament_bracket.js
@@ -39,15 +39,20 @@ function renderBracket(options) {
if (doubleButterflyMode == true && roundCount > 1) {
roundTotalCount = roundCount - 1;
}
- const padding = 50 * roundTotalCount; // Account for some padding/margin
+ const padding = (15 - roundTotalCount / 1.5 + 20 + 20) * roundTotalCount; // Account for some padding/margin
const availableWidth = screenWidth - padding;
responsiveMatchWidth = Math.floor(availableWidth / roundTotalCount);
+ let topMargin = 0;
if (isBroadcast) {
responsiveMatchWidth = Math.min(
- 365,
+ 500,
Math.floor(availableWidth / roundTotalCount),
);
+
+ if (roundTotalCount < 6) {
+ topMargin = 60;
+ }
}
rounds.forEach((roundMatches, roundIndex) => {
@@ -319,7 +324,7 @@ function renderBracket(options) {
"--next-match-distance",
`${nextMatchDistance}px`,
);
- matchDiv.style.top = `${top}px`;
+ matchDiv.style.top = `${top + topMargin}px`;
matchPositions[roundIndex][matchRealIndex] = top;
if (matchIndex === 0) {
@@ -336,19 +341,19 @@ function renderBracket(options) {
// }
// Position title above the first match
- titleDiv.style.top = `${-80}px`; // Adjust the 60px offset as needed
+ titleDiv.style.top = `${topMargin - 80}px`; // Adjust the 60px offset as needed
if (
(roundIndex == finalRoundIndex && realRoundIndex == 0) ||
isBroadcast == true
) {
- titleDiv.style.top = `${top - 80}px`; // Adjust the 60px offset as needed
+ titleDiv.style.top = `${top + topMargin - 80}px`; // Adjust the 60px offset as needed
}
titleDiv.style.position = "absolute";
if (roundCount >= 5 && doubleButterflyMode == true) {
if (roundIndex == finalRoundIndex - 1) {
- titleDiv.style.marginLeft = "60px";
+ titleDiv.style.marginLeft = "50px";
} else if (roundIndex == finalRoundIndex + 1) {
- titleDiv.style.marginLeft = "-60px";
+ titleDiv.style.marginLeft = "-50px";
}
}
matchesContainer.appendChild(titleDiv);
@@ -372,11 +377,14 @@ function renderBracket(options) {
titleDiv.className = "round-title";
titleDiv.appendChild(nameSpan);
titleDiv.appendChild(formatSpan);
- titleDiv.style.top = `${top - 80}px`; // Adjust the 60px offset as needed
+ titleDiv.style.top = `${top + topMargin - 80}px`; // Adjust the 60px offset as needed
titleDiv.style.position = "absolute";
matchesContainer.appendChild(titleDiv);
}
+ if (roundIndex == 0) {
+ isIncomingLineIsDisabled = true;
+ }
matchDiv.innerHTML = `
${matchTemplate.innerHTML}
diff --git a/tournaments/templates/tournaments/broadcast/broadcasted_bracket.html b/tournaments/templates/tournaments/broadcast/broadcasted_bracket.html
index 755a8dd..43ac9bc 100644
--- a/tournaments/templates/tournaments/broadcast/broadcasted_bracket.html
+++ b/tournaments/templates/tournaments/broadcast/broadcasted_bracket.html
@@ -4,6 +4,7 @@
+
@@ -36,15 +37,58 @@
@@ -65,25 +109,15 @@
-
-