Compass Columns
Provides a mixin for the CSS3 Multi-column layout module. See CSS3 spec: Multi-colum layout module.
This file can be imported using:
@import "compass/css3/columns"
View the Source for this module on Github.
Examples
- Columns
- css3 mixin for css columns
Imports
The following sass files are automatically imported when you import this file:
Mixins
View Source: Sass | SCSScolumn-count($n)
=column-count($n)
+experimental(column-count, $n, -moz, -webkit, -o, not -ms, not -khtml, official)
@mixin column-count($n) { @include experimental(column-count, $n, -moz, -webkit, -o, not -ms, not -khtml, official); }
Specify the number of columns
column-gap($u)
=column-gap($u)
+experimental(column-gap, $u, -moz, -webkit, -o, not -ms, not -khtml, official)
@mixin column-gap($u) { @include experimental(column-gap, $u, -moz, -webkit, -o, not -ms, not -khtml, official); }
Specify the gap between columns e.g. 20px
column-width($u)
=column-width($u)
+experimental(column-width, $u, -moz, -webkit, -o, not -ms, not -khtml, official)
@mixin column-width($u) { @include experimental(column-width, $u, -moz, -webkit, -o, not -ms, not -khtml, official); }
Specify the width of columns e.g. 100px
column-rule-width($w)
=column-rule-width($w)
+experimental(rule-width, $w, -moz, -webkit, -o, not -ms, not -khtml, official)
@mixin column-rule-width($w) { @include experimental(rule-width, $w, -moz, -webkit, -o, not -ms, not -khtml, official); }
Specify the width of the rule between columns e.g. 1px
column-rule-style($s)
=column-rule-style($s)
+experimental(rule-style, unquote($s), -moz, -webkit, -o, not -ms, not -khtml, official)
@mixin column-rule-style($s) { @include experimental(rule-style, unquote($s), -moz, -webkit, -o, not -ms, not -khtml, official); }
Specify the style of the rule between columns e.g. dotted.
This works like border-style.
column-rule-color($c)
=column-rule-color($c)
+experimental(rule-color, unquote($s), -moz, -webkit, -o, not -ms, not -khtml, official)
@mixin column-rule-color($c) { @include experimental(rule-color, unquote($s), -moz, -webkit, -o, not -ms, not -khtml, official); }
Specify the style of the rule between columns e.g. dotted.
This works like border-color.
column-rule($w, $s, $c)
=column-rule($w, $s: solid, $c: black)
+experimental(column-rule, $w $s $c, -moz, -webkit, -o, not -ms, not -khtml, official)
@mixin column-rule($w, $s: solid, $c: black) { @include experimental(column-rule, $w $s $c, -moz, -webkit, -o, not -ms, not -khtml, official); }
Mixin encompassing all column rule rules For example:
+column-rule(1px, solid, #c00)