Skip to content

Micro addition of size mixin to quickly set width and/or height #131

Merged
merged 4 commits into from Dec 21, 2012

2 participants

@colourgarden

No description provided.

@plapier plapier merged commit 467a3c5 into thoughtbot:master Dec 21, 2012
@plapier
plapier commented Dec 21, 2012

Thanks @colourgarden. I merged in the mixins and refactored them. I added a bit more functionality to the size mixin and removed duplication in the triangle mixin.

I renamed the up-left, up-right, down-left, down-right values to have hyphens. I believe this aligns better with current CSS syntax.

triangle mixin
size mixin

Examples:

@include triangle( 20px, orange, down ); 
@include triangle( 20px, orange, up-left ); 

@include size( 300 );
@include size( 300px );
@include size( 300px 200px );
@include size( 300px auto );

Let me know if you have any questions or thoughts.

Happy Holidays

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.