Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

CSS

Clear spin controls in Webkit

1
2
3
4
5
6
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button
{
	margin: 0;
	-webkit-appearance: none;
}*/
https://snipt.net/embed/ffbc0702ad1602d4ad9045a6cb009c6a/
https://snipt.net/raw/ffbc0702ad1602d4ad9045a6cb009c6a/
ffbc0702ad1602d4ad9045a6cb009c6a
css
CSS
6
2016-12-08T09:42:41
True
False
False
/api/public/snipt/50821/
-1149
<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> <a href="#L-6">6</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nt">input</span><span class="o">[</span><span class="nt">type</span><span class="o">=</span><span class="nt">number</span><span class="o">]:</span><span class="nd">:-webkit-inner-spin-button</span><span class="o">,</span> </span><span id="L-2"><a name="L-2"></a><span class="nt">input</span><span class="o">[</span><span class="nt">type</span><span class="o">=</span><span class="nt">number</span><span class="o">]:</span><span class="nd">:-webkit-outer-spin-button</span> </span><span id="L-3"><a name="L-3"></a><span class="p">{</span> </span><span id="L-4"><a name="L-4"></a> <span class="nb">margin</span><span class="o">:</span> <span class="m">0</span><span class="p">;</span> </span><span id="L-5"><a name="L-5"></a> <span class="o">-</span><span class="n">webkit</span><span class="o">-</span><span class="n">appearance</span><span class="o">:</span> <span class="nb">none</span><span class="p">;</span> </span><span id="L-6"><a name="L-6"></a><span class="p">}</span><span class="err">​</span><span class="o">*/</span> </span></pre></div> </td></tr></table>
webkit

CSS

Disable tap highlighting on your iOS web app

1
2
3
.fnord {
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}
https://snipt.net/embed/a20f2da00ee6bd5e2e50bd81bb2e2303/
https://snipt.net/raw/a20f2da00ee6bd5e2e50bd81bb2e2303/
a20f2da00ee6bd5e2e50bd81bb2e2303
css
CSS
3
2016-12-08T09:42:48
True
False
False
/api/public/snipt/48683/
disable-tap-highlighting-on-your-ios-web-app
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nc">.fnord</span> <span class="p">{</span> </span><span id="L-2"><a name="L-2"></a> <span class="o">-</span><span class="n">webkit</span><span class="o">-</span><span class="n">tap</span><span class="o">-</span><span class="n">highlight</span><span class="o">-</span><span class="nb">color</span><span class="o">:</span> <span class="n">rgba</span><span class="p">(</span><span class="m">0</span><span class="o">,</span><span class="m">0</span><span class="o">,</span><span class="m">0</span><span class="o">,</span><span class="m">0</span><span class="p">);</span> </span><span id="L-3"><a name="L-3"></a><span class="p">}</span> </span></pre></div> </td></tr></table>
iOS, webkit

CSS

Deshabilitar estilos por defecto en Webkit

-webkit-appearance: none;
https://snipt.net/embed/3b2c4bbf19b95b8bdc0e49b179bab624/
https://snipt.net/raw/3b2c4bbf19b95b8bdc0e49b179bab624/
3b2c4bbf19b95b8bdc0e49b179bab624
css
CSS
1
2016-12-06T20:35:27
True
False
False
Aug 21, 2012 at 09:34 AM
/api/public/snipt/46042/
deshabilitar-estilos-por-defecto-en-webkit
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nt">-webkit-appearance</span><span class="o">:</span> <span class="nt">none</span><span class="o">;</span> </span></pre></div> </td></tr></table>
css, webkit

CSS

better font rendering in safari (less bolded)

1
2
3
html {
    -webkit-font-smoothing: antialiased;
}
https://snipt.net/embed/3a0ec971fb142bb97708c1e6997b7832/
https://snipt.net/raw/3a0ec971fb142bb97708c1e6997b7832/
3a0ec971fb142bb97708c1e6997b7832
css
CSS
3
2016-12-09T08:25:51
True
False
False
/api/public/snipt/39680/
better-font-rendering-in-safari-less-bolded
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nt">html</span> <span class="p">{</span> </span><span id="L-2"><a name="L-2"></a> <span class="o">-</span><span class="n">webkit</span><span class="o">-</span><span class="nb">font</span><span class="o">-</span><span class="n">smoothing</span><span class="o">:</span> <span class="n">antialiased</span><span class="p">;</span> </span><span id="L-3"><a name="L-3"></a><span class="p">}</span> </span></pre></div> </td></tr></table>
css, fonts, webkit

CSS

Antialiase CSS rotates and scales

1
2
3
4
5
6
7
/*
http://twitter.com/#!/azaaza/status/113753616979988480
*/

.foo {
box-shadow: 0 0 1px transparent;
}
https://snipt.net/embed/5d9f444a33da43a715dd97d0a6ff76ff/
https://snipt.net/raw/5d9f444a33da43a715dd97d0a6ff76ff/
5d9f444a33da43a715dd97d0a6ff76ff
css
CSS
7
2016-12-07T18:22:21
True
False
False
/api/public/snipt/29978/
antialiase-css-rotates-and-scales
<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> <a href="#L-6">6</a> <a href="#L-7">7</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c">/*</span> </span><span id="L-2"><a name="L-2"></a><span class="c">http://twitter.com/#!/azaaza/status/113753616979988480</span> </span><span id="L-3"><a name="L-3"></a><span class="c">*/</span> </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a><span class="nc">.foo</span> <span class="p">{</span> </span><span id="L-6"><a name="L-6"></a><span class="n">box</span><span class="o">-</span><span class="n">shadow</span><span class="o">:</span> <span class="m">0</span> <span class="m">0</span> <span class="m">1px</span> <span class="nb">transparent</span><span class="p">;</span> </span><span id="L-7"><a name="L-7"></a><span class="p">}</span> </span></pre></div> </td></tr></table>
css, webkit

Bash

Disable Webkit's start.html homepage

# http://www.macworld.com/article/133484/2008/05/webkithome.html
defaults write org.webkit.nightly.WebKit StartPageDisabled -bool YES
https://snipt.net/embed/1e7c32209cb99b26cc2837941f0b12e4/
https://snipt.net/raw/1e7c32209cb99b26cc2837941f0b12e4/
1e7c32209cb99b26cc2837941f0b12e4
bash
Bash
2
2016-12-06T20:37:06
True
False
False
/api/public/snipt/28006/
disable-webkits-starthtml-homepage
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c1"># http://www.macworld.com/article/133484/2008/05/webkithome.html</span> </span><span id="L-2"><a name="L-2"></a>defaults write org.webkit.nightly.WebKit StartPageDisabled -bool YES </span></pre></div> </td></tr></table>
webkit
Copyrighted, illegal, or inappropriate content? Email [email protected].