tschmidt-gridz 0.1.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/Manifest +11 -0
- data/README.rdoc +0 -0
- data/Rakefile +14 -0
- data/gridz.gemspec +31 -0
- data/lib/gridz.rb +3 -0
- data/rails_generators/gridz/USAGE +1 -0
- data/rails_generators/gridz/gridz_generator.rb +14 -0
- data/rails_generators/gridz/templates/application.css +20 -0
- data/rails_generators/gridz/templates/base.css +133 -0
- data/rails_generators/gridz/templates/gridz.css +81 -0
- data/rails_generators/gridz/templates/reset.css +60 -0
- data/rails_generators/gridz/templates/skin.css +15 -0
- metadata +70 -0
data/Manifest
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
lib/gridz.rb
|
2
|
+
Manifest
|
3
|
+
rails_generators/gridz/gridz_generator.rb
|
4
|
+
rails_generators/gridz/templates/application.css
|
5
|
+
rails_generators/gridz/templates/base.css
|
6
|
+
rails_generators/gridz/templates/gridz.css
|
7
|
+
rails_generators/gridz/templates/reset.css
|
8
|
+
rails_generators/gridz/templates/skin.css
|
9
|
+
rails_generators/gridz/USAGE
|
10
|
+
Rakefile
|
11
|
+
README.rdoc
|
data/README.rdoc
ADDED
File without changes
|
data/Rakefile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
require "rubygems"
|
2
|
+
require "rake"
|
3
|
+
require "echoe"
|
4
|
+
|
5
|
+
Echoe.new('gridz', '0.1.0') do |p|
|
6
|
+
p.description = "Generate necessary files to use Gridz in your application."
|
7
|
+
p.url = "http://github.com/tschmidt/gridz"
|
8
|
+
p.author = "Terry Schmidt"
|
9
|
+
p.email = "terry.m.schmidt@gmail.com"
|
10
|
+
p.ignore_pattern = ["tmp/*", "script/*"]
|
11
|
+
p.development_dependencies = []
|
12
|
+
end
|
13
|
+
|
14
|
+
Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext }
|
data/gridz.gemspec
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = %q{gridz}
|
5
|
+
s.version = "0.1.0"
|
6
|
+
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.authors = ["Terry Schmidt"]
|
9
|
+
s.date = %q{2009-06-03}
|
10
|
+
s.description = %q{Generate necessary files to use Gridz in your application.}
|
11
|
+
s.email = %q{terry.m.schmidt@gmail.com}
|
12
|
+
s.extra_rdoc_files = ["lib/gridz.rb", "README.rdoc"]
|
13
|
+
s.files = ["lib/gridz.rb", "Manifest", "rails_generators/gridz/gridz_generator.rb", "rails_generators/gridz/templates/application.css", "rails_generators/gridz/templates/base.css", "rails_generators/gridz/templates/gridz.css", "rails_generators/gridz/templates/reset.css", "rails_generators/gridz/templates/skin.css", "rails_generators/gridz/USAGE", "Rakefile", "README.rdoc", "gridz.gemspec"]
|
14
|
+
s.has_rdoc = true
|
15
|
+
s.homepage = %q{http://github.com/tschmidt/gridz}
|
16
|
+
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Gridz", "--main", "README.rdoc"]
|
17
|
+
s.require_paths = ["lib"]
|
18
|
+
s.rubyforge_project = %q{gridz}
|
19
|
+
s.rubygems_version = %q{1.3.1}
|
20
|
+
s.summary = %q{Generate necessary files to use Gridz in your application.}
|
21
|
+
|
22
|
+
if s.respond_to? :specification_version then
|
23
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
24
|
+
s.specification_version = 2
|
25
|
+
|
26
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
27
|
+
else
|
28
|
+
end
|
29
|
+
else
|
30
|
+
end
|
31
|
+
end
|
data/lib/gridz.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
script/generate gridz
|
@@ -0,0 +1,14 @@
|
|
1
|
+
class GridzGenerator < Rails::Generator::Base
|
2
|
+
def initialize(runtime_args, runtime_options = {})
|
3
|
+
super
|
4
|
+
end
|
5
|
+
|
6
|
+
def manifest
|
7
|
+
record do |m|
|
8
|
+
m.directory 'public/stylesheets'
|
9
|
+
%w( application.css base.css gridz.css reset.css skin.css ).each do |css|
|
10
|
+
m.file css, "public/stylesheets/#{css}"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
Place links to other stylesheets here. The reason we do this that
|
4
|
+
older browser or browsers that do not support CSS will ignore these
|
5
|
+
@import definitions.
|
6
|
+
|
7
|
+
*/
|
8
|
+
|
9
|
+
/* Reset browser defaults */
|
10
|
+
@import 'reset.css';
|
11
|
+
|
12
|
+
/* Set base styles */
|
13
|
+
@import 'base.css';
|
14
|
+
|
15
|
+
/* Allows for grid based layouts
|
16
|
+
See the grids.css for more information */
|
17
|
+
@import 'gridz.css';
|
18
|
+
|
19
|
+
/* The skin for this site */
|
20
|
+
@import 'skin.css';
|
@@ -0,0 +1,133 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
Base
|
4
|
+
|
5
|
+
Author: Terry Schmidt
|
6
|
+
Date: 27 Feb, 2007
|
7
|
+
|
8
|
+
Description:
|
9
|
+
===============================================================
|
10
|
+
The Base stylesheet will set some standard defaults for
|
11
|
+
the website. This will help eliminate the need to create this
|
12
|
+
everytime you want to start a new site.
|
13
|
+
|
14
|
+
**Information in this file should not be altered in any way. If
|
15
|
+
you need to change the way one of these settings performs you
|
16
|
+
should create a separate CSS file to store your modifications
|
17
|
+
(e.g. skin.css, site.css, application.css, etc).
|
18
|
+
|
19
|
+
*/
|
20
|
+
body {
|
21
|
+
font-size: 13px;
|
22
|
+
font-family: Arial, "MS Trebuchet", sans-serif;
|
23
|
+
line-height: 16px;
|
24
|
+
}
|
25
|
+
|
26
|
+
/*
|
27
|
+
|
28
|
+
The following table designates the percentages that will specify a
|
29
|
+
particular font size. This table is based on the CSS foundation
|
30
|
+
defined above. If you change the default font size from 13px to
|
31
|
+
something else these percentages will not longer be valid.
|
32
|
+
|
33
|
+
To convert pixel to percentage use the following example:
|
34
|
+
|
35
|
+
[desired_pixel] / [base_pixel] * 100 = [declared_percent]
|
36
|
+
|
37
|
+
Example:
|
38
|
+
|
39
|
+
10 / 13 * 100 = 76.92
|
40
|
+
|
41
|
+
If you want this size in pixels (px) Declare this percent (%)
|
42
|
+
=================================================================
|
43
|
+
10 76.9
|
44
|
+
11 84.6
|
45
|
+
12 92.3
|
46
|
+
13 100
|
47
|
+
14 107.6
|
48
|
+
15 115.4
|
49
|
+
16 123.1
|
50
|
+
17 130.8
|
51
|
+
18 138.5
|
52
|
+
19 146.5
|
53
|
+
20 153.9
|
54
|
+
21 161.6
|
55
|
+
22 167
|
56
|
+
23 174
|
57
|
+
24 182
|
58
|
+
25 189
|
59
|
+
26 197
|
60
|
+
|
61
|
+
*/
|
62
|
+
|
63
|
+
h1 {
|
64
|
+
/*26px via CSS foundation*/
|
65
|
+
font-size: 197%;
|
66
|
+
}
|
67
|
+
|
68
|
+
h2 {
|
69
|
+
/*22px via CSS foundation*/
|
70
|
+
font-size: 167%;
|
71
|
+
}
|
72
|
+
|
73
|
+
h3 {
|
74
|
+
/*19px via CSS foundation*/
|
75
|
+
font-size: 146.5%;
|
76
|
+
}
|
77
|
+
|
78
|
+
h1,h2,h3 {
|
79
|
+
margin: 0;
|
80
|
+
}
|
81
|
+
|
82
|
+
h1,h2,h3,h4,h5,h6,strong {
|
83
|
+
font-weight: bold;
|
84
|
+
line-height: 1;
|
85
|
+
}
|
86
|
+
|
87
|
+
abbr,acronym {
|
88
|
+
border-bottom: 1px dotted #000;
|
89
|
+
cursor: help;
|
90
|
+
}
|
91
|
+
|
92
|
+
em {
|
93
|
+
font-style: italic;
|
94
|
+
}
|
95
|
+
|
96
|
+
blockquote,ul,ol,dl {
|
97
|
+
margin: 1em;
|
98
|
+
}
|
99
|
+
|
100
|
+
ol,ul,dl {
|
101
|
+
margin-left: 2em;
|
102
|
+
}
|
103
|
+
|
104
|
+
ol li {
|
105
|
+
list-style: decimal outside;
|
106
|
+
}
|
107
|
+
|
108
|
+
ul li {
|
109
|
+
list-style: disc outside;
|
110
|
+
}
|
111
|
+
|
112
|
+
dl dd {
|
113
|
+
margin-left: 1em;
|
114
|
+
}
|
115
|
+
|
116
|
+
th,td {
|
117
|
+
border: 1px solid #000;
|
118
|
+
padding: 0.5em;
|
119
|
+
}
|
120
|
+
|
121
|
+
th {
|
122
|
+
font-weight: bold;
|
123
|
+
text-align: center;
|
124
|
+
}
|
125
|
+
|
126
|
+
caption {
|
127
|
+
margin-bottom: 0.5em;
|
128
|
+
text-align:center;
|
129
|
+
}
|
130
|
+
|
131
|
+
p,fieldset,table {
|
132
|
+
margin-bottom: 1em;
|
133
|
+
}
|
@@ -0,0 +1,81 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
Gridz
|
4
|
+
|
5
|
+
Author: Terry Schmidt
|
6
|
+
Date: 21 Oct, 2008
|
7
|
+
|
8
|
+
*/
|
9
|
+
|
10
|
+
.row,
|
11
|
+
.lastGrid {
|
12
|
+
overflow: hidden;
|
13
|
+
_overflow: visible;
|
14
|
+
zoom: 1;
|
15
|
+
width: auto !important;
|
16
|
+
}
|
17
|
+
|
18
|
+
.column {
|
19
|
+
float: left;
|
20
|
+
zoom: 1;
|
21
|
+
}
|
22
|
+
|
23
|
+
/*
|
24
|
+
===============================================================================
|
25
|
+
Column Classes
|
26
|
+
===============================================================================
|
27
|
+
*/
|
28
|
+
|
29
|
+
.grid1of1 {
|
30
|
+
float: none;
|
31
|
+
}
|
32
|
+
|
33
|
+
.grid1of2 {
|
34
|
+
width: 50%;
|
35
|
+
_width: 49.9% !important;
|
36
|
+
}
|
37
|
+
|
38
|
+
.grid1of3 {
|
39
|
+
width: 33.332%;
|
40
|
+
_width: 33.25% !important;
|
41
|
+
}
|
42
|
+
|
43
|
+
.grid2of3 {
|
44
|
+
width: 66.665%;
|
45
|
+
_width: 66.65% !important;
|
46
|
+
}
|
47
|
+
|
48
|
+
.grid1of4 {
|
49
|
+
width:25%;
|
50
|
+
_width:24.95% !important;
|
51
|
+
}
|
52
|
+
|
53
|
+
.grid2of4 {
|
54
|
+
width: 50%;
|
55
|
+
_width: 49.9% !important;
|
56
|
+
}
|
57
|
+
|
58
|
+
.grid3of4 {
|
59
|
+
width:75%;
|
60
|
+
_width:74.95% !important;
|
61
|
+
}
|
62
|
+
|
63
|
+
.grid1of5 {
|
64
|
+
width:20%;
|
65
|
+
_width:19.95% !important;
|
66
|
+
}
|
67
|
+
|
68
|
+
.grid2of5 {
|
69
|
+
width:40%;
|
70
|
+
_width:39.95% !important;
|
71
|
+
}
|
72
|
+
|
73
|
+
.grid3of5 {
|
74
|
+
width:60%;
|
75
|
+
_width:59.95% !important;
|
76
|
+
}
|
77
|
+
|
78
|
+
.grid4of5 {
|
79
|
+
width:80%;
|
80
|
+
_width:79.95% !important;
|
81
|
+
}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
Reset
|
4
|
+
|
5
|
+
Author: Terry Schmidt
|
6
|
+
Date: 27 Sep, 2007
|
7
|
+
|
8
|
+
Description:
|
9
|
+
===============================================================
|
10
|
+
Reset will (and this should be obvious) "reset" the default
|
11
|
+
browser styles. This will allow you to (for the most part) write
|
12
|
+
css styles that will work consistantly across browsers. This MUST
|
13
|
+
be the first file you include for your css files.
|
14
|
+
|
15
|
+
**Information in this file SHOULD NOT be altered in any way. If
|
16
|
+
you need to change the way one of these settings performs you
|
17
|
+
should create a separate CSS file to store your modifications
|
18
|
+
(e.g. skin.css, site.css, application.css, etc).
|
19
|
+
|
20
|
+
*/
|
21
|
+
|
22
|
+
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {
|
23
|
+
margin:0;
|
24
|
+
padding:0;
|
25
|
+
}
|
26
|
+
|
27
|
+
table {
|
28
|
+
border-collapse:collapse;
|
29
|
+
border-spacing:0;
|
30
|
+
}
|
31
|
+
|
32
|
+
fieldset,img {
|
33
|
+
border:0;
|
34
|
+
}
|
35
|
+
|
36
|
+
address,caption,cite,code,dfn,em,strong,th,var {
|
37
|
+
font-style:normal;
|
38
|
+
font-weight:normal;
|
39
|
+
}
|
40
|
+
|
41
|
+
ol,ul {
|
42
|
+
list-style:none;
|
43
|
+
}
|
44
|
+
|
45
|
+
caption,th {
|
46
|
+
text-align:left;
|
47
|
+
}
|
48
|
+
|
49
|
+
h1,h2,h3,h4,h5,h6 {
|
50
|
+
font-size:100%;
|
51
|
+
font-weight:normal;
|
52
|
+
}
|
53
|
+
|
54
|
+
q:before,q:after {
|
55
|
+
content:'';
|
56
|
+
}
|
57
|
+
|
58
|
+
abbr,acronym {
|
59
|
+
border:0;
|
60
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
Skin
|
4
|
+
|
5
|
+
Author: Your Name
|
6
|
+
Date: Today's Date
|
7
|
+
|
8
|
+
Description:
|
9
|
+
===============================================================
|
10
|
+
Place styles that will affect the look and feel for your site.
|
11
|
+
You should not have to modify reset.css, typography.css, grids.css
|
12
|
+
or application.css if you are using the grids css system.
|
13
|
+
|
14
|
+
*/
|
15
|
+
|
metadata
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tschmidt-gridz
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Terry Schmidt
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-06-03 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description: Generate necessary files to use Gridz in your application.
|
17
|
+
email: terry.m.schmidt@gmail.com
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files:
|
23
|
+
- lib/gridz.rb
|
24
|
+
- README.rdoc
|
25
|
+
files:
|
26
|
+
- lib/gridz.rb
|
27
|
+
- Manifest
|
28
|
+
- rails_generators/gridz/gridz_generator.rb
|
29
|
+
- rails_generators/gridz/templates/application.css
|
30
|
+
- rails_generators/gridz/templates/base.css
|
31
|
+
- rails_generators/gridz/templates/gridz.css
|
32
|
+
- rails_generators/gridz/templates/reset.css
|
33
|
+
- rails_generators/gridz/templates/skin.css
|
34
|
+
- rails_generators/gridz/USAGE
|
35
|
+
- Rakefile
|
36
|
+
- README.rdoc
|
37
|
+
- gridz.gemspec
|
38
|
+
has_rdoc: true
|
39
|
+
homepage: http://github.com/tschmidt/gridz
|
40
|
+
post_install_message:
|
41
|
+
rdoc_options:
|
42
|
+
- --line-numbers
|
43
|
+
- --inline-source
|
44
|
+
- --title
|
45
|
+
- Gridz
|
46
|
+
- --main
|
47
|
+
- README.rdoc
|
48
|
+
require_paths:
|
49
|
+
- lib
|
50
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: "0"
|
55
|
+
version:
|
56
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: "1.2"
|
61
|
+
version:
|
62
|
+
requirements: []
|
63
|
+
|
64
|
+
rubyforge_project: gridz
|
65
|
+
rubygems_version: 1.2.0
|
66
|
+
signing_key:
|
67
|
+
specification_version: 2
|
68
|
+
summary: Generate necessary files to use Gridz in your application.
|
69
|
+
test_files: []
|
70
|
+
|