compass-thesquaregrid 0.0.1

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.rdoc ADDED
File without changes
@@ -0,0 +1,2 @@
1
+ require 'compass'
2
+ Compass::Frameworks.register("thesquaregrid", :path => "#{File.dirname(__FILE__)}/..")
@@ -0,0 +1,78 @@
1
+ $squaregrid-wrapper-width: 994px !default
2
+ $squaregrid-container-width: 1008px !default
3
+
4
+ $squaregrid-columns: 18 !default
5
+ $squaregrid-squares: 35 !default
6
+ $squaregrid-square-size: 28px !default
7
+
8
+ =grid-wrapper
9
+ width: $squaregrid-wrapper-width
10
+ margin: 0 auto
11
+
12
+ =grid-container
13
+ width: $squaregrid-container-width
14
+ margin-left: -7px
15
+
16
+ =grid-width($n, $cols: $squaregrid-columns, $gutter-width: $squaregrid-square-size)
17
+ width: $squaregrid-container-width / $cols * $n - $gutter-width
18
+
19
+ =square-width($n, $squares: $squaregrid-squares)
20
+ width: $squaregrid-container-width / ($squares + 1) * $n
21
+
22
+ =grid-unit-base($gutter-width: $squaregrid-square-size)
23
+ float: left
24
+ margin:
25
+ top: 0
26
+ right: $gutter-width / 2
27
+ bottom: $squaregrid-square-size
28
+ left: $gutter-width / 2
29
+
30
+ =grid($n, $cols: $squaregrid-columns, $gutter-width: $squaregrid-square-size)
31
+ +grid-unit-base($gutter-width)
32
+ +grid-width($n, $cols, $gutter-width)
33
+
34
+ =square($n, $cols: $squaregrid-columns, $gutter-width: $squaregrid-square-size, $squares: $squaregrid-squares)
35
+ +grid-unit-base($gutter-width)
36
+ +square-width($n, $squares)
37
+
38
+ =grid-parent
39
+ margin: 0
40
+
41
+ =grid-border-right($border-color: #222, $border-width: 1px, $border-style: solid)
42
+ border-right: $border-width $border-style $border-color
43
+ margin-right: 0
44
+ padding-right: $squaregrid-square-size / 2 - $border-width
45
+
46
+ =grid-border-left($border-color: #222, $border-width: 1px, $border-style: solid)
47
+ border-left: $border-width $border-style $border-color
48
+ margin-left: 0
49
+ padding-left: $squaregrid-square-size / 2 - $border-width
50
+
51
+ =grid-prefix($n, $cols: $squaregrid-columns)
52
+ padding-left: $squaregrid-container-width / $cols * $n
53
+
54
+ =grid-suffix($n, $cols: $squaregrid-columns)
55
+ padding-right: $squaregrid-container-width / $cols * $n
56
+
57
+ =grids($cols: $squaregrid-columns, $gutter-width: $squaregrid-square-size, $squares: $squaregrid-squares)
58
+ #{enumerate(".sg", 1, $squares, "-")}
59
+ +grid-unit-base
60
+ @for $n from 1 through $squares
61
+ .sg-#{$n}
62
+ +square-width($n)
63
+
64
+ =grid-extras
65
+ .sgParent
66
+ +grid-parent
67
+ .borderRight
68
+ +grid-border-right
69
+ .borderLeft
70
+ +grid-border-left
71
+
72
+ =grid-system
73
+ #wrapper
74
+ +grid-wrapper
75
+ #container
76
+ +grid-container
77
+ +grids
78
+ +grid-extras
@@ -0,0 +1,5 @@
1
+ =text
2
+ body
3
+ background-color: #f4f4f4
4
+ font-size: 62.5%
5
+ line-height: 28px
@@ -0,0 +1,16 @@
1
+ @import thesquaregrid/grid
2
+
3
+ // The following generates the default grids provided by the css version of the square grid
4
+ +grid-system
5
+
6
+ // But most compass users prefer to construct semantic layouts like so (two column layout with header and footer):
7
+ #wrapper
8
+ +grid-wrapper
9
+ #container
10
+ +grid-container
11
+ #header, #footer
12
+ +grid(18)
13
+ #sidebar
14
+ +grid-width(6)
15
+ #main-content
16
+ +grid-width(12)
@@ -0,0 +1,17 @@
1
+ stylesheet 'grid.sass', :media => "screen, projection"
2
+ stylesheet 'text.sass', :media => "screen, projection"
3
+
4
+ description "The Square Grid - A simple CSS framework for designers and developers, based on 35 equal-width columns. It aims to cut down on development time and help you create beautiful-structured websites."
5
+
6
+ help %Q{
7
+ Please see the square grid website for documentation:
8
+
9
+ http://thesquaregrid.com/
10
+ }
11
+
12
+ welcome_message %Q{
13
+ Please see the square grid website for documentation:
14
+
15
+ http://thesquaregrid.com/
16
+ }
17
+
@@ -0,0 +1,4 @@
1
+ @import compass/reset
2
+ @import thesquaregrid/text
3
+
4
+ +text
metadata ADDED
@@ -0,0 +1,84 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: compass-thesquaregrid
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 1
9
+ version: 0.0.1
10
+ platform: ruby
11
+ authors:
12
+ - Andrew Cornett
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-11-04 00:00:00 -04:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: compass
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 0
30
+ - 10
31
+ - 6
32
+ version: 0.10.6
33
+ type: :runtime
34
+ version_requirements: *id001
35
+ description: The Square Grid - A simple CSS framework for designers and developers, based on 35 equal-width columns. It aims to cut down on development time and help you create beautiful-structured websites.
36
+ email: andrew@amotion.tv
37
+ executables: []
38
+
39
+ extensions: []
40
+
41
+ extra_rdoc_files: []
42
+
43
+ files:
44
+ - README.rdoc
45
+ - lib/thesquaregrid.rb
46
+ - stylesheets/thesquaregrid/_grid.sass
47
+ - stylesheets/thesquaregrid/_text.sass
48
+ - templates/project/grid.sass
49
+ - templates/project/manifest.rb
50
+ - templates/project/text.sass
51
+ has_rdoc: true
52
+ homepage: http://github.com/amotion/compass-thesquaregrid-plugin
53
+ licenses: []
54
+
55
+ post_install_message:
56
+ rdoc_options: []
57
+
58
+ require_paths:
59
+ - lib
60
+ required_ruby_version: !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ segments:
66
+ - 0
67
+ version: "0"
68
+ required_rubygems_version: !ruby/object:Gem::Requirement
69
+ none: false
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ segments:
74
+ - 0
75
+ version: "0"
76
+ requirements: []
77
+
78
+ rubyforge_project:
79
+ rubygems_version: 1.3.7
80
+ signing_key:
81
+ specification_version: 3
82
+ summary: Adds The Square Grid CSS framework to Compass
83
+ test_files: []
84
+