Skip to content

Instantly share code, notes, and snippets.

View felippenardi's full-sized avatar

Felippe Nardi felippenardi

View GitHub Profile
@mixin same($values...){
$length: length($values);
$value: nth($values, $length);
@for $i from 1 to $length{
#{nth($values, $i)}: $value;
}
}
//Usage:
.button {
box-sizing: border-box;
background-color: #009DFF;
font-family: Lato, 'Helvetica Neue', Helvetica, Helvetica, Arial, sans-serif;
color: #FFF;
display: inline-block;
font-size: .9em;
padding-bottom: 0.5em;
padding-left: 0.8em;
padding-right: 0.8em;
@felippenardi
felippenardi / dabblet.css
Created October 11, 2013 15:29 — forked from anonymous/dabblet.css
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
tr {
border-width: 1px 0px 1px 0px;
border-style: solid;
border-color: #fff;
display: block;
}
tr:hover {
@felippenardi
felippenardi / dabblet.css
Created October 11, 2013 15:29 — forked from anonymous/dabblet.css
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
tr {
border-width: 1px 0px 1px 0px;
border-style: solid;
border-color: #fff;
display: block;
}
tr:hover {
@felippenardi
felippenardi / dabblet.css
Created October 11, 2013 15:29 — forked from anonymous/dabblet.css
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
tr {
border-width: 1px 0px 1px 0px;
border-style: solid;
border-color: #fff;
display: block;
}
tr:hover {
@felippenardi
felippenardi / dabblet.css
Created October 11, 2013 15:01
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
tr {
border-width:1px 1px 1px 5px;
border-style: solid;
border-color:#fff;
}
tr:hover {
border-color: red;
<script>
angular.directive('tj:focus', function(){
return function(scope, element){
element[0].focus();
};
});
</script>
<div>
<input type="text" ng:model="model" tj:focus />