Skip to content

Instantly share code, notes, and snippets.

@candidosales
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save candidosales/9456583cc2ab0fc2b6e5 to your computer and use it in GitHub Desktop.
Save candidosales/9456583cc2ab0fc2b6e5 to your computer and use it in GitHub Desktop.
Exemplo
.input{
width:100px;
padding:5px;
margin-left:10px;
}
/*
* Como você esta em outro contexto/página de sua aplicação é interessante que essa modificação ocorra somente naquele lugar, assim
* mantém os atributos padrão para todos os outros inputs;
*/
.contexto .input{
margin-left:0;
}
/*
* Evitar usar class para tags html padrão, melhor usar assim...
*
*/
input{
width:100px;
padding:5px;
margin-left:10px;
}
.contexto input{
margin-left:0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment