content-target
Introduced in v1.6.0
Available in TYPO3
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"><circle cx="8" cy="8" r="7" fill="#C83C3C"/><circle cx="8" cy="8" r="5" fill="#FFF"/><circle cx="8" cy="8" r="3" fill="#C83C3C"/><circle cx="8" cy="8" 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"><circle cx="8" cy="8" r="7" fill="#C83C3C"/><circle cx="8" cy="8" r="5" fill="#FFF"/><circle cx="8" cy="8" r="3" fill="#C83C3C"/><circle cx="8" cy="8" 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-target" /></svg>
</span>
</span>
TYPO3 ViewHelper
<core:icon identifier="content-target" 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%3ccircle cx='8' cy='8' r='7' fill='%23C83C3C'/%3e%3ccircle cx='8' cy='8' r='5' fill='%23FFF'/%3e%3ccircle cx='8' cy='8' r='3' fill='%23C83C3C'/%3e%3ccircle cx='8' cy='8' 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-target;
}