module-func
Introduced in v1.0.0
Available in TYPO3
7.6 8.6 9.5 10.4 11.5
Usage
Markup
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><g fill="none" fill-rule="evenodd"><g><g fill="#08596C"><g><path d="M0 0h64v64H0z"/></g></g><path fill="#FFF" d="M38.083 22H48v4H34v-2h-4v2H16v-4h10.002v-3.01c0-.546.45-.99 1.007-.99h10.067c.556 0 1.007.451 1.007.99V22ZM30 28H16v14h32V28H34v4h-4v-4Zm-2-8v2h8v-2h-8Z"/></g></g></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"><g fill="none" fill-rule="evenodd"><g><g fill="#08596C"><g><path d="M0 0h64v64H0z"/></g></g><path fill="#FFF" d="M38.083 22H48v4H34v-2h-4v2H16v-4h10.002v-3.01c0-.546.45-.99 1.007-.99h10.067c.556 0 1.007.451 1.007.99V22ZM30 28H16v14h32V28H34v4h-4v-4Zm-2-8v2h8v-2h-8Z"/></g></g></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-func" /></svg>
</span>
</span>
TYPO3 ViewHelper
<core:icon identifier="module-func" 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%3cg fill='none' fill-rule='evenodd'%3e%3cg%3e%3cg fill='%2308596C'%3e%3cg%3e%3cpath d='M0 0h64v64H0z'/%3e%3c/g%3e%3c/g%3e%3cpath fill='%23FFF' d='M38.083 22H48v4H34v-2h-4v2H16v-4h10.002v-3.01c0-.546.45-.99 1.007-.99h10.067c.556 0 1.007.451 1.007.99V22ZM30 28H16v14h32V28H34v4h-4v-4Zm-2-8v2h8v-2h-8Z'/%3e%3c/g%3e%3c/g%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-func;
}