<div class="tournament-standings">
<opta-widget widget="tournament_tree" competition="4" season="2017" template="centralised" show_crests="true" show_third_place="true" show_goals_combined="false" date_format="lll" pre_match="false" show_competition_name="true" competition_naming="full" team_naming="full" show_live="false" show_logo="false" show_title="false" fixture_height="120" sport="football"></opta-widget>
</div>
No notes defined.
/* No context defined. */
.tournament-standings {
position: relative;
// Add fake box shadows -
// adding as psuedo elements with gradients because box-shadow doesn't work for this situation
&::before,
&::after {
content: '';
width: 10px;
height: 100%;
position: absolute;
top: 0;
}
&::before {
left: -10px;
background: linear-gradient(
90deg,
rgba(2, 0, 36, 0) 0%,
rgba(0, 0, 0, 0.06) 100%
);
}
&::after {
right: -10px;
background: linear-gradient(
90deg,
rgba(2, 0, 36, 0.06) 0%,
rgba(0, 0, 0, 0) 100%
);
}
// OPTA WIDGET OVERRIDES
.Opta > .Opta_W,
.Opta > .Opta_W > div {
background: transparent;
}
.Opta-TournamentTree-ConnectLine {
fill: none;
stroke: $color-interface-light;
}
// COLUMN HEADINGS
.Opta_F_TT .Opta-TournamentTree-Scroller-Cell {
@include text-xs;
background-color: transparent;
color: $color-primary;
outline: none;
text-transform: uppercase;
margin-bottom: $spacing-m;
height: auto;
&::after {
border-bottom: 1px solid;
content: '';
display: block;
margin: $spacing-s $spacing-xs;
width: calc(100% - #{$spacing-xs} * 2);
}
}
// FIXTURE BOX
.Opta-TournamentTree-Scorebox {
background-color: white;
}
// date
.Opta-TournamentTree-Container .Opta-TournamentTree-Scorebox-Date {
@include text-xs;
background: transparent;
border-bottom: 1px solid $color-borders;
margin-bottom: $spacing-s;
}
// Individual team
.Opta .Opta_F_TT .Opta-TournamentTree-Scorebox-Team {
@include text-s;
background-color: $grey-light;
border-radius: 4px;
height: 30px;
display: grid;
grid-template-columns: auto 3.4rem;
align-items: center;
padding: 0;
text-align: center;
& + .Opta-TournamentTree-Scorebox-Team {
margin-top: 1px;
}
& .Opta-WinnerTeam {
font-weight: bold;
}
}
// Team name and image
.Opta .Opta-TournamentTree-Container .Opta-Team {
max-width: 100%;
}
.Opta .Opta-TournamentTree-Container .Opta-Image {
padding-left: 0.6rem;
}
// Team score
.Opta .Opta-TournamentTree-Container .Opta-Score {
align-items: center;
background-color: $color-interface-light;
color: $white;
display: flex;
float: none;
height: 100%;
justify-content: center;
width: 100%;
}
.Opta-TournamentTree-Container .Opta-WinnerTeam .Opta-Score {
background-color: $crest-blue;
}
// WINNERS
.Opta-TournamentTree-Container .Opta-TournamentTree-Scorebox-Winner {
@include text-m;
background-color: $crest-blue;
border-radius: 0.4rem 0.4rem 0 0;
color: $white;
line-height: 3rem;
text-transform: uppercase;
}
.Opta-TournamentTree-Container
.Opta-TournamentTree-Scorebox-WinnerImage
.Opta-Image-Team {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
}
// THIRD PLACE
.Opta-TournamentTree-Container .Opta-TournamentTree-ThirdPlace {
@include text-m;
color: $color-primary;
text-transform: uppercase;
}
}
<div class="tournament-standings">
<opta-widget widget="tournament_tree" competition="4" season="2017" template="centralised" show_crests="true"
show_third_place="true" show_goals_combined="false" date_format="lll" pre_match="false" show_competition_name="true"
competition_naming="full" team_naming="full" show_live="false" show_logo="false" show_title="false"
fixture_height="120" sport="football"></opta-widget>
</div>