Useful for colour values, the 'AA' in #RRGGBBAA
hexa = Math.round(i*255).toString(16)
for (i=0; i<=1; i+=0.05) {
console.log(i, Math.round(i*255).toString(16))
}
<meta name="format-detection" content="telephone=no"> |
selector, | |
selector:hover, | |
selector:active, | |
selector:focus{ | |
-webkit-tap-highlight-color: rgba(0,0,0,0); | |
} |
(document.documentElement || document.body.parentNode || document.body).scrollTop; |
Object.getPrototypeOf(console).log.call(console, val1, val2, …) |
module.exports = someViewFramework.extend({ | |
element : ".js-thatElement", | |
events : { | |
"click" : "doStuff", | |
"keypress" : "doStuffKeyboard" | |
}, | |
doStuff : function() { | |
// foo |
So, about this short conversation about containing thing, some examples where I think this is not such an obvious move as it sounds.
import React from 'react';
export class Icon extends React.Component {
/* ... */
getDefaultProps() {
return {
.Icon{ | |
display: inline-block; | |
vertical-align: middle; | |
color: inherit; | |
} | |
.Icon--defaultSize{ | |
width: 1rem; | |
} | |
.Icon-subcontainer{ |