Sorting out the targets from the sources.
This commit is contained in:
parent
23e1155ad6
commit
55d9176b44
@ -1,7 +1,11 @@
|
|||||||
@import "shared";
|
@import "shared";
|
||||||
|
|
||||||
// Add and utilize CSS regions for Webkit + IE. Experimental implementation. Limit to those two vendor prefixes until more stable.
|
// Webkit, IE10 and future support for [CSS Regions](http://dev.w3.org/csswg/css3-regions/)
|
||||||
// See http://css-tricks.com/content-folding/ and http://dev.w3.org/csswg/css3-regions/ for more info on use
|
//
|
||||||
|
// $target is a value you use to link two regions of your css. Give the source of your content the flow-into property, and give your target container the flow-from property.
|
||||||
|
//
|
||||||
|
// For a visual explanation, see the diagrams at Chris Coyier's
|
||||||
|
// [CSS-Tricks](http://css-tricks.com/content-folding/)
|
||||||
|
|
||||||
@mixin flow-into($target) {
|
@mixin flow-into($target) {
|
||||||
@include experimental(flow-into, $target,
|
@include experimental(flow-into, $target,
|
||||||
@ -10,7 +14,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@mixin flow-from($target) {
|
@mixin flow-from($target) {
|
||||||
@include experimental(flow-from, $target,
|
@include experimental(flow-from, $source,
|
||||||
not -moz, -webkit, not -o, -ms, not -khtml, not official
|
not -moz, -webkit, not -o, -ms, not -khtml, not official
|
||||||
);
|
);
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
@import "compass/css3/regions";
|
@import "compass/css3/regions";
|
||||||
|
|
||||||
.source { @include flow-into(target); }
|
.source { @include flow-into(target); }
|
||||||
.target { @include flow-from(source); }
|
.target { @include flow-from(target); }
|
Loading…
Reference in New Issue
Block a user