crispy-grid 0.1.3 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/stylesheets/crispy/_grid.sass +10 -4
  2. metadata +2 -2
@@ -1,3 +1,5 @@
1
+ @import compass//utilities/general/clearfix
2
+
1
3
  // Derived Variables
2
4
  //==================
3
5
  // Note that the gutter is only between the columns, i.e. you have 1 gutter less than columns
@@ -35,11 +37,15 @@ $grid-width: $grid-column-width * $grid-columns + $grid-gutter-width * $grid-gut
35
37
 
36
38
  // Use this mixin for your (none-floating) grid container.
37
39
  // By default, it spans the whole grid-width and is centered.
38
- // Unlike with columns, paddings and borders of a container do not affect its inner width
39
- =grid-container($colspan: $grid-columns, $padding: 0, $differing-right-padding: false, $border-width: 0, $differing-right-border-width: false, $left-margin: auto, $right-margin: auto)
40
+ // Unlike with columns, paddings and borders of a container do not affect its inner width.
41
+ // Clearfixing has to be done in order to enforce the container to enclose its content.
42
+ // By default, the overflow: hidden method is used. Specify $clearfix: pie if container contents should be visible outside of the container (e.g. when positioned absolutely).
43
+ =grid-container($colspan: $grid-columns, $padding: 0, $differing-right-padding: false, $border-width: 0, $differing-right-border-width: false, $left-margin: auto, $right-margin: auto, $clearfix: overflow)
40
44
  +column-metrics($colspan, $padding, $differing-right-padding, $border-width, $differing-right-border-width, $right-margin, $left-margin, true)
41
- // As this grid system bases on the Float (Nearly) Everything method, this is necessary to enforce the container to enclose its content.
42
- overflow: hidden
45
+ @if $clearfix == pie or $clearfix == pie-clearfix
46
+ +pie-clearfix
47
+ @else
48
+ +clearfix
43
49
 
44
50
  // Internal Methods
45
51
  //=================
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: crispy-grid
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.3
5
+ version: 0.2.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Christian Peters
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-11-16 00:00:00 Z
13
+ date: 2011-12-04 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: compass