Skip to content

Commit

Permalink
New Patterns:
Browse files Browse the repository at this point in the history
	- absolute
	- relative
	- float-children
  • Loading branch information
anthonyshort committed Sep 1, 2011
1 parent 7f30753 commit 3efea65
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
3 changes: 2 additions & 1 deletion stylesheets/stitch/patterns/_layout.scss
Expand Up @@ -6,4 +6,5 @@
@import 'layout/simple-gradient';
@import 'layout/pseudo-elements';
@import 'layout/absolute';
@import 'layout/relative';
@import 'layout/relative';
@import 'layout/float-children';
6 changes: 3 additions & 3 deletions stylesheets/stitch/patterns/layout/_absolute.scss
@@ -1,7 +1,7 @@
@mixin absolute($top:false,$right:false,$bottom:false,$left:false) {
position:absolute;
@if $top { top:$top; }
@if $left { top:$left; }
@if $bottom { top:$bottom; }
@if $right { top:$right; }
@if $left { left:$left; }
@if $bottom { bottom:$bottom; }
@if $right { right:$right; }
}
11 changes: 11 additions & 0 deletions stylesheets/stitch/patterns/layout/_float-children.scss
@@ -0,0 +1,11 @@
@mixin float-children($children:false,$direction:left) {
@include clear-floats;

@if $children === false {
$children: '*';
}

& > #{$children} {
float:$direction;
}
}
8 changes: 4 additions & 4 deletions stylesheets/stitch/patterns/layout/_relative.scss
@@ -1,7 +1,7 @@
@mixin absolute($top:false,$right:false,$bottom:false,$left:false) {
@mixin relative($top:false,$right:false,$bottom:false,$left:false) {
position:relative;
@if $top { top:$top; }
@if $left { top:$left; }
@if $bottom { top:$bottom; }
@if $right { top:$right; }
@if $left { left:$left; }
@if $bottom { bottom:$bottom; }
@if $right { right:$right; }
}

0 comments on commit 3efea65

Please sign in to comment.