{/* Team 1 (Winner-status?) (Team name) */}
-
{/* Team 2 (Winner-status?) (Team name) */}
-
diff --git a/src/client/src/components/tournamentBracket.css b/src/client/src/components/tournamentBracket.css
index 1bc3144..82c21f4 100644
--- a/src/client/src/components/tournamentBracket.css
+++ b/src/client/src/components/tournamentBracket.css
@@ -1,70 +1,113 @@
-/* https://codepen.io/semibran/pen/VjmPJd */
-html {
- font-size: 1rem;
+html,body{
+ height:100%;
}
-.bracket {
- display: inline-block;
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translate(-50%, -50%);
- white-space: nowrap;
+.bracket{
+ display: flex;
+ position: relative;
+ flex-direction: row;
+ justify-content: space-between;
+ align-items: center;
+ width: 100%;
+ height: 100%;
+ padding:2%;
}
-.bracket .round {
- display: inline-block;
- vertical-align: middle;
+.winners{
+ margin: 2rem;
}
-.bracket .round .winners>div {
- display: inline-block;
- vertical-align: middle;
-}
-
-.bracket .round .winners>div.matchups .matchup:last-child {
- margin-bottom: 0 !important;
-}
-
-.bracket .round .winners>div.matchups .matchup .participants {
+.participants{
border-radius: 0.25rem;
overflow: hidden;
border: 1px solid gray;
}
-
-.bracket .round .winners>div.matchups .matchup .participants .participant {
+.participants .participant {
box-sizing: border-box;
color: #404040;
- border-left: 0.25rem solid #858585;
background: white;
width: 14rem;
height: 3rem;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.12);
}
-
-.bracket .round .winners>div.matchups .matchup .participants .participant.winner {
- color: green;
- border-color: #60c645;
-}
-
-.bracket .round .winners>div.matchups .matchup .participants .participant.loser {
- color: #dc563f;
- border-color: #dc563f;
-}
-
-.bracket .round .winners>div.matchups .matchup .participants .participant:not(:last-child) {
- border-bottom: thin solid #f0f2f2;
-}
-
-.bracket .round .winners>div.matchups .matchup .participants .participant span {
+.participants .participant span {
margin: 0 1.25rem;
line-height: 3;
font-size: 1rem;
font-family: "Roboto Slab";
overflow: ellipsis;
}
+.participants .participant:not(:last-child) {
+ border-bottom: thin solid #dcdddd;
+}
+.participants .participant.loser {
+ color: #dc563f;
+ border-color: #dc563f;
+}
+.participants .participant.winner {
+ color: white;
+ background-color: #1ab35a;
+}
-.bracket .round .winners>div.connector.filled .line,
+.participants .participant:hover{
+ cursor: pointer;
+ background-color: #1ab35a;
+}
+
+.matchups{
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ width: 100%;
+ height: 100%;
+}
+
+.matchup{
+ margin: 1rem 0;
+}
+
+.winners{
+ display: flex;
+ justify-content: space-between;
+ flex-direction: row;
+ margin: 2rem 0;
+}
+
+.round{
+ height: 100%;
+}
+
+.round.thirtysecondfinals{
+ margin: 0 2rem;
+ height: 100%;
+}
+.round.sixteenthfinals{
+ margin: 0 2rem;
+ height: 100%;
+}
+.round.eighthfinals{
+ margin: 0 2rem;
+ height: 100%;
+}
+.round.quarterfinals{
+ margin: 0 2rem;
+ height: 100%;
+}
+.round.semifinals{
+ margin: 0 2rem;
+ height: 100%;
+}
+.round.finals{
+ margin: 0 2rem;
+}
+
+.connector{
+ display:none;
+ height: 100%;
+}
+
+/* .bracket .round .winners>div.connector.filled .line,
.bracket .round .winners>div.connector.filled.bottom .merger:after,
.bracket .round .winners>div.connector.filled.top .merger:before {
border-color: #60c645;
@@ -80,12 +123,12 @@ html {
.bracket .round .winners>div.connector .line {
border-bottom: thin solid #c0c0c8;
- height: 4rem;
+ height: 25%;
}
.bracket .round .winners>div.connector .merger {
position: relative;
- height: 8rem;
+ height: 50%;
}
.bracket .round .winners>div.connector .merger:before,
@@ -107,36 +150,4 @@ html {
.bracket .round .winners>div.connector .merger:after {
border-right-width: thin;
border-bottom-width: thin;
-}
-
-.bracket .round.quarterfinals .winners:not(:last-child) {
- margin-bottom: 2rem;
-}
-
-.bracket .round.quarterfinals .winners .matchups .matchup:not(:last-child) {
- margin-bottom: 2rem;
-}
-
-.bracket .round.semifinals .winners .matchups .matchup:not(:last-child) {
- margin-bottom: 10rem;
-}
-
-.bracket .round.semifinals .winners .connector .merger {
- height: 16rem;
-}
-
-.bracket .round.semifinals .winners .connector .line {
- height: 8rem;
-}
-
-.bracket .round.finals .winners .connector .merger {
- height: 3rem;
-}
-
-.bracket .round.finals .winners .connector .line {
- height: 1.5rem;
-}
-
-.participant:hover {
- background: lightgreen!important;
-}
\ No newline at end of file
+} */
\ No newline at end of file