content-heart

Introduced in v2.5.0
Available in TYPO3 12.4 13.x

Buttons

Button Label Button Label

Button Label Button Label

Usage

Markup

<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 16 16"><path fill="#C83C3C" d="M11.5 2C9 2 8 4 8 4S7 2 4.5 2C2.6 2 1 3.6 1 5.5c0 3.2 5.7 7.6 6.8 8.8.05.05.125.075.2.075s.15-.025.2-.075C9.3 13.1 15 8.7 15 5.5 15 3.6 13.4 2 11.5 2z"/><path fill="#212121" d="M11.5 3C12.855 3 14 4.145 14 5.5c0 2.122-3.615 5.416-5.352 6.999-.242.221-.461.421-.648.595-.189-.177-.407-.375-.648-.595C5.615 10.916 2 7.622 2 5.5 2 4.145 3.145 3 4.5 3a2.976 2.976 0 0 1 2.606 1.447l.876 1.733.908-1.724A2.973 2.973 0 0 1 11.5 3m0-1C9 2 8 4 8 4S7 2 4.5 2C2.6 2 1 3.6 1 5.5c0 3.2 5.7 7.6 6.8 8.8.05.05.125.075.2.075s.15-.025.2-.075C9.3 13.1 15 8.7 15 5.5 15 3.6 13.4 2 11.5 2z" opacity=".2"/></svg>

Inline

<span class="icon icon-size-small icon-state-default">
    <span class="icon-markup">
        <svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 16 16"><path fill="#C83C3C" d="M11.5 2C9 2 8 4 8 4S7 2 4.5 2C2.6 2 1 3.6 1 5.5c0 3.2 5.7 7.6 6.8 8.8.05.05.125.075.2.075s.15-.025.2-.075C9.3 13.1 15 8.7 15 5.5 15 3.6 13.4 2 11.5 2z"/><path fill="#212121" d="M11.5 3C12.855 3 14 4.145 14 5.5c0 2.122-3.615 5.416-5.352 6.999-.242.221-.461.421-.648.595-.189-.177-.407-.375-.648-.595C5.615 10.916 2 7.622 2 5.5 2 4.145 3.145 3 4.5 3a2.976 2.976 0 0 1 2.606 1.447l.876 1.733.908-1.724A2.973 2.973 0 0 1 11.5 3m0-1C9 2 8 4 8 4S7 2 4.5 2C2.6 2 1 3.6 1 5.5c0 3.2 5.7 7.6 6.8 8.8.05.05.125.075.2.075s.15-.025.2-.075C9.3 13.1 15 8.7 15 5.5 15 3.6 13.4 2 11.5 2z" opacity=".2"/></svg>
    </span>
</span>

Sprite

<span class="icon icon-size-small icon-state-default">
    <span class="icon-markup">
        <svg role="img"><use xlink:href="dist/sprites/content.svg#content-heart" /></svg>
    </span>
</span>

TYPO3 ViewHelper

<core:icon identifier="content-heart" size="small" />

CSS Background Image

.myclass {
    background-size: 1em 1em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' viewBox='0 0 16 16'%3e%3cpath fill='%23C83C3C' d='M11.5 2C9 2 8 4 8 4S7 2 4.5 2C2.6 2 1 3.6 1 5.5c0 3.2 5.7 7.6 6.8 8.8.05.05.125.075.2.075s.15-.025.2-.075C9.3 13.1 15 8.7 15 5.5 15 3.6 13.4 2 11.5 2z'/%3e%3cpath fill='%23212121' d='M11.5 3C12.855 3 14 4.145 14 5.5c0 2.122-3.615 5.416-5.352 6.999-.242.221-.461.421-.648.595-.189-.177-.407-.375-.648-.595C5.615 10.916 2 7.622 2 5.5 2 4.145 3.145 3 4.5 3a2.976 2.976 0 0 1 2.606 1.447l.876 1.733.908-1.724A2.973 2.973 0 0 1 11.5 3m0-1C9 2 8 4 8 4S7 2 4.5 2C2.6 2 1 3.6 1 5.5c0 3.2 5.7 7.6 6.8 8.8.05.05.125.075.2.075s.15-.025.2-.075C9.3 13.1 15 8.7 15 5.5 15 3.6 13.4 2 11.5 2z' opacity='.2'/%3e%3c/svg%3e");
}

Sass Background Variable

@import "@typo3/icons/dist/icons.scss";
@import "@typo3/icons/dist/scss/icons-variables-content.scss";

.myclass {
    background-size: 1em 1em;
    background-image: $icon-content-heart;
}

Download

Download