tournament.less 7.23 KB
@import (reference) '~app/web/resources/styles/main.less';

.tournament-guide {
    background: #fff;
    font-size: 14px;
    font-weight: 300;
    color: #333;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    position: relative;

    @media @md-up {
        font-size: 16px;
    }
}

.tab-content.knockout{
    overflow: auto;
}

.tab-content .knockout-wrap{
    width: 1000px;
}

.tournament-guide-tz {
    position: absolute;
    right: 15px;
    top: 10px;
    border-bottom: 1px dashed;
    padding-bottom: 2px;
    font-size: 12px;
}

.tournament-guide-table {
    height: 170px;
}

.tournament-guide-table thead {
    border-top: 1px solid #111;
    border-bottom: 1px solid #111;
}

.tournament-guide-table tbody {
    background: #f4f4f4;
}

.tournament-guide-table td {
    padding: 5px 0;
    text-align: center;
    vertical-align: middle;
}

.tournament-guide-table td:first-child {
    text-align: left;
    padding-left: 10px;
}

.tournament-guide-country {
    width: 170px;
}

.tournament-guide-wdl, .tournament-guide-gd, .tournament-guide-pts {
    width: 26px;
}

.tournament-guide-table-team, .tournament-guide-flag {
    vertical-align: middle;
}

.tournament-guide-flag {
    border-radius: 2px;
    height: 16px;
    margin-right: 2px;
}

.tournament-guide-group {
    @media @ms-up and @md-down {
        width: 50%;
        margin: 0;
        float: left;

        &:nth-child(odd) {
            border-right: 1px solid;
        }
    }
}

.tournament-guide-group-matches {
    border-top: 1px dashed #111;
}

.tournament-guide-group-matchday {
    @media @md-down {
        &:last-child .tournament-guide-match:last-child {
            border-bottom: none;
            margin-bottom: 10px;
        }
    }
}

.tournament-guide-match {
    position: relative;
    padding: 10px 15px;
    font-size: 15px;
    max-width: 300px;
    margin: 0 auto;

    @media @md-down {
        border-bottom: 1px dashed #ddd;
    }

    &:first-child {
        @media @md-up {
            border-bottom: 1px solid #111;
        }
    }
}

.tournament-guide-match:hover .tournament-guide-overlay {
    display: block;
}

.tournament-guide-team {
    margin-right: 50px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tournament-guide-date {
    color: #afafaf;
    margin-bottom: 4px;
    font-size: 13px;
}

.tournament-guide-icon {
    position: absolute;
    right: 14px;
    top: 12px;
    color: #333;
}

.tournament-guide-status {
    position: absolute;
    right: 14px;
    top: 43px;
    background: #eee;
    padding: 0 9px;
    border-radius: 3px;
}

.tournament-guide-table {
    width: 100%;
}

.tournament-guide-logo {
    height: 5em;
    display: block;
    margin: 0 auto;
}

.tournament-guide-header {
    background: linear-gradient(#eee, #fff 50%);
}

.tournament-guide-title-col {
    width: 325px;
    padding-top: 20px;
}

.tournament-guide-title-col, .tournament-guide-menu-col {
    @media @md-down {
        display: block;
        width: 100%;
        padding: 20px 0;
    }
}

.tournament-guide-menu-col {
    @media @md-down {
        border-top: 1px dashed #ddd;
    }
}

.tournament-guide-title-text {
    font-size: 1.2em;
    margin: 10px 15px 0;
    padding-top: 6px;
    display: inline-block;
    border-top: 1px solid #111;
}

.tournament-guide-group-matches {
    width: 100%;
}

.tournament-guide-matchdays {
    padding-bottom: 8px;
    
    @media @md-down{
        display:none;
    }
}

.tournament-guide-menu {
    display: inline-block;
}

.tournament-guide-overlay {
    background: #fff;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    color: inherit;
    line-height: 83px;
    color: #333;
}

/**
 * Knockout
 */

.knockout-matches {
    position: relative;
    margin: 0 11px;
    z-index: 1;
    min-height: 650px;
}

.ko-match {
    border-radius: 5px;
    width: 125px;
    font-size: 14px;
    text-align: center;
    position: absolute;
    background: #f4f4f4;

    .team {
        height: 40px;
        font-weight: bold;
    }
    
    .middle {
        background: #fff;
        line-height: 30px;
        height: 30px;
        margin: 0 10px;
        border-radius: 4px;

        .icons {
            position: absolute;
            top: 49px; right: 14px;
        }

        &.finished-with-pens {
            font-size: 12px;
            text-align: left;
            padding-left: 6px;
        }
    }

    .date {
        height: 30px;
        border-top: 1px solid #ccc;
        line-height: 29px;
        font-size: 13px;
    }

    .overlay-link {
        height: 100%;
        width: 100%;
        line-height: 140px;
        display: none;
        border-radius: inherit;
        background: #222;
        color: #fff;
        position: absolute;
        z-index: 1;
    }

    &:hover {
        .overlay-link {
            display: block;
        }
    }
}

.tournament-guide-third-place {
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
}

.stage-names {
    margin: 25px 11px;
    border-bottom: 1px dashed;
    padding-bottom: 10px;
    
    li {
        float: left;
        width: 125px;
        margin-right: 17px;
    }
    
    li:last-child {
        margin-right: 0;
    }
}

.bracket:after {
    width: 65%;
    height: 135%;
    display: block;
    position: absolute;
    top: 40%;
    left: 100%;
    content: '';
    z-index: -1;
    border: 1px solid;
    border-left: none;
    pointer-events: none;
}

.bracket--right:after {
    border-right: none;
    border-left: 1px solid;
    left: auto;
    right: 100%;
}

.bracket--qf:after {
    height: 250%;
}

.bracket--sf:after {
    height: 10%;
    border-bottom: none;
}

@ko-semifinal-left: 142px;
@ko-quarters-left: 284px;
@ko-finals-left: 426px;
@ko-match-height: 140px;
@ko-match-margin: 20px;
@ko-match-margin2: 20px;

.ko-1 { top: 0; left: 0; }
.ko-2 { top: @ko-match-height + @ko-match-margin; left: 0; }
.ko-3 { top: @ko-match-height*2 + @ko-match-margin + @ko-match-margin2; left: 0; }
.ko-4 { top: @ko-match-height*3 + @ko-match-margin*2 + @ko-match-margin2; left: 0; }
.ko-5 { top: 0; right: 0; }
.ko-6 { top: @ko-match-height + @ko-match-margin; right: 0; }
.ko-7 { top: @ko-match-height*2 + @ko-match-margin + @ko-match-margin2; right: 0; }
.ko-8 { top: @ko-match-height*3 + @ko-match-margin*2 + @ko-match-margin2; right: 0; }
.ko-9 { top: (@ko-match-height + @ko-match-margin) / 2; left: @ko-semifinal-left; }
.ko-10 { top: (@ko-match-height*2 + @ko-match-margin + @ko-match-margin2) + (@ko-match-height + @ko-match-margin) / 2; left: @ko-semifinal-left; }
.ko-11 { top: (@ko-match-height + @ko-match-margin) / 2; right: @ko-semifinal-left; }
.ko-12 { top: (@ko-match-height*2 + @ko-match-margin + @ko-match-margin2) + (@ko-match-height + @ko-match-margin) / 2; right: @ko-semifinal-left; }
.ko-13 { top: (@ko-match-height*4 + @ko-match-margin*2 + @ko-match-margin2) / 2 - @ko-match-height / 2; left: @ko-quarters-left; }
.ko-14 { top: (@ko-match-height*4 + @ko-match-margin*2 + @ko-match-margin2) / 2 - @ko-match-height / 2; right: @ko-quarters-left; }
.ko-15 { top: (@ko-match-height*4 + @ko-match-margin*2 + @ko-match-margin2) / 2 - @ko-match-height / 2; left: @ko-finals-left; }
.ko-16 { top: (@ko-match-height*7 + @ko-match-margin*2 + @ko-match-margin2) / 2 - @ko-match-height / 2; left: @ko-finals-left; }