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 / transparent-gif.html
Created January 5, 2014 10:33
base64 encoded gif
<img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-img="" alt="" />
@adikahorvath
adikahorvath / clear.css
Created January 5, 2014 11:11
CSS clear types
/* 1 */
.clear {
clear: both;
font: 0/0 a;
height: 0;
visibility: hidden;
}
/* 2 */
.clear:before,
@adikahorvath
adikahorvath / box-sizing.css
Created January 5, 2014 11:34
CSS box-sizing
/* IE8+ */
*, *:before, *:after{
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
@adikahorvath
adikahorvath / selection.css
Created January 5, 2014 11:47
CSS selection
::selection {
background: #000;
color: #fff;
}
::-moz-selection {
background: #000;
color: #fff;
}
@adikahorvath
adikahorvath / prev-next.html
Created January 5, 2014 12:00
Prev-next links
<link rel="prev" href="/same-url-prev" />
<link rel="next" href="/same-url-next" />
<a href="/same-url-prev" title="" rel="prev">Previous</a>
<a href="/same-url-next" title="" rel="next">Next</a>
@adikahorvath
adikahorvath / prefetch.html
Created January 5, 2014 12:29
Prefetching
<!-- prefetch other domains -->
<link rel="dns-prefetch" href="//google-analytics.com" />
<!-- firefox ie10+ prev/next page -->
<link rel="prefetch" href="/next.html" />
<!-- chrome prev/next page -->
<link rel="prerender" href="/next.html" />
<!-- load resources at current page; only chrome -->
@adikahorvath
adikahorvath / placeholder.css
Created January 5, 2014 12:46
CSS pseudo placeholder
::-webkit-input-placeholder { color: black; }
::-moz-placeholder { color: black; }
:-moz-placeholder { color: black; }
:-ms-input-placeholder { color: black; }
:focus::-webkit-input-placeholder { color: transparent; }
:focus::-moz-placeholder { color: transparent; }
:focus:-moz-placeholder { color: transparent; }
:focus:-ms-input-placeholder { color: transparent; }
@adikahorvath
adikahorvath / mobile.css
Created January 5, 2014 12:58
CSS click 300ms delay fix
a {
-ms-touch-action: manipulation;
touch-action: manipulation;
}
@adikahorvath
adikahorvath / input-decorations.css
Last active February 11, 2016 12:46
Remove default input decorations
/* ie10 */
::-ms-clear,
/* iOS */
::-webkit-search-decoration,
::-webkit-search-cancel-button
::-webkit-search-results-button,
::-webkit-search-results-decoration { display: none; }
@adikahorvath
adikahorvath / .htaccess
Created January 5, 2014 20:17
appcache
AddType text/cache-manifest .appcache