mimetypes-text-js

Introduced in v1.0.0
Available in TYPO3 7.6 8.6 9.5 10.4 11.5 12.4 13.x

Buttons

Button Label Button Label

Button Label Button Label

Usage

Markup

<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 16 16"><g><path fill="#F0DB4F" d="M2 0v16h12V4l-4-4H2z"/><path fill="#FFF" d="M10 4V0l4 4h-4z" opacity=".65"/><path fill="#212121" d="M14 4v5l-4-5h4z" opacity=".15"/></g><g fill="#212121"><path d="M7 10.5c0 .2 0 .4-.1.6-.1.2-.2.3-.3.5-.2.1-.3.2-.6.3-.3.1-.5.1-.9.1h-.6c-.2 0-.4 0-.5-.1v-1h.1c.1.1.2.1.3.1h.4c.2 0 .4 0 .5-.1s.2-.1.3-.3c0-.1.1-.2.1-.3V8H4.6v-.9H7v3.4zM12 10.4c0 .5-.2.9-.6 1.2-.4.3-.9.4-1.6.4-.4 0-.7 0-1-.1s-.6-.2-.8-.3v-1.2c.3.2.5.4.9.5.3.1.6.2.9.2h.3c.1 0 .2 0 .3-.1.1 0 .2-.1.2-.1.1-.1.1-.1.1-.3 0-.1 0-.2-.1-.3s-.2-.1-.4-.2c-.2 0-.4-.1-.6-.1-.2 0-.4 0-.5-.1-.4-.1-.7-.3-.9-.5-.2-.2-.3-.5-.3-.9s.2-.8.6-1.1c.4-.2.9-.4 1.6-.4.3 0 .6 0 .9.1.3.1.6.1.8.2v1.1h-.1c-.2-.2-.4-.3-.7-.4s-.6-.2-.9-.2h-.3c-.1.1-.2.2-.3.2s-.2.1-.2.1c-.1.1-.1.2-.1.3 0 .1 0 .2.1.3s.3.1.5.2c.2 0 .3.1.5.1s.3.1.5.1c.4.1.6.3.8.5.3.2.4.5.4.8z"/></g></svg>

Inline

<span class="icon icon-size-small icon-state-default">
    <span class="icon-markup">
        <svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 16 16"><g><path fill="#F0DB4F" d="M2 0v16h12V4l-4-4H2z"/><path fill="#FFF" d="M10 4V0l4 4h-4z" opacity=".65"/><path fill="#212121" d="M14 4v5l-4-5h4z" opacity=".15"/></g><g fill="#212121"><path d="M7 10.5c0 .2 0 .4-.1.6-.1.2-.2.3-.3.5-.2.1-.3.2-.6.3-.3.1-.5.1-.9.1h-.6c-.2 0-.4 0-.5-.1v-1h.1c.1.1.2.1.3.1h.4c.2 0 .4 0 .5-.1s.2-.1.3-.3c0-.1.1-.2.1-.3V8H4.6v-.9H7v3.4zM12 10.4c0 .5-.2.9-.6 1.2-.4.3-.9.4-1.6.4-.4 0-.7 0-1-.1s-.6-.2-.8-.3v-1.2c.3.2.5.4.9.5.3.1.6.2.9.2h.3c.1 0 .2 0 .3-.1.1 0 .2-.1.2-.1.1-.1.1-.1.1-.3 0-.1 0-.2-.1-.3s-.2-.1-.4-.2c-.2 0-.4-.1-.6-.1-.2 0-.4 0-.5-.1-.4-.1-.7-.3-.9-.5-.2-.2-.3-.5-.3-.9s.2-.8.6-1.1c.4-.2.9-.4 1.6-.4.3 0 .6 0 .9.1.3.1.6.1.8.2v1.1h-.1c-.2-.2-.4-.3-.7-.4s-.6-.2-.9-.2h-.3c-.1.1-.2.2-.3.2s-.2.1-.2.1c-.1.1-.1.2-.1.3 0 .1 0 .2.1.3s.3.1.5.2c.2 0 .3.1.5.1s.3.1.5.1c.4.1.6.3.8.5.3.2.4.5.4.8z"/></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/mimetypes.svg#mimetypes-text-js" /></svg>
    </span>
</span>

TYPO3 ViewHelper

<core:icon identifier="mimetypes-text-js" 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' xml:space='preserve' viewBox='0 0 16 16'%3e%3cg%3e%3cpath fill='%23F0DB4F' d='M2 0v16h12V4l-4-4H2z'/%3e%3cpath fill='%23FFF' d='M10 4V0l4 4h-4z' opacity='.65'/%3e%3cpath fill='%23212121' d='M14 4v5l-4-5h4z' opacity='.15'/%3e%3c/g%3e%3cg fill='%23212121'%3e%3cpath d='M7 10.5c0 .2 0 .4-.1.6-.1.2-.2.3-.3.5-.2.1-.3.2-.6.3-.3.1-.5.1-.9.1h-.6c-.2 0-.4 0-.5-.1v-1h.1c.1.1.2.1.3.1h.4c.2 0 .4 0 .5-.1s.2-.1.3-.3c0-.1.1-.2.1-.3V8H4.6v-.9H7v3.4zM12 10.4c0 .5-.2.9-.6 1.2-.4.3-.9.4-1.6.4-.4 0-.7 0-1-.1s-.6-.2-.8-.3v-1.2c.3.2.5.4.9.5.3.1.6.2.9.2h.3c.1 0 .2 0 .3-.1.1 0 .2-.1.2-.1.1-.1.1-.1.1-.3 0-.1 0-.2-.1-.3s-.2-.1-.4-.2c-.2 0-.4-.1-.6-.1-.2 0-.4 0-.5-.1-.4-.1-.7-.3-.9-.5-.2-.2-.3-.5-.3-.9s.2-.8.6-1.1c.4-.2.9-.4 1.6-.4.3 0 .6 0 .9.1.3.1.6.1.8.2v1.1h-.1c-.2-.2-.4-.3-.7-.4s-.6-.2-.9-.2h-.3c-.1.1-.2.2-.3.2s-.2.1-.2.1c-.1.1-.1.2-.1.3 0 .1 0 .2.1.3s.3.1.5.2c.2 0 .3.1.5.1s.3.1.5.1c.4.1.6.3.8.5.3.2.4.5.4.8z'/%3e%3c/g%3e%3c/svg%3e");
}

Sass Background Variable

@import "@typo3/icons/dist/icons.scss";
@import "@typo3/icons/dist/scss/icons-variables-mimetypes.scss";

.myclass {
    background-size: 1em 1em;
    background-image: $icon-mimetypes-text-js;
}

Download

Download