_editorial.css 1.37 KB
.editorial-container {
    $bigImgWidth: 390px;
    $smallImgWidth: 358px;
    $smallImgHeight: 243px;
    $space: 10px;

    @extend .resource-container;

    .news-container {
        height: calc($smallImgHeight*2+$space+2px);
    }

    .news {
        display: inline-block;
        box-sizing: border-box;

        .box {
            display: inline-block;
            position: relative;

            &.bottom-space {
                margin-bottom: 14px;
            }

            &.right-space {
                margin-right: 15px;
            }
        }

        .editorial-title {
            width: 100%;
            min-height: 50px;
            padding: $space;
            position: absolute;
            bottom: 2px;
            background-color: rgba(0, 0, 0, 0.5);
            color: #fff;
            font-size: 14px;
        }

        img {
            @extend .cursor-pointer;
            display: inline-block;
        }

        &.left {
            width: $bigImgWidth;
            float: left;

            img {
                width: $bigImgWidth;
                height: calc($smallImgHeight*2+$space+4px);
            }
        }

        &.right {
            width: calc($smallImgWidth*2+$space*2);
            float: right;

            img,
            .box {
                width: $smallImgWidth;
                height: $smallImgHeight;
            }
        }
    }
}