content-magnet

Introduced in v3.1.0

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="#C83C3C" d="m13.303 6.025-4.95 4.95c-.424.424-.99.424-1.414 0L5.525 9.561c-.424-.424-.424-.99 0-1.414l4.95-4.95-2.121-2.122-4.95 4.95a4.011 4.011 0 0 0 0 5.657l1.414 1.414a4.011 4.011 0 0 0 5.657 0l4.95-4.95-2.122-2.121z"/><path fill="#B9B9B9" d="m6.233 3.197 2.121-2.122 2.121 2.122-2.121 2.12zM11.181 8.146l2.122-2.12 2.12 2.12-2.12 2.122z"/><path d="m6.232 3.197.707-.707L9.06 4.611l-.707.708zM11.182 8.147l.707-.707L14.01 9.56l-.707.707z" opacity=".25"/><path fill="#000001" d="m8.354 1.075-4.95 4.95a4.011 4.011 0 0 0 0 5.657l1.414 1.414c.778.778 1.803 1.167 2.828 1.167s2.051-.389 2.828-1.167l4.95-4.95-.707-.707-4.95 4.95c-.563.563-1.317.874-2.121.874s-1.558-.31-2.121-.874l-1.414-1.414a3.003 3.003 0 0 1 0-4.243l4.95-4.95-.707-.707z" opacity=".2"/></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="#C83C3C" d="m13.303 6.025-4.95 4.95c-.424.424-.99.424-1.414 0L5.525 9.561c-.424-.424-.424-.99 0-1.414l4.95-4.95-2.121-2.122-4.95 4.95a4.011 4.011 0 0 0 0 5.657l1.414 1.414a4.011 4.011 0 0 0 5.657 0l4.95-4.95-2.122-2.121z"/><path fill="#B9B9B9" d="m6.233 3.197 2.121-2.122 2.121 2.122-2.121 2.12zM11.181 8.146l2.122-2.12 2.12 2.12-2.12 2.122z"/><path d="m6.232 3.197.707-.707L9.06 4.611l-.707.708zM11.182 8.147l.707-.707L14.01 9.56l-.707.707z" opacity=".25"/><path fill="#000001" d="m8.354 1.075-4.95 4.95a4.011 4.011 0 0 0 0 5.657l1.414 1.414c.778.778 1.803 1.167 2.828 1.167s2.051-.389 2.828-1.167l4.95-4.95-.707-.707-4.95 4.95c-.563.563-1.317.874-2.121.874s-1.558-.31-2.121-.874l-1.414-1.414a3.003 3.003 0 0 1 0-4.243l4.95-4.95-.707-.707z" opacity=".2"/></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-magnet" /></svg>
    </span>
</span>

TYPO3 ViewHelper

<core:icon identifier="content-magnet" 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='%23C83C3C' d='m13.303 6.025-4.95 4.95c-.424.424-.99.424-1.414 0L5.525 9.561c-.424-.424-.424-.99 0-1.414l4.95-4.95-2.121-2.122-4.95 4.95a4.011 4.011 0 0 0 0 5.657l1.414 1.414a4.011 4.011 0 0 0 5.657 0l4.95-4.95-2.122-2.121z'/%3e%3cpath fill='%23B9B9B9' d='m6.233 3.197 2.121-2.122 2.121 2.122-2.121 2.12zM11.181 8.146l2.122-2.12 2.12 2.12-2.12 2.122z'/%3e%3cpath d='m6.232 3.197.707-.707L9.06 4.611l-.707.708zM11.182 8.147l.707-.707L14.01 9.56l-.707.707z' opacity='.25'/%3e%3cpath fill='%23000001' d='m8.354 1.075-4.95 4.95a4.011 4.011 0 0 0 0 5.657l1.414 1.414c.778.778 1.803 1.167 2.828 1.167s2.051-.389 2.828-1.167l4.95-4.95-.707-.707-4.95 4.95c-.563.563-1.317.874-2.121.874s-1.558-.31-2.121-.874l-1.414-1.414a3.003 3.003 0 0 1 0-4.243l4.95-4.95-.707-.707z' opacity='.2'/%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-magnet;
}

Download

Download