semantic_grid 0.1.1 → 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.
@@ -124,3 +124,22 @@
124
124
  margin-right: 0;
125
125
  }
126
126
 
127
+
128
+ // Sticky footer
129
+ // Adapted from http://ryanfait.com/sticky-footer
130
+ @mixin sticky-footer($height) {
131
+ html, body {
132
+ height: 100%;
133
+ }
134
+ #sticky_footer_top_wrapper {
135
+ clear: both;
136
+ min-height: 100%;
137
+ height: auto !important;
138
+ height: 100%;
139
+ margin-bottom: -$height;
140
+ }
141
+ .sticky_footer_bottom_wrapper, #push_sticky_footer {
142
+ height: $height;
143
+ }
144
+ }
145
+
data/changelog.rdoc ADDED
@@ -0,0 +1,13 @@
1
+ == 0.2.0
2
+
3
+ * Add sticky footer
4
+
5
+ == 0.1.1
6
+
7
+ * bug fix
8
+ * Error computing grid width
9
+ * Error importing modules
10
+
11
+ == 0.1.0
12
+
13
+ * Initial release
@@ -1,3 +1,3 @@
1
1
  module SemanticGrid
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
data/readme.md CHANGED
@@ -7,14 +7,56 @@ To use the grid, simply mixin in the following:
7
7
  body
8
8
  +body
9
9
 
10
- // Any element that you wish to user the grid on
10
+ Then any element that you wish to user the grid on:
11
+
11
12
  content
12
- +grid-container
13
-
13
+ +grid-container
14
14
 
15
15
  You now have access to all the standard 960 grid features: grid(n), push(n), pull(n), prefix(n), suffix(n).
16
16
  Mixin 'alpha' and 'omega' to first and last columns, respectively.
17
17
 
18
+ A typical centered layout will look like this:
19
+
20
+ %body
21
+ #outer_header
22
+ .outer_grid
23
+ %header
24
+ #outer_content
25
+ .outer_grid
26
+ %content
27
+ #outer_footer
28
+ .outer_grid
29
+ %footer
30
+
31
+ With the following mixins:
32
+
33
+ body
34
+ +body
35
+
36
+ .outer_grid
37
+ +grid-container
38
+
39
+
40
+ Semantic Grid also includes a sticky footer. To use it add this mixin to the top of your stylesheet:
41
+
42
+ +sticky-footer(YOUR_FOOTER_HEIGHT)
43
+
44
+ and modified your layout:
45
+
46
+ %body
47
+ #sticky_footer_top_wrapper
48
+ #outer_header
49
+ .outer_grid
50
+ %header
51
+ #outer_content
52
+ .outer_grid
53
+ %content
54
+ #push_sticky_footer
55
+ #outer_footer.sticky_footer_bottom_wrapper
56
+ .outer_grid
57
+ %footer
58
+
59
+
18
60
 
19
61
  This grid plays nice with [html5-boilerplate](http://html5boilerplate.com/).
20
62
 
@@ -39,6 +81,7 @@ Comment-out the following sprocket directive in /application.css.scss (Remove th
39
81
  Import the mixins at the beginning of your stylesheet
40
82
 
41
83
  @import 'semantic_grid';
84
+ @import 'semantic_gird/sticky_footer'; # If you want to use it.
42
85
 
43
86
 
44
87
  #Install without Rails
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semantic_grid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-03 00:00:00.000000000Z
12
+ date: 2011-09-10 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sass
16
- requirement: &70291460807760 !ruby/object:Gem::Requirement
16
+ requirement: &70233752008540 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '3.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70291460807760
24
+ version_requirements: *70233752008540
25
25
  description: This is a simple semantic grid for SASS based on the popular 960.gs.
26
26
  email:
27
27
  - g@gavinhughes.net
@@ -34,6 +34,7 @@ files:
34
34
  - LICENSE
35
35
  - Rakefile
36
36
  - app/assets/stylesheets/_semantic_grid.scss
37
+ - changelog.rdoc
37
38
  - lib/semantic_grid.rb
38
39
  - lib/semantic_grid/engine.rb
39
40
  - lib/semantic_grid/sass_extensions.rb