module-contentelements

Introduced in v1.6.0
Available in TYPO3 9.5 10.4 11.5 12.4 13.x

Usage

Markup

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" fill="#696DBB" rx="0" ry="0"/><path fill="#FFF" d="M32 32a2 2 0 1 1 4.001.001A2 2 0 0 1 32 32zm0 4-4.286 2-5.143-6L20 36.375V42h18l-6-6zM22 20h26v20h-6v6H16V26h6v-6zm18 8H18v16h22V28zm-16-2h18v12h4V22H24v4z"/></svg>

Inline

<span class="icon icon-size-small icon-state-default">
    <span class="icon-markup">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" fill="#696DBB" rx="0" ry="0"/><path fill="#FFF" d="M32 32a2 2 0 1 1 4.001.001A2 2 0 0 1 32 32zm0 4-4.286 2-5.143-6L20 36.375V42h18l-6-6zM22 20h26v20h-6v6H16V26h6v-6zm18 8H18v16h22V28zm-16-2h18v12h4V22H24v4z"/></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/module.svg#module-contentelements" /></svg>
    </span>
</span>

TYPO3 ViewHelper

<core:icon identifier="module-contentelements" 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' viewBox='0 0 64 64'%3e%3crect width='64' height='64' fill='%23696DBB' rx='0' ry='0'/%3e%3cpath fill='%23FFF' d='M32 32a2 2 0 1 1 4.001.001A2 2 0 0 1 32 32zm0 4-4.286 2-5.143-6L20 36.375V42h18l-6-6zM22 20h26v20h-6v6H16V26h6v-6zm18 8H18v16h22V28zm-16-2h18v12h4V22H24v4z'/%3e%3c/svg%3e");
}

Sass Background Variable

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

.myclass {
    background-size: 1em 1em;
    background-image: $icon-module-contentelements;
}

Download

Download