I always struggle with hacks for Edge and IE. See also for other tips: http://browserhacks.com/
_selector {...}
I always struggle with hacks for Edge and IE. See also for other tips: http://browserhacks.com/
_selector {...}
npm i -g gulp-cli |
// Paste that in your Browser console | |
let allBodyElements = document.querySelectorAll('body *'), | |
thePropertyName = 'color', | |
theExpectedValue = 'rgb(0, 82, 204)'; | |
allBodyElements.forEach(function(el){ | |
let style = window.getComputedStyle(el); | |
if ( style.getPropertyValue(thePropertyName) == theExpectedValue ) { | |
console.log(el); | |
el.style.boxShadow = '0 0 0 2px red'; |
$ git ls-files | xargs wc -l |
/** | |
* | |
* Same effect in mouseover and mouseout | |
* Different effects in : http://codepen.io/CreativeJuiz/pen/gnIJG | |
* | |
*/ | |
div { | |
width: 90px; height: 90px; | |
margin: 3em; |
li:only-of-type { | |
width: 100%; | |
} | |
/* if 2 <ul> childs */ | |
li:nth-last-child(2):first-child, | |
li:nth-last-child(2):first-child ~ li { | |
width: 50%; | |
} |
// Adds [branch id="" noscript="branch-url"] shortcode in WordPress | |
if ( ! function_exists( 'branch_embedded' ) ) { | |
function branch_embedded( $atts ) { | |
$atts = shortcode_atts( array( 'id' => '', noscript=> '' ), $atts ); | |
$output = '<script type="text/javascript" src="http://embed-script.branch.com/assets/embed/embed.m.js?body=0" data-branch-embedid="' . esc_attr( $atts['id'] ) . '" ></script>'; |
/** | |
* Rating with float right or direction rtl properties | |
*/ | |
h1 { | |
text-align: center; | |
font-family: Helvetica, Arial; | |
font-weight: normal; | |
color: #777; | |
font-size: 1.3em; | |
clear: both; |
/** | |
* Rating with float right or direction rtl properties | |
*/ | |
h1 { | |
text-align: center; | |
font-family: Helvetica, Arial; | |
font-weight: normal; | |
color: #777; | |
font-size: 1.3em; | |
clear: both; |
/** | |
* "Isometric" shadow | |
*/ | |
div { | |
position: relative; | |
width: 250px; | |
height: 200px; | |
background: #7799ff; | |
box-shadow: 10px 10px 0 #3355bb; |