css_grid 2.7.12 → 2.7.14
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.
- data/README.md +4 -0
- data/lib/css_grid/version.rb +1 -1
- data/lib/css_grid.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -6,6 +6,10 @@ __Grid__ is a 12 column alignment system, based on 1140px width. That fit for 12
|
|
6
6
|
|
7
7
|
__Helpers__ facilitate the use of the grid syntax, to produce correct html markdown. This allow you to pass collections and block, and map the result to insert it into correct html tags.
|
8
8
|
|
9
|
+
--
|
10
|
+
|
11
|
+
Tested with Rails 3.2 + Ruby 1.9, Rails 2.3 + Ruby Enterprise (ree) 1.8.7
|
12
|
+
|
9
13
|
## Installation
|
10
14
|
|
11
15
|
Add this line to your application's Gemfile:
|
data/lib/css_grid/version.rb
CHANGED
data/lib/css_grid.rb
CHANGED
@@ -78,7 +78,7 @@ module GridHelper
|
|
78
78
|
options[:rows].merge!({:nested => true}) if nested.delete :container
|
79
79
|
|
80
80
|
collection_length = TWELVE_STRING_INTS[col_number]
|
81
|
-
span_width = @span_width || TWELVE_STRING_INTS_INVERT[(options.delete(:nested_width) || 12) /
|
81
|
+
span_width = @span_width || TWELVE_STRING_INTS_INVERT[((options.delete(:nested_width) || 12) / collection_length) - (options[:spans][:prepend] || 0) - (options[:spans][:append] || 0)]
|
82
82
|
|
83
83
|
rows = []
|
84
84
|
(options.delete(:collection) || [1]).in_groups_of(collection_length, false) do |collection_mini|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: css_grid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.14
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: hash_extend
|
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
80
|
version: '0'
|
81
81
|
requirements: []
|
82
82
|
rubyforge_project:
|
83
|
-
rubygems_version: 1.8.
|
83
|
+
rubygems_version: 1.8.23
|
84
84
|
signing_key:
|
85
85
|
specification_version: 3
|
86
86
|
summary: stylesheet grid.scss and module GridHelper
|