snipt

Ctrl+h for KB shortcuts

Sass

box sizing - LESS mixin

1
2
3
4
5
.box-sizing(@box-model) {
    -webkit-box-sizing: @box-model;
       -moz-box-sizing: @box-model;
            box-sizing: @box-model;
}
https://snipt.net/embed/5953c77c18587a0003b4c7c60faa8eca/
https://snipt.net/raw/5953c77c18587a0003b4c7c60faa8eca/
5953c77c18587a0003b4c7c60faa8eca
sass
Sass
5
2016-10-01T09:32:41
True
False
False
/api/public/snipt/88240/
box-sizing-less-mixin
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="nc">.box-sizing</span><span class="o">(@</span><span class="nt">box-model</span><span class="o">)</span> <span class="err">{</span> </span><span id="L-2"><a name="L-2"></a> <span class="na">-webkit-box-sizing</span><span class="o">:</span> <span class="o">@</span><span class="n">box-model</span><span class="err">;</span> </span><span id="L-3"><a name="L-3"></a> <span class="na">-moz-box-sizing</span><span class="o">:</span> <span class="o">@</span><span class="n">box-model</span><span class="err">;</span> </span><span id="L-4"><a name="L-4"></a> <span class="na">box-sizing</span><span class="o">:</span> <span class="o">@</span><span class="n">box-model</span><span class="err">;</span> </span><span id="L-5"><a name="L-5"></a><span class="err">}</span> </span></pre></div> </td></tr></table>
less, mixin
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.