Skip to content

Instantly share code, notes, and snippets.

@rolka
rolka / gist:5858870
Created June 25, 2013 14:26
WP: ignore php warnings
error_reporting(0);
@ini_set('display_errors', 0);
@rolka
rolka / gist:5736287
Created June 8, 2013 19:19
CSS: Normalize
<link rel="stylesheet" href="http://necolas.github.io/normalize.css/2.1.2/normalize.css">
@rolka
rolka / gist:5636311
Created May 23, 2013 14:07
CSS: box sizing
* {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
@rolka
rolka / gist:5584477
Created May 15, 2013 14:40
jQUERY: resize
$(window).resize(function() {
//update stuff
});
@rolka
rolka / gist:5542013
Created May 8, 2013 17:21
jQuery: CSS hover
jQuery(function($) {
$('.ai-header-primary-navigation-wrapper .container .row .span12 .pull-right .inline li:last-child').hover(function() {
$(this).css('background', '#eef1f3')
},function() {
$(this).css('color', '#fff')
}
);
});
@rolka
rolka / gist:5523487
Created May 6, 2013 05:15
CSS: target email link only
a[href^="mailto"]
@rolka
rolka / gist:5521892
Created May 5, 2013 19:26
CSS: selection
::selection{
background: tomato;
}
::-moz-selection{
background: tomato;
}
@rolka
rolka / gist:5506521
Created May 3, 2013 00:50
JS: script to add for WP
jQuery(function($) {
@rolka
rolka / gist:5464498
Created April 26, 2013 01:14
CSS3 Transitions
-webkit-transition: color .3s ease-in-out;
-moz-transition: color .3s ease-in-out;
-o-transition: color .3s ease-in-out;
transition: color .3s ease-in-out;
@rolka
rolka / gist:5464458
Created April 26, 2013 01:03
CSS3 columns
-moz-column-count:3; /* Firefox */
-webkit-column-count:3; /* Safari and Chrome */
column-count:3;
-moz-column-gap:40px; /* Firefox */
-webkit-column-gap:40px; /* Safari and Chrome */
column-gap:40px;
-moz-column-rule:4px outset #ff00ff; /* Firefox */
-webkit-column-rule:4px outset #ff00ff; /* Safari and Chrome */