Skip to content

Total Theme: Quote icon in Blockquote Element

blockquote {
    position: relative;
    --wpex-icon-size: 40px;
    --wpex-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%' fill='currentColor' class='bi bi-quote' viewBox='0 0 16 16'%3E%3Cpath d='M12 12a1 1 0 0 0 1-1V8.558a1 1 0 0 0-1-1h-1.388q0-.527.062-1.054.093-.558.31-.992t.559-.683q.34-.279.868-.279V3q-.868 0-1.52.372a3.3 3.3 0 0 0-1.085.992 4.9 4.9 0 0 0-.62 1.458A7.7 7.7 0 0 0 9 7.558V11a1 1 0 0 0 1 1zm-6 0a1 1 0 0 0 1-1V8.558a1 1 0 0 0-1-1H4.612q0-.527.062-1.054.094-.558.31-.992.217-.434.559-.683.34-.279.868-.279V3q-.868 0-1.52.372a3.3 3.3 0 0 0-1.085.992 4.9 4.9 0 0 0-.62 1.458A7.7 7.7 0 0 0 3 7.558V11a1 1 0 0 0 1 1z'/%3E%3C/svg%3E");
    padding-inline-start:calc(var(--wpex-icon-size) + var(--wpex-space-16));margin: var(--wpex-space-32) 0;
    font-size: var(--wpex-text-lg);
    color: var(--wpex-text-4)
}

blockquote::before {
    display: block;
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    height: var(--wpex-icon-size);
    width: var(--wpex-icon-size);
    background-color: currentColor;
    opacity: .6;
    -webkit-mask-image: var(--wpex-mask-image);
    mask-image: var(--wpex-mask-image);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat
}

:where([dir=rtl]) blockquote::before {
    transform: scaleX(-1)
}

Dieser Beitrag hat 0 Kommentare

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

An den Anfang scrollen