module-template
Introduced in v3.6.0
Usage
Markup
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path fill="#93C" d="M0 0h64v64H0z"/><path fill="#FFF" d="M44 14H20v27a1 1 0 0 0 1 1h7v5a3 3 0 0 0 3 3h2a3 3 0 0 0 3-3v-5h7a1 1 0 0 0 1-1V14z"/><path fill="#93C" d="M22 16h20v20H22zM32 48a2 2 0 1 1 0-4 2 2 0 1 1 0 4z"/><path fill="#FFF" d="M42.001 15.999 22 36.001V16z" opacity=".25"/><path fill="#FFF" d="M26 32V16h-2v18z"/><path fill="#FFF" d="M30 28.001V16h-2v14.001z" opacity=".75"/><path fill="#FFF" d="M34 24v-8h-2v10z" opacity=".5"/><path fill="#FFF" d="M38 20v-4h-2v6z" opacity=".25"/><path fill="#FFF" d="M42 16h-2v2z" opacity=".15"/></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"><path fill="#93C" d="M0 0h64v64H0z"/><path fill="#FFF" d="M44 14H20v27a1 1 0 0 0 1 1h7v5a3 3 0 0 0 3 3h2a3 3 0 0 0 3-3v-5h7a1 1 0 0 0 1-1V14z"/><path fill="#93C" d="M22 16h20v20H22zM32 48a2 2 0 1 1 0-4 2 2 0 1 1 0 4z"/><path fill="#FFF" d="M42.001 15.999 22 36.001V16z" opacity=".25"/><path fill="#FFF" d="M26 32V16h-2v18z"/><path fill="#FFF" d="M30 28.001V16h-2v14.001z" opacity=".75"/><path fill="#FFF" d="M34 24v-8h-2v10z" opacity=".5"/><path fill="#FFF" d="M38 20v-4h-2v6z" opacity=".25"/><path fill="#FFF" d="M42 16h-2v2z" opacity=".15"/></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-template" /></svg>
</span>
</span>
TYPO3 ViewHelper
<core:icon identifier="module-template" 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%3cpath fill='%2393C' d='M0 0h64v64H0z'/%3e%3cpath fill='%23FFF' d='M44 14H20v27a1 1 0 0 0 1 1h7v5a3 3 0 0 0 3 3h2a3 3 0 0 0 3-3v-5h7a1 1 0 0 0 1-1V14z'/%3e%3cpath fill='%2393C' d='M22 16h20v20H22zM32 48a2 2 0 1 1 0-4 2 2 0 1 1 0 4z'/%3e%3cpath fill='%23FFF' d='M42.001 15.999 22 36.001V16z' opacity='.25'/%3e%3cpath fill='%23FFF' d='M26 32V16h-2v18z'/%3e%3cpath fill='%23FFF' d='M30 28.001V16h-2v14.001z' opacity='.75'/%3e%3cpath fill='%23FFF' d='M34 24v-8h-2v10z' opacity='.5'/%3e%3cpath fill='%23FFF' d='M38 20v-4h-2v6z' opacity='.25'/%3e%3cpath fill='%23FFF' d='M42 16h-2v2z' opacity='.15'/%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-template;
}
Alias
- module-templates