hashgrid 0.1.0 → 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.
data/README.md CHANGED
@@ -4,22 +4,30 @@
4
4
 
5
5
  ## Usage
6
6
 
7
- 1. Include the gem in your Gemfile `gem 'hashgrid'`
8
- 2. Run `bundle install`
9
- 3. Add `<%= hashgrid %>` where you want the hashgrid css and javascript files to appear (usually in the head).
7
+ 1. Include the gem in your Gemfile: `gem 'hashgrid'`
8
+ 3. Add `<%= hashgrid %>` where you want the hashgrid css and javascript files to appear (usually in the head)
10
9
  4. Press **G** on your website!
11
10
 
12
11
  For more info on using hashgrid checkout the [hashgrid website](http://hashgrid.com/).
13
12
 
13
+ ## Configuration
14
+
15
+ For extra control over the grid, use the following options:
16
+
17
+ <%= hashgrid
18
+ :column_width => '119px',
19
+ :gutter_width => '19px',
20
+ :first_line_width => '19px'
21
+ %>
22
+
14
23
  ## TODO
15
24
 
16
- * Customisable column widths
17
25
  * Customisable colour
18
- * Optionally hide vertical/horizontal lines
26
+ * Optionally hide vertical or horizontal lines
19
27
 
20
28
  ## Thanks
21
29
 
22
- Thanks go to [Analog](http://analog.coop/) for creating [hashgrid](http://hashgrid.com/).
30
+ Thanks go to [Analog](http://analog.coop/) for creating [hashgrid](http://hashgrid.com/) and to [Ennova](http://ennova.com.au) for supporting the development.
23
31
 
24
32
  ## Licence
25
33
 
@@ -17,6 +17,11 @@
17
17
  margin-right: <%= options[:gutter_width] %> !important;
18
18
  <% end %>
19
19
  }
20
+ #grid div.vert.first-line{
21
+ <% if options[:first_line_width] %>
22
+ margin-left: <%= options[:first_line_width] %> !important;
23
+ <% end %>
24
+ }
20
25
  </style>
21
26
  <% end %>
22
27
  <%= stylesheet_link_tag '/stylesheets/hashgrid/hashgrid' %>
@@ -1,3 +1,3 @@
1
1
  module Hashgrid
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hashgrid
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
- - 1
7
+ - 2
9
8
  - 0
10
- version: 0.1.0
9
+ version: 0.2.0
11
10
  platform: ruby
12
11
  authors:
13
12
  - Lucas Willett
@@ -27,7 +26,6 @@ dependencies:
27
26
  requirements:
28
27
  - - ~>
29
28
  - !ruby/object:Gem::Version
30
- hash: 29
31
29
  segments:
32
30
  - 1
33
31
  - 2
@@ -43,7 +41,6 @@ dependencies:
43
41
  requirements:
44
42
  - - ~>
45
43
  - !ruby/object:Gem::Version
46
- hash: 7
47
44
  segments:
48
45
  - 3
49
46
  - 0
@@ -90,7 +87,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
90
87
  requirements:
91
88
  - - ">="
92
89
  - !ruby/object:Gem::Version
93
- hash: 3
94
90
  segments:
95
91
  - 0
96
92
  version: "0"
@@ -99,7 +95,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
95
  requirements:
100
96
  - - ">="
101
97
  - !ruby/object:Gem::Version
102
- hash: 23
103
98
  segments:
104
99
  - 1
105
100
  - 3