Skip to content

Instantly share code, notes, and snippets.

View adikahorvath's full-sized avatar
🏠
Working from home

Adam Horvath adikahorvath

🏠
Working from home
View GitHub Profile
@adikahorvath
adikahorvath / disable-google-translate.html
Created April 29, 2016 08:54
disable google translate meta tag
<meta name="google" content="notranslate" />
@adikahorvath
adikahorvath / meta.html
Created February 22, 2016 19:50
colorize chrome header in android lollipop
<meta name="theme-color" content="#ff6600" />
@adikahorvath
adikahorvath / title.html
Last active February 22, 2016 19:53
pseudo css title
<div data-title="Title"></div>
@adikahorvath
adikahorvath / input-decorations.css
Created October 21, 2015 13:57
remove input type="date" arrows
input[type=date]::-webkit-inner-spin-button,
input[type=date]::-webkit-outer-spin-button {
-webkit-appearance: none;
}
@adikahorvath
adikahorvath / kerning.css
Created October 11, 2015 08:46
text rendering
.kerning {
text-rendering: optimizeLegibility;
}
@adikahorvath
adikahorvath / newsletter.html
Created June 17, 2015 08:07
Newsletter conditional comments
<!--[if mso]>
<p>Only Microsoft Word based versions of Outlook would see this.</p>
<![endif]-->
<!--[if (IE)]>
<p>Only IE based versions of Outlook would see this.</p>
<![endif]-->
<!--[if mso 12]>
<p>Only Outlook 2007 would see this.</p>
@adikahorvath
adikahorvath / safari-responsive-image.css
Created May 14, 2015 08:50
Safari 5 responsive image bug
img {
display: block;
height: auto;
max-width: 100%;
}
/* safari 5 bug */
@media screen and (-webkit-min-device-pixel-ratio:0) {
img {
max-width: 100%;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@adikahorvath
adikahorvath / mailto.html
Created April 9, 2015 11:48
detailed mailto link
<a href="mailto:[email protected][email protected], [email protected], [email protected]&[email protected]&subject=Big%20News&body=Body-goes-here">Email</a>
@adikahorvath
adikahorvath / disable-scrolling.js
Last active August 29, 2015 14:18
disable/enable scrolling on mobile devices
// disable
document.ontouchmove = function(e){ e.preventDefault(); }
$('body').bind('touchmove scroll mousewheel', function(e){
e.preventDefault();
});
// enable
document.ontouchmove = function(e){ return true; }