What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

  • This area is dedicated to the support of our xF1 add-ons. For xF2, please use the dedicated area: HERE.

Support Bracket/Tournament List colour problems.

Ok, in fact I looked into the doc of the script and there are parameters to achieve what you did instead of the css.

So I would recommend you to revert the modification and edit the xfa_tourn_tournament_bracket template.

Search for:
Code:
    $('.tournamentBracket').bracket({
        init: bracketData,
        centerConnectors: true,
        skipConsolationRound: {xen:if '{$tournament.third_place}', false, true},
        skipGrandFinalComeback:  {xen:if '{$tournament.mode} == "consolation"', true, false},
        <xen:if is="{$canEditTournament}">
        save: function(){}, /* without save() labels are disabled */
        </xen:if>
        decorator: {edit: edit_fn, render: render_fn}
    });

You would need to add additional parameters to the call, eg.:
Code:
    $('.tournamentBracket').bracket({
        init: bracketData,
        teamWidth: 60,
        scoreWidth: 20,
        matchMargin: 10,
        roundMargin: 50,
        centerConnectors: true,
        skipConsolationRound: {xen:if '{$tournament.third_place}', false, true},
        skipGrandFinalComeback:  {xen:if '{$tournament.mode} == "consolation"', true, false},
        <xen:if is="{$canEditTournament}">
        save: function(){}, /* without save() labels are disabled */
        </xen:if>
        decorator: {edit: edit_fn, render: render_fn}
    });

These are some default parameters given on the script description page, you have to adapt them to your needs.

Clément
 
If you confirm it works might be able to provide that as style properties in a new version.
 
Top