content-extension
Introduced in v2.3.1
Available in TYPO3
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="#E8A33D" d="m14.3 3.2-6-1.7-.3-.1-.3.1-6 1.7-.7.2v9.2l.7.2 6 1.7.3.1.3-.1 6-1.7.7-.2V3.4z"/><path fill="#FFC857" d="m8 2.4 5 1.5-5 1.4-5.1-1.4zM2 4.7l5.5 1.5v7.2L2 11.9zM8.5 13.4V6.2L14 4.6v7.3z"/></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="#E8A33D" d="m14.3 3.2-6-1.7-.3-.1-.3.1-6 1.7-.7.2v9.2l.7.2 6 1.7.3.1.3-.1 6-1.7.7-.2V3.4z"/><path fill="#FFC857" d="m8 2.4 5 1.5-5 1.4-5.1-1.4zM2 4.7l5.5 1.5v7.2L2 11.9zM8.5 13.4V6.2L14 4.6v7.3z"/></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-extension" /></svg>
</span>
</span>
TYPO3 ViewHelper
<core:icon identifier="content-extension" 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='%23E8A33D' d='m14.3 3.2-6-1.7-.3-.1-.3.1-6 1.7-.7.2v9.2l.7.2 6 1.7.3.1.3-.1 6-1.7.7-.2V3.4z'/%3e%3cpath fill='%23FFC857' d='m8 2.4 5 1.5-5 1.4-5.1-1.4zM2 4.7l5.5 1.5v7.2L2 11.9zM8.5 13.4V6.2L14 4.6v7.3z'/%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-extension;
}