Skip to content

Commit

Permalink
Added column-span
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-si committed Jan 6, 2013
1 parent f464156 commit d5f4717
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions frameworks/compass/stylesheets/compass/css3/_columns.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@
);
}

// Specify how many columns an element should span across.
//
// * legal values are 1, all
@mixin column-span($columns) {
@include experimental(column-span, $columns,
-moz, -webkit, -o, -ms, not -khtml, official
);
}

// Specify the width of the rule between columns e.g. `1px`
@mixin column-rule-width($width) {
@include experimental(column-rule-width, $width,
Expand Down
7 changes: 7 additions & 0 deletions test/fixtures/stylesheets/compass/css/columns.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@
-o-column-width: 90px;
column-width: 90px; }

.column-span {
-webkit-column-span: all;
-moz-column-span: all;
-ms-column-span: all;
-o-column-span: all;
column-span: all; }

.column-rule-width {
-webkit-column-rule-width: 1px;
-moz-column-rule-width: 1px;
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/stylesheets/compass/sass/columns.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
.column-count { @include column-count(5); }
.column-gap { @include column-gap(10px); }
.column-width { @include column-width(90px); }
.column-span { @include column-span(all); }
.column-rule-width { @include column-rule-width(1px); }
.column-rule-style { @include column-rule-style(dotted); }
.column-rule-color { @include column-rule-color(blue); }
Expand Down

0 comments on commit d5f4717

Please sign in to comment.