Merge remote-tracking branch 'crowchick/stable' into stable

This commit is contained in:
Chris Eppstein 2012-05-01 09:15:22 -07:00
commit 7cd7d90fd1
8 changed files with 77 additions and 0 deletions

View File

@ -0,0 +1,8 @@
---
title: CSS Regions
description: css3 mixin for css regions
framework: compass
stylesheet: compass/css3/_regions.scss
example: true
---
= render "partials/example"

View File

@ -0,0 +1,7 @@
.source
%p
This is the source material
.new-container
%p
This is the target location

View File

@ -0,0 +1,13 @@
@import compass/css3
.source
+flow-into(target)
border: 10px solid green
margin: 20px
width: 200px
.new-container
+flow-from(target)
border: 10px solid red
margin: 20px
width: 200px

View File

@ -0,0 +1,15 @@
---
title: Compass CSS Regions
crumb: CSS Regions
framework: compass
stylesheet: compass/css3/_regions.scss
meta_description: Specify CSS Regions for supported browsers.
layout: core
classnames:
- reference
- core
- css3
---
- render 'reference' do
%p
Provides two mixins for CSS regions, properties which allow you to flow content into new containers. See <a href="http://dev.w3.org/csswg/css3-regions/">the spec draft</a> and <a href="http://labs.adobe.com/technologies/cssregions/">Adobe's page on the topic</a>.

View File

@ -14,3 +14,4 @@
@import "css3/transform";
@import "css3/transition";
@import "css3/appearance";
@import "css3/regions";

View File

@ -0,0 +1,22 @@
@import "shared";
// Webkit, IE10 and future support for [CSS Regions](http://dev.w3.org/csswg/css3-regions/)
//
// $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) {
$target: unquote($target);
@include experimental(flow-into, $target,
not -moz, -webkit, not -o, -ms, not -khtml, not official
);
}
@mixin flow-from($target) {
$target: unquote($target);
@include experimental(flow-from, $target,
not -moz, -webkit, not -o, -ms, not -khtml, not official
);
}

View File

@ -0,0 +1,7 @@
.source {
-webkit-flow-into: target;
-ms-flow-into: target; }
.new-container {
-webkit-flow-from: target;
-ms-flow-from: target; }

View File

@ -0,0 +1,4 @@
@import "compass/css3/regions";
.source { @include flow-into(target); }
.new-container { @include flow-from(target); }