snipt

Ctrl+h for KB shortcuts

Text only

CSS: Flickering on animation on iOS

1
2
3
4
5
6
7
Could be fixed by:

Tips 1 - Adding -webkit-backspace-visibility: hidden to the animated element and/or its parent(s) and/or its child(ren)

Tips 2 - Adding translateZ(0) everywhere like a maniac

Tips 3 - Could be because of -webkit-scrolling-overflow ! Remove it and yey. Can't remove it ? Then remove a overflow: hidden on its parent and you should be fine.
https://snipt.net/embed/0798edb481751d69478f7c2e8bd40b5a/
/raw/0798edb481751d69478f7c2e8bd40b5a/
0798edb481751d69478f7c2e8bd40b5a
text
Text only
7
2019-08-20T06:02:22
True
False
False
Apr 01, 2015 at 04:04 PM
/api/public/snipt/138822/
css-flickering-on-animation-on-ios-75944e62
<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>Could be fixed by: </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>Tips 1 - Adding -webkit-backspace-visibility: hidden to the animated element and/or its parent(s) and/or its child(ren) </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a>Tips 2 - Adding translateZ(0) everywhere like a maniac </span><span id="L-6"><a name="L-6"></a> </span><span id="L-7"><a name="L-7"></a>Tips 3 - Could be because of -webkit-scrolling-overflow ! Remove it and yey. Can&#39;t remove it ? Then remove a overflow: hidden on its parent and you should be fine. </span></pre></div> </td></tr></table>
animation, blink, crap, css, flicker

Text only

Mobile: -webkit-transform translate make elements disappear on iOS5

1
2
3
Nope, actually it's the -webkit-overflow-scrolling: touch properties (wherever it is) which makes those "css translated elements" disappear.

Hope it helps someone.
https://snipt.net/embed/873afdb2a59dadeeabdea14b8e59f5bb/
/raw/873afdb2a59dadeeabdea14b8e59f5bb/
873afdb2a59dadeeabdea14b8e59f5bb
text
Text only
3
2019-04-07T21:46:34
True
False
True
Feb 12, 2014 at 11:35 AM
/api/public/snipt/113075/
mobile-webkit-transform-translate-make-elements-disappear-on-ios5
<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>Nope, actually it&#39;s the -webkit-overflow-scrolling: touch properties (wherever it is) which makes those &quot;css translated elements&quot; disappear. </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>Hope it helps someone. </span></pre></div> </td></tr></table>
css, disappear, invisible, ios, transform, translate, translate3d

Text only

CSS Triangle Firefox issue

Firefox can sometimes generate a weird gradient on CSS triangles.
Replace the border-style inset by outset and you're good to go
https://snipt.net/embed/81b2b4b6a8d4440f42cd7768098b1dfe/
/raw/81b2b4b6a8d4440f42cd7768098b1dfe/
81b2b4b6a8d4440f42cd7768098b1dfe
text
Text only
2
2016-12-11T07:50:01
True
False
True
Dec 07, 2013 at 07:19 AM
/api/public/snipt/99096/
css-triangle-firefox-issue
<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>Firefox can sometimes generate a weird gradient on CSS triangles. </span><span id="L-2"><a name="L-2"></a>Replace the border-style inset by outset and you&#39;re good to go </span></pre></div> </td></tr></table>
border, css, triangle

Text only

Magento: Edit TinyMCE CSS

1
2
3
4
Edit this file:
MY_PROJECT\js\mage\adminhtml\wysiwyg\tiny_mce\themes\advanced\skins\default\content.css

Or try to make it the right way: http://magebase.com/magento-tutorials/adding-custom-css-and-custom-style-options-to-the-wysiwyg-editor/ (didn't try...)
https://snipt.net/embed/508ad356e9125c9fb8df5e19d3fa78b1/
/raw/508ad356e9125c9fb8df5e19d3fa78b1/
508ad356e9125c9fb8df5e19d3fa78b1
text
Text only
4
2019-06-20T02:45:01
True
False
True
Apr 29, 2013 at 06:20 AM
/api/public/snipt/60247/
magento-edit-tinymce-css
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>Edit this file: </span><span id="L-2"><a name="L-2"></a>MY_PROJECT\js\mage\adminhtml\wysiwyg\tiny_mce\themes\advanced\skins\default\content.css </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a>Or try to make it the right way: http://magebase.com/magento-tutorials/adding-custom-css-and-custom-style-options-to-the-wysiwyg-editor/ (didn&#39;t try...) </span></pre></div> </td></tr></table>
css, magento, tinymce, wysiwyg

PHP

Drupal 7: Add CSS class to Panel from context (as "token" or "keyword replacement")

1
2
3
4
5
6
<?php

// Until the module is updated with this feature (shouldn't take long) you can edit line 295 in panel_context.inc file

//$panel_body_css['body_classes_to_add'] = $handler->conf['body_classes_to_add'];
$panel_body_css['body_classes_to_add'] = ctools_context_keyword_substitute($handler->conf['body_classes_to_add'], array(), $contexts);
https://snipt.net/embed/9538dcaee28ed8a084fb80d80ba0a0a6/
/raw/9538dcaee28ed8a084fb80d80ba0a0a6/
9538dcaee28ed8a084fb80d80ba0a0a6
php
PHP
6
2017-01-01T05:06:05
True
False
True
Jan 29, 2013 at 06:41 AM
/api/public/snipt/54706/
drupal-7-add-css-class-to-panel-from-context-as-token-or-keyword-replacement
<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="cp">&lt;?php</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="c1">// Until the module is updated with this feature (shouldn&#39;t take long) you can edit line 295 in panel_context.inc file</span> </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a><span class="c1">//$panel_body_css[&#39;body_classes_to_add&#39;] = $handler-&gt;conf[&#39;body_classes_to_add&#39;];</span> </span><span id="L-6"><a name="L-6"></a><span class="nv">$panel_body_css</span><span class="p">[</span><span class="s1">&#39;body_classes_to_add&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="nx">ctools_context_keyword_substitute</span><span class="p">(</span><span class="nv">$handler</span><span class="o">-&gt;</span><span class="na">conf</span><span class="p">[</span><span class="s1">&#39;body_classes_to_add&#39;</span><span class="p">],</span> <span class="k">array</span><span class="p">(),</span> <span class="nv">$contexts</span><span class="p">);</span> </span></pre></div> </td></tr></table>
"drupal 7", "keyword replacement", class, css, panel, token

CSS

Symfony 1.x : Style auto on sfWidgetFormDate rendering

1
2
3
4
5
select[name$="[day]"],
select[name$="[month]"],
select[name$="[year]"] {
    width: 70px;
}
https://snipt.net/embed/adc6c153366a65612fb199a73d545a95/
/raw/adc6c153366a65612fb199a73d545a95/
adc6c153366a65612fb199a73d545a95
css
CSS
5
2016-12-29T19:11:45
True
False
True
Sep 16, 2012 at 09:49 AM
/api/public/snipt/47249/
symfony-1x-style-auto-on-sfwidgetformdate-rendering
<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></span><span id="L-1"><a name="L-1"></a><span class="nt">select</span><span class="o">[</span><span class="nt">name</span><span class="o">$=</span><span class="s2">&quot;[day]&quot;</span><span class="o">],</span> </span><span id="L-2"><a name="L-2"></a><span class="nt">select</span><span class="o">[</span><span class="nt">name</span><span class="o">$=</span><span class="s2">&quot;[month]&quot;</span><span class="o">],</span> </span><span id="L-3"><a name="L-3"></a><span class="nt">select</span><span class="o">[</span><span class="nt">name</span><span class="o">$=</span><span class="s2">&quot;[year]&quot;</span><span class="o">]</span> <span class="p">{</span> </span><span id="L-4"><a name="L-4"></a> <span class="nb">width</span><span class="o">:</span> <span class="m">70px</span><span class="p">;</span> </span><span id="L-5"><a name="L-5"></a><span class="p">}</span> </span></pre></div> </td></tr></table>
Symfony, css, date