- Safari
- Chrome
- Firefox
- Opera
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* http://24ways.org/2013/coding-towards-accessibility/ */ | |
.my-cool-link:hover, | |
.my-cool-link:focus, | |
.my-cool-link:active | |
{ | |
background-color: MistyRose; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body ontouchstart=""> | |
... | |
</body> | |
<!-- https://stackoverflow.com/questions/3885018/active-pseudo-class-doesnt-work-in-mobile-safari --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- http://davidwalsh.name/prevent-chrome-from-translating-page --> | |
<meta name="google" value="notranslate"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Turn off certificate checking | |
$ npm config set strict-ssl false | |
Turn it back on | |
$ npm config set strict-ssl true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p> | |
Device width: <span id="device-width"></span> | |
</p> | |
<script> | |
var findDeviceWidth = function() { | |
var width = (window.innerWidth > 0) ? window.innerWidth : screen.width; | |
document.getElementById('device-width').innerHTML = width; | |
}; | |
window.onresize = findDeviceWidth; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#21cfc5 | |
#f9c697 | |
#e31519 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
background-image: linear-gradient(to left, red 50%, blue 0%); | |
background-position: bottom; | |
background-repeat: repeat-x; | |
background-size: 2px 1px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
::-ms-tooltip { | |
display: none; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* apply a natural box layout model to all elements, but allowing components to change */ | |
/* http://www.paulirish.com/2012/box-sizing-border-box-ftw/ */ | |
html { | |
box-sizing: border-box; | |
} | |
*, | |
*:before, | |
*:after | |
{ | |
box-sizing: inherit; |