content-image
Introduced in v1.0.0
Available in TYPO3
7.6 8.6 9.5 10.4 11.5
Buttons
Button Label Button Label
Button Label Button Label
Usage
Markup
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#59F" d="M1 2h14v12H1V2z"/><path d="M14 3v10H2V3h12m1-1H1v12h14V2z" opacity=".2"/><path fill="#E9F2FF" d="M11 8.7 7 13h7v-1.4z"/><path fill="#ACF" d="M2 9.8V13h9L5 6.5z"/><circle cx="11" cy="6" r="1" fill="#FFF"/></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 16 16"><path fill="#59F" d="M1 2h14v12H1V2z"/><path d="M14 3v10H2V3h12m1-1H1v12h14V2z" opacity=".2"/><path fill="#E9F2FF" d="M11 8.7 7 13h7v-1.4z"/><path fill="#ACF" d="M2 9.8V13h9L5 6.5z"/><circle cx="11" cy="6" r="1" fill="#FFF"/></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-image" /></svg>
</span>
</span>
TYPO3 ViewHelper
<core:icon identifier="content-image" 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 16 16'%3e%3cpath fill='%2359F' d='M1 2h14v12H1V2z'/%3e%3cpath d='M14 3v10H2V3h12m1-1H1v12h14V2z' opacity='.2'/%3e%3cpath fill='%23E9F2FF' d='M11 8.7 7 13h7v-1.4z'/%3e%3cpath fill='%23ACF' d='M2 9.8V13h9L5 6.5z'/%3e%3ccircle cx='11' cy='6' r='1' fill='%23FFF'/%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-image;
}