Merge remote-tracking branch 'crowchick/stable' into stable
This commit is contained in:
commit
7cd7d90fd1
8
doc-src/content/examples/compass/css3/regions.haml
Normal file
8
doc-src/content/examples/compass/css3/regions.haml
Normal 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"
|
@ -0,0 +1,7 @@
|
|||||||
|
.source
|
||||||
|
%p
|
||||||
|
This is the source material
|
||||||
|
|
||||||
|
.new-container
|
||||||
|
%p
|
||||||
|
This is the target location
|
@ -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
|
15
doc-src/content/reference/compass/css3/regions.haml
Normal file
15
doc-src/content/reference/compass/css3/regions.haml
Normal 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>.
|
@ -14,3 +14,4 @@
|
|||||||
@import "css3/transform";
|
@import "css3/transform";
|
||||||
@import "css3/transition";
|
@import "css3/transition";
|
||||||
@import "css3/appearance";
|
@import "css3/appearance";
|
||||||
|
@import "css3/regions";
|
22
frameworks/compass/stylesheets/compass/css3/_regions.scss
Normal file
22
frameworks/compass/stylesheets/compass/css3/_regions.scss
Normal 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
|
||||||
|
);
|
||||||
|
}
|
7
test/fixtures/stylesheets/compass/css/regions.css
vendored
Normal file
7
test/fixtures/stylesheets/compass/css/regions.css
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
.source {
|
||||||
|
-webkit-flow-into: target;
|
||||||
|
-ms-flow-into: target; }
|
||||||
|
|
||||||
|
.new-container {
|
||||||
|
-webkit-flow-from: target;
|
||||||
|
-ms-flow-from: target; }
|
4
test/fixtures/stylesheets/compass/sass/regions.scss
vendored
Normal file
4
test/fixtures/stylesheets/compass/sass/regions.scss
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
@import "compass/css3/regions";
|
||||||
|
|
||||||
|
.source { @include flow-into(target); }
|
||||||
|
.new-container { @include flow-from(target); }
|
Loading…
Reference in New Issue
Block a user