Skip to content

Instantly share code, notes, and snippets.

View fedehartman's full-sized avatar

Fede fedehartman

View GitHub Profile
@fedehartman
fedehartman / Par - Impar
Created August 15, 2013 23:17
Par - Impar
tr:nth-child(even) {background: #CCC }
tr:nth-child(odd) {background: #FFF}
@fedehartman
fedehartman / X:nth-child(n)
Created July 23, 2013 19:48
X:nth-child(n)
li:nth-child(3) {
color: red;
}
@fedehartman
fedehartman / Hide Bar Mobile
Created July 22, 2013 20:35
Normalized hide address bar for iOS & Android
/*
* Normalized hide address bar for iOS & Android
* (c) Scott Jehl, scottjehl.com
* MIT License
*/
(function( win ){
var doc = win.document;
// If there's a hash, or addEventListener is undefined, stop here
if( !location.hash && win.addEventListener ){
@fedehartman
fedehartman / Placeholder
Created July 22, 2013 19:04
Style placeholder
::-webkit-input-placeholder {color: red;}
:-moz-placeholder {color: red;}
::-moz-placeholder {color: red;}
:-ms-input-placeholder {color: red;}
@fedehartman
fedehartman / Cambiar el color del highlight al seleccionar texto
Created July 19, 2013 19:01
Cambiar el color del highlight al seleccionar texto
::-moz-selection {
background-color: #dd2020;
color: #fff;
}
::selection {
background-color: #dd2020;
color: #fff;
}
@fedehartman
fedehartman / Browser Specific Hacks
Created July 2, 2013 18:02
Browser Specific Hacks
/***** Selector Hacks ******/
/* IE6 and below */
* html #uno { color: red }
/* IE7 */
*:first-child+html #dos { color: red }
/* IE7, FF, Saf, Opera */
html>body #tres { color: red }