actions-aspect-ratio

Buttons

Button Label Button Label

Button Label Button Label

Usage

Markup

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g fill="currentColor"><path d="M13 4c.551 0 1 .449 1 1v6c0 .551-.449 1-1 1H3c-.551 0-1-.449-1-1V5c0-.551.449-1 1-1h10m0-1H3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2Z"/><path d="M6 5H3.5a.5.5 0 0 0-.5.5V8h1V6h2V5ZM12 8v2h-2v1h2.5a.5.5 0 0 0 .5-.5V8h-1Z"/></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 16 16"><g fill="currentColor"><path d="M13 4c.551 0 1 .449 1 1v6c0 .551-.449 1-1 1H3c-.551 0-1-.449-1-1V5c0-.551.449-1 1-1h10m0-1H3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2Z"/><path d="M6 5H3.5a.5.5 0 0 0-.5.5V8h1V6h2V5ZM12 8v2h-2v1h2.5a.5.5 0 0 0 .5-.5V8h-1Z"/></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/actions.svg#actions-aspect-ratio" /></svg>
    </span>
</span>

TYPO3 ViewHelper

<core:icon identifier="actions-aspect-ratio" 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%3cg fill='%23fff'%3e%3cpath d='M13 4c.551 0 1 .449 1 1v6c0 .551-.449 1-1 1H3c-.551 0-1-.449-1-1V5c0-.551.449-1 1-1h10m0-1H3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2Z'/%3e%3cpath d='M6 5H3.5a.5.5 0 0 0-.5.5V8h1V6h2V5ZM12 8v2h-2v1h2.5a.5.5 0 0 0 .5-.5V8h-1Z'/%3e%3c/g%3e%3c/svg%3e");
}

Sass Background Variable

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

.myclass {
    background-size: 1em 1em;
    background-image: $icon-actions-aspect-ratio;
}

Download

Download