Верстка цитаты — Suzy

DemoHTMLCSS
Being deeply loved by someone gives you strength, while loving someone deeply gives you courage.
Lao Tzu
<section class="t-bq-section" id="suzy">
    <div class="t-bq-wrapper t-bq-wrapper-boxed">
        <div class="t-bq-quote t-bq-quote-padded t-bq-quote-suzy">
            <div class="t-bq-quote-suzy-base">
                <blockquote class="t-bq-quote-suzy-text">
                    Being deeply loved by someone gives you strength, while loving someone deeply gives you courage.
                </blockquote>
                <div class="t-bq-quote-suzy-author"><cite>Lao Tzu</cite></div>
            </div>
        </div>
    </div>
</section>
.t-bq-wrapper.t-bq-wrapper-boxed {
    max-width: 576px;
    margin: 0 auto;
}

section#suzy {
    background: url("/des/code/img-blockquotes/binding_dark.png") repeat;
    padding-top: 100px;
    padding-bottom: 60px;
    color: #fafafa;
    font-family: "Open Sans", sans-serif;
}

.t-bq-quote-suzy {
    position: relative;
}

.t-bq-quote-suzy .t-bq-quote-suzy-base .t-bq-quote-suzy-text:before {
    content: "\201C";
    font-family: Impact, "Trebuchet MS", sans-serif;
    font-size: 36rem;
    top: calc(100% - 4rem);
    left: -4rem;
    position: absolute;
    opacity: 0.1;
}

.t-bq-quote-suzy .t-bq-quote-suzy-base .t-bq-quote-suzy-text {
    text-align: center;
    font-size: 2rem;
    font-weight: lighter;
    line-height: 1.68em;
}

.t-bq-quote-suzy .t-bq-quote-suzy-base .t-bq-quote-suzy-author  {
    margin-top: 10px;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 11pt;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.t-bq-quote-suzy .t-bq-quote-suzy-base .t-bq-quote-suzy-author cite {
    font-style: normal;
}

.t-bq-quote-suzy .t-bq-quote-suzy-base .t-bq-quote-suzy-author cite:before {
    content: "\2014\2003";
}

.t-bq-quote-suzy .t-bq-quote-suzy-base .t-bq-quote-suzy-author cite:after {
    content: "\2003\2014";
}

.t-bq-quote-suzy .t-bq-quote-suzy-base .t-bq-quote-suzy-author cite:before,
.t-bq-quote-suzy .t-bq-quote-suzy-base .t-bq-quote-suzy-author cite:after {
    font-size: 16pt;
}

@media screen and (max-width: 640px) {
    section#suzy {
        padding: 60px 20px;
    }

    .t-bq-quote-suzy .t-bq-quote-suzy-base .t-bq-quote-suzy-text {
        text-align: center;
        font-size: 18pt;
        font-weight: lighter;
        line-height: 27pt;
    }
    
    .t-bq-quote-suzy .t-bq-quote-suzy-base .t-bq-quote-suzy-text::before {
        top: calc(100% - -1rem);
        left: 2rem;
    }
}

Другие проекты