_brand-text-box.css 1.12 KB
.brand-text-box {
    $size: 14px;
    $line-height: 1.8;
    $lines-to-show: 3;

    float: left;
    height: 100%;
    width: 275px;
    box-sizing: border-box;
    padding: 34px 0;
    position: relative;

    h4 {
        height: 40px;
        line-height: 40px;
        padding-right: 20px;
        display: -webkit-box;
        font-size: 16px;
        font-weight: bold;
        overflow: hidden;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        color: #1b1b1b;
    }

    p {
        display: -webkit-box;
        height: calc($size*$line-height*$lines-to-show);
        margin: 25px 0;
        padding-right: 20px;
        font-size: $size;
        line-height: 24px;
        overflow: hidden;
        -webkit-line-clamp: $lines-to-show;
        -webkit-box-orient: vertical;
        color: #1b1b1b;
    }

    button {
        width: 140px;
        height: 35px;
        position: absolute;
        bottom: 50px;
        background-color: white;
        outline: none;
        border: 1px solid black;
        font-size: 14px;
        font-weight: bold;
        cursor: pointer;
        color: #1b1b1b;
    }
}