rotten-generators 0.9.0 → 0.9.2
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/VERSION +1 -1
- data/generators.gemspec +2 -1
- data/rails_generators/rotten_controller/rotten_controller_generator.rb +4 -3
- data/rails_generators/rotten_layout/templates/sass/blank.sass +0 -0
- data/rails_generators/rotten_layout/templates/sass/colour.sass +132 -0
- data/rails_generators/rotten_layout/templates/sass/form.sass +80 -0
- data/rails_generators/rotten_layout/templates/sass/layout.sass +270 -0
- data/rails_generators/rotten_layout/templates/sass/screen.sass +1 -0
- data/rails_generators/rotten_layout/templates/sass/type.sass +206 -0
- metadata +2 -1
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.9.
|
|
1
|
+
0.9.2
|
data/generators.gemspec
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = %q{generators}
|
|
5
|
-
s.version = "0.9.
|
|
5
|
+
s.version = "0.9.2"
|
|
6
6
|
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
8
8
|
s.authors = ["Peter Coulton"]
|
|
@@ -54,6 +54,7 @@ Gem::Specification.new do |s|
|
|
|
54
54
|
"rails_generators/rotten_layout/templates/js/jquery-ui-1.7.2.min.js",
|
|
55
55
|
"rails_generators/rotten_layout/templates/layout.html.haml",
|
|
56
56
|
"rails_generators/rotten_layout/templates/one_column.html.haml",
|
|
57
|
+
"rails_generators/rotten_layout/templates/sass/blank.sass",
|
|
57
58
|
"rails_generators/rotten_layout/templates/sass/colour.sass",
|
|
58
59
|
"rails_generators/rotten_layout/templates/sass/form.sass",
|
|
59
60
|
"rails_generators/rotten_layout/templates/sass/handheld.sass",
|
|
@@ -11,6 +11,7 @@ class RottenControllerGenerator < Rails::Generator::NamedBase
|
|
|
11
11
|
m.directory File.join('app/controllers', class_path)
|
|
12
12
|
m.directory File.join('app/helpers', class_path)
|
|
13
13
|
m.directory File.join('app/views', class_path, file_name)
|
|
14
|
+
|
|
14
15
|
m.directory File.join('spec/controllers', class_path)
|
|
15
16
|
m.directory File.join('spec/helpers', class_path)
|
|
16
17
|
m.directory File.join('spec/views', class_path, file_name)
|
|
@@ -36,15 +37,15 @@ class RottenControllerGenerator < Rails::Generator::NamedBase
|
|
|
36
37
|
actions.each do |action|
|
|
37
38
|
|
|
38
39
|
spec_path = File.join('spec/views', class_path, file_name, "#{action}.html.haml_spec.rb")
|
|
39
|
-
|
|
40
|
+
view_path = File.join('app/views', class_path, file_name, "#{action}.html.haml")
|
|
40
41
|
|
|
41
42
|
m.template 'view_spec.rb',
|
|
42
43
|
spec_path,
|
|
43
44
|
:assigns => { :action => action, :model => file_name }
|
|
44
45
|
|
|
45
46
|
m.template 'view.html.haml',
|
|
46
|
-
|
|
47
|
-
:assigns => { :action => action, :path =>
|
|
47
|
+
view_path,
|
|
48
|
+
:assigns => { :action => action, :path => view_path }
|
|
48
49
|
|
|
49
50
|
end
|
|
50
51
|
end
|
|
File without changes
|
|
@@ -1 +1,133 @@
|
|
|
1
|
+
//
|
|
2
|
+
==============================================================================
|
|
3
|
+
|
|
4
|
+
C O L O U R . S A S S
|
|
5
|
+
|
|
6
|
+
=CONSTANTS
|
|
7
|
+
=STANDARD ELEMENTS
|
|
8
|
+
=PAGE ELEMENTS
|
|
9
|
+
+HEADER
|
|
10
|
+
-NAVIGATION
|
|
11
|
+
+MAIN CONTENT
|
|
12
|
+
+FOOTER
|
|
13
|
+
-CONTACT
|
|
14
|
+
-COPYRIGHT
|
|
15
|
+
=MISC
|
|
16
|
+
------------------------------------------------------------------------------
|
|
17
|
+
|
|
18
|
+
//
|
|
19
|
+
==============================================================================
|
|
20
|
+
C O N S T A N T S
|
|
21
|
+
=================================================================== =CONSTANTS
|
|
22
|
+
|
|
23
|
+
!white = #FFF
|
|
24
|
+
!yellow = #F2C655
|
|
25
|
+
!light_gray = #EEE
|
|
26
|
+
!dark_gray = #CCC
|
|
27
|
+
!black = #0F0F0F
|
|
28
|
+
|
|
29
|
+
!page_background = !light_gray
|
|
30
|
+
!content_background = !white
|
|
31
|
+
!content_border = !yellow
|
|
32
|
+
|
|
33
|
+
//
|
|
34
|
+
==============================================================================
|
|
35
|
+
S T A N D A R D E L E M E N T S
|
|
36
|
+
=========================================================== =STANDARD ELEMENTS
|
|
37
|
+
|
|
38
|
+
html,body
|
|
39
|
+
:background
|
|
40
|
+
:color= !page_background
|
|
41
|
+
|
|
42
|
+
a
|
|
43
|
+
:color #4AD
|
|
44
|
+
|
|
45
|
+
a:visited,
|
|
46
|
+
a:hover
|
|
47
|
+
:color #479
|
|
48
|
+
|
|
49
|
+
//
|
|
50
|
+
==============================================================================
|
|
51
|
+
P A G E E L E M E N T S
|
|
52
|
+
|
|
53
|
+
=PAGE ELEMENTS
|
|
54
|
+
+HEADER
|
|
55
|
+
-NAVIGATION
|
|
56
|
+
+MAIN CONTENT
|
|
57
|
+
+FOOTER
|
|
58
|
+
-CONTACT
|
|
59
|
+
-COPYRIGHT
|
|
60
|
+
=============================================================== =PAGE ELEMENTS
|
|
61
|
+
|
|
62
|
+
#doc, #doc2, #doc3
|
|
63
|
+
|
|
64
|
+
//====================================================================== +HEADER
|
|
65
|
+
|
|
66
|
+
#hd
|
|
67
|
+
:background
|
|
68
|
+
:color= #CCC
|
|
69
|
+
h1
|
|
70
|
+
.beta
|
|
71
|
+
:color #679BCF
|
|
72
|
+
//================================================================ +MAIN CONTENT
|
|
73
|
+
|
|
74
|
+
#bd
|
|
75
|
+
|
|
76
|
+
.flash_messages
|
|
77
|
+
|
|
78
|
+
#flash_notice
|
|
79
|
+
:background
|
|
80
|
+
:color #f8f3a6
|
|
81
|
+
:color #fe840d
|
|
82
|
+
|
|
83
|
+
.main
|
|
84
|
+
.content
|
|
85
|
+
:color #222
|
|
86
|
+
:border
|
|
87
|
+
:color= !dark_gray
|
|
88
|
+
:width 1px
|
|
89
|
+
:right
|
|
90
|
+
:style solid
|
|
91
|
+
:bottom
|
|
92
|
+
:style solid
|
|
93
|
+
|
|
94
|
+
:background
|
|
95
|
+
:color= !content_background
|
|
96
|
+
|
|
97
|
+
h2
|
|
98
|
+
:background-color #CDE
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
.sidebar .content
|
|
102
|
+
:color #666
|
|
103
|
+
|
|
104
|
+
h2, h3, h4, h5, h6
|
|
105
|
+
:color #FFF
|
|
106
|
+
|
|
107
|
+
h3
|
|
108
|
+
:background-color #456
|
|
109
|
+
|
|
110
|
+
//====================================================================== +FOOTER
|
|
111
|
+
|
|
112
|
+
#ft
|
|
113
|
+
#navigation
|
|
114
|
+
:color #666
|
|
115
|
+
|
|
116
|
+
#validators
|
|
117
|
+
img
|
|
118
|
+
:opacity 0.2
|
|
119
|
+
|
|
120
|
+
img:hover
|
|
121
|
+
:opacity 1
|
|
122
|
+
|
|
123
|
+
#links
|
|
124
|
+
ul
|
|
125
|
+
li
|
|
126
|
+
:display inline
|
|
127
|
+
|
|
128
|
+
#info
|
|
129
|
+
ul
|
|
130
|
+
#copyright
|
|
131
|
+
#version
|
|
132
|
+
:color #999
|
|
1
133
|
|
|
@@ -1 +1,81 @@
|
|
|
1
|
+
//
|
|
2
|
+
==============================================================================
|
|
3
|
+
|
|
4
|
+
F O R M . S A S S
|
|
5
|
+
|
|
6
|
+
=CONSTANTS
|
|
7
|
+
=STANDARD ELEMENTS
|
|
8
|
+
=MISC
|
|
9
|
+
------------------------------------------------------------------------------
|
|
10
|
+
|
|
11
|
+
//
|
|
12
|
+
==============================================================================
|
|
13
|
+
C O N S T A N T S
|
|
14
|
+
=================================================================== =CONSTANTS
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
//================================================================== +FONT SIZES
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
//
|
|
21
|
+
==============================================================================
|
|
22
|
+
S T A N D A R D E L E M E N T S
|
|
23
|
+
=========================================================== =STANDARD ELEMENTS
|
|
24
|
+
|
|
25
|
+
form
|
|
26
|
+
|
|
27
|
+
p
|
|
28
|
+
:padding
|
|
29
|
+
:top 1em
|
|
30
|
+
:margin
|
|
31
|
+
:bottom 0.2em
|
|
32
|
+
|
|
33
|
+
fieldset
|
|
34
|
+
:margin 0
|
|
35
|
+
:bottom 1em
|
|
36
|
+
:padding 1em
|
|
37
|
+
:background
|
|
38
|
+
:color #EFEFEF
|
|
39
|
+
|
|
40
|
+
legend
|
|
41
|
+
:display none
|
|
42
|
+
|
|
43
|
+
input[type=text],
|
|
44
|
+
input[type=password]
|
|
45
|
+
:padding 3px
|
|
46
|
+
|
|
47
|
+
dl
|
|
48
|
+
|
|
49
|
+
dt
|
|
50
|
+
:clear left
|
|
51
|
+
:float left
|
|
52
|
+
:margin 4px 8px 0 0
|
|
53
|
+
:position 0
|
|
54
|
+
:text-align right
|
|
55
|
+
:width 12em
|
|
56
|
+
|
|
57
|
+
label:after
|
|
58
|
+
:content ':'
|
|
59
|
+
|
|
60
|
+
dd
|
|
61
|
+
:margin 0 0 5px
|
|
62
|
+
|
|
63
|
+
dt.required label
|
|
64
|
+
:font-weight bold
|
|
65
|
+
|
|
66
|
+
.actions
|
|
67
|
+
:text-align right
|
|
68
|
+
:padding 1em
|
|
69
|
+
|
|
70
|
+
input[type=submit]
|
|
71
|
+
//:height 2.5em
|
|
72
|
+
:padding 0.5em
|
|
73
|
+
|
|
74
|
+
a.cancel
|
|
75
|
+
:color #D45
|
|
76
|
+
:font-size 85%
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
1
81
|
|
|
@@ -1 +1,271 @@
|
|
|
1
|
+
//
|
|
2
|
+
==============================================================================
|
|
3
|
+
|
|
4
|
+
L A Y O U T . S A S S
|
|
5
|
+
|
|
6
|
+
=CONSTANTS
|
|
7
|
+
=STANDARD ELEMENTS
|
|
8
|
+
=PAGE ELEMENTS
|
|
9
|
+
+HEADER
|
|
10
|
+
-NAVIGATION
|
|
11
|
+
+MAIN CONTENT
|
|
12
|
+
+FOOTER
|
|
13
|
+
-CONTACT
|
|
14
|
+
-COPYRIGHT
|
|
15
|
+
=COLUMNS
|
|
16
|
+
+ONE COLUMN
|
|
17
|
+
+TWO COLUMN RIGHT
|
|
18
|
+
+TWO COLUMN LEFT
|
|
19
|
+
=MISC
|
|
20
|
+
------------------------------------------------------------------------------
|
|
21
|
+
|
|
22
|
+
//
|
|
23
|
+
==============================================================================
|
|
24
|
+
|
|
25
|
+
C O N S T A N T S
|
|
26
|
+
|
|
27
|
+
=================================================================== =CONSTANTS
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
//
|
|
31
|
+
==============================================================================
|
|
32
|
+
|
|
33
|
+
M I X I N S
|
|
34
|
+
|
|
35
|
+
====================================================================== =MIXINS
|
|
36
|
+
|
|
37
|
+
// need this to prevent content from poking out of container bottoms
|
|
38
|
+
=overflow_fix
|
|
39
|
+
:content "."
|
|
40
|
+
:display block
|
|
41
|
+
:height 0
|
|
42
|
+
:clear both
|
|
43
|
+
:visibility hidden
|
|
44
|
+
|
|
45
|
+
//
|
|
46
|
+
==============================================================================
|
|
47
|
+
|
|
48
|
+
S T A N D A R D E L E M E N T S
|
|
49
|
+
|
|
50
|
+
=========================================================== =STANDARD ELEMENTS
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
//
|
|
55
|
+
==============================================================================
|
|
56
|
+
|
|
57
|
+
P A G E E L E M E N T S
|
|
58
|
+
|
|
59
|
+
=PAGE ELEMENTS
|
|
60
|
+
+HEADER
|
|
61
|
+
-NAVIGATION
|
|
62
|
+
+MAIN CONTENT
|
|
63
|
+
+FOOTER
|
|
64
|
+
-CONTACT
|
|
65
|
+
-COPYRIGHT
|
|
66
|
+
|
|
67
|
+
=============================================================== =PAGE ELEMENTS
|
|
68
|
+
|
|
69
|
+
#doc
|
|
70
|
+
:margin auto
|
|
71
|
+
:width auto
|
|
72
|
+
:min-width 71em
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
#hd, #bd, #ft
|
|
76
|
+
:padding
|
|
77
|
+
:left 2em
|
|
78
|
+
:right 2em
|
|
79
|
+
|
|
80
|
+
//====================================================================== +HEADER
|
|
81
|
+
|
|
82
|
+
#hd
|
|
83
|
+
|
|
84
|
+
h1
|
|
85
|
+
:position relative
|
|
86
|
+
:width 0
|
|
87
|
+
.beta
|
|
88
|
+
:vertical-align top
|
|
89
|
+
:position absolute
|
|
90
|
+
:top 0.1em
|
|
91
|
+
:left 9.3em
|
|
92
|
+
|
|
93
|
+
.user_actions
|
|
94
|
+
:float right
|
|
95
|
+
:margin
|
|
96
|
+
:top 1em
|
|
97
|
+
:right 2em
|
|
98
|
+
:padding 0.5em
|
|
99
|
+
:background
|
|
100
|
+
:color #FFF
|
|
101
|
+
|
|
102
|
+
a
|
|
103
|
+
:vertical-align top
|
|
104
|
+
|
|
105
|
+
// This doesn't work in IE7
|
|
106
|
+
#navigation
|
|
107
|
+
li
|
|
108
|
+
:float left
|
|
109
|
+
:padding
|
|
110
|
+
:top 0.5em
|
|
111
|
+
:bottom 0.5em
|
|
112
|
+
:left 1em
|
|
113
|
+
:right 1em
|
|
114
|
+
:margin
|
|
115
|
+
:right 0.25em
|
|
116
|
+
:left 0.25em
|
|
117
|
+
:background
|
|
118
|
+
:color #FFF
|
|
119
|
+
|
|
120
|
+
li.first
|
|
121
|
+
:margin-right 1em
|
|
122
|
+
|
|
123
|
+
li.right
|
|
124
|
+
:float right
|
|
125
|
+
|
|
126
|
+
li:hover
|
|
127
|
+
:background
|
|
128
|
+
:color #EEE
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
//================================================================ +MAIN CONTENT
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
#bd
|
|
135
|
+
:padding-top 1em
|
|
136
|
+
|
|
137
|
+
.flash_messages
|
|
138
|
+
|
|
139
|
+
#flash_notice
|
|
140
|
+
:padding 0.5em
|
|
141
|
+
:margin
|
|
142
|
+
:bottom 0.5em
|
|
143
|
+
:text-align center
|
|
144
|
+
|
|
145
|
+
// yui-main
|
|
146
|
+
.main
|
|
147
|
+
:margin
|
|
148
|
+
:bottom 2em
|
|
149
|
+
:width 100%
|
|
150
|
+
|
|
151
|
+
// yui-b
|
|
152
|
+
.content
|
|
153
|
+
:padding
|
|
154
|
+
:left 2em
|
|
155
|
+
:right 2em
|
|
156
|
+
:bottom 2em
|
|
157
|
+
:float none
|
|
158
|
+
:width auto
|
|
159
|
+
:position static
|
|
160
|
+
:min-height 30em
|
|
161
|
+
|
|
162
|
+
// yui-b
|
|
163
|
+
.sidebar
|
|
164
|
+
:width 23.0769em
|
|
165
|
+
:position relative
|
|
166
|
+
|
|
167
|
+
.content
|
|
168
|
+
:padding
|
|
169
|
+
:bottom 0.4em
|
|
170
|
+
:left 0.5em
|
|
171
|
+
:right 0.5em
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
#ft
|
|
175
|
+
:padding
|
|
176
|
+
:left 3em
|
|
177
|
+
:right 3em
|
|
178
|
+
|
|
179
|
+
#navigation
|
|
180
|
+
:color #666
|
|
181
|
+
|
|
182
|
+
#links
|
|
183
|
+
ul
|
|
184
|
+
li
|
|
185
|
+
:display inline
|
|
186
|
+
li:after
|
|
187
|
+
:content ' | '
|
|
188
|
+
li.last:after
|
|
189
|
+
:content ''
|
|
190
|
+
#info
|
|
191
|
+
ul
|
|
192
|
+
#copyright
|
|
193
|
+
#version
|
|
194
|
+
:color #999
|
|
195
|
+
|
|
196
|
+
#validators
|
|
197
|
+
:padding-top 1.2em
|
|
198
|
+
img
|
|
199
|
+
:opacity 0.2
|
|
200
|
+
|
|
201
|
+
img:hover
|
|
202
|
+
:opacity 1
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
#hd:after,
|
|
208
|
+
#bd:after,
|
|
209
|
+
#ft:after
|
|
210
|
+
+overflow_fix
|
|
211
|
+
|
|
212
|
+
//
|
|
213
|
+
==============================================================================
|
|
214
|
+
|
|
215
|
+
C O L U M N S
|
|
216
|
+
|
|
217
|
+
=COLUMNS
|
|
218
|
+
+ONE COLUMN
|
|
219
|
+
+TWO COLUMN RIGHT
|
|
220
|
+
+TWO COLUMN LEFT
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
===================================================================== =COLUMNS
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
//================================================================== +ONE COLUMN
|
|
227
|
+
|
|
228
|
+
.one_column
|
|
229
|
+
#bd
|
|
230
|
+
.main
|
|
231
|
+
.content
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
//============================================================ +TWO COLUMN RIGHT
|
|
235
|
+
|
|
236
|
+
.two_column_right
|
|
237
|
+
#bd
|
|
238
|
+
.main
|
|
239
|
+
:float left
|
|
240
|
+
:margin
|
|
241
|
+
:right -25em
|
|
242
|
+
|
|
243
|
+
.content
|
|
244
|
+
:margin
|
|
245
|
+
:right 24.0769em
|
|
246
|
+
|
|
247
|
+
.sidebar
|
|
248
|
+
:float right
|
|
249
|
+
|
|
250
|
+
.content
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
//============================================================= +TWO COLUMN LEFT
|
|
254
|
+
|
|
255
|
+
.two_column_left
|
|
256
|
+
#bd
|
|
257
|
+
.main
|
|
258
|
+
:float right
|
|
259
|
+
:margin
|
|
260
|
+
:left -25em
|
|
261
|
+
|
|
262
|
+
.content
|
|
263
|
+
:margin
|
|
264
|
+
:left 24.0769em
|
|
265
|
+
|
|
266
|
+
.sidebar
|
|
267
|
+
:float left
|
|
268
|
+
.content
|
|
269
|
+
|
|
270
|
+
|
|
1
271
|
|
|
@@ -1 +1,207 @@
|
|
|
1
|
+
//
|
|
2
|
+
==============================================================================
|
|
3
|
+
|
|
4
|
+
T Y P E . S A S S
|
|
5
|
+
|
|
6
|
+
=CONSTANTS
|
|
7
|
+
+FONT SIZES
|
|
8
|
+
+FONT STACKS
|
|
9
|
+
=STANDARD ELEMENTS
|
|
10
|
+
+HEADINGS
|
|
11
|
+
+BASIC TEXT
|
|
12
|
+
=PAGE ELEMENTS
|
|
13
|
+
+HEADER
|
|
14
|
+
-NAVIGATION
|
|
15
|
+
+MAIN CONTENT
|
|
16
|
+
+FOOTER
|
|
17
|
+
-CONTACT
|
|
18
|
+
-COPYRIGHT
|
|
19
|
+
=MISC
|
|
20
|
+
------------------------------------------------------------------------------
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
//
|
|
24
|
+
==============================================================================
|
|
25
|
+
|
|
26
|
+
C O N S T A N T S
|
|
27
|
+
|
|
28
|
+
+FONT SIZES
|
|
29
|
+
+FONT STACKS
|
|
30
|
+
|
|
31
|
+
=================================================================== =CONSTANTS
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
//================================================================== +FONT SIZES
|
|
35
|
+
|
|
36
|
+
!px10 = 77%
|
|
37
|
+
!px11 = 85%
|
|
38
|
+
!px12 = 93%
|
|
39
|
+
!px13 = 100%
|
|
40
|
+
!px14 = 108%
|
|
41
|
+
!px16 = 123.1%
|
|
42
|
+
!px18 = 138.5%
|
|
43
|
+
!px24 = 184.6%
|
|
44
|
+
!px36 = 276.92%
|
|
45
|
+
!px48 = 369.23%
|
|
46
|
+
!px72 = 513.1%
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
//================================================================= +FONT STACKS
|
|
50
|
+
|
|
51
|
+
!fs_plain_text = "Verdana, Geneva, Tahoma, sans-serif"
|
|
52
|
+
!fs_large_headings = "'Minion Pro', Georgia, Times New Roman, serif"
|
|
53
|
+
!fs_small_headings = "Georgia, Times New Roman, serif"
|
|
54
|
+
!fs_code = "Bitstream Vera Sans Mono, courier new, monospace"
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
//
|
|
59
|
+
==============================================================================
|
|
60
|
+
|
|
61
|
+
S T A N D A R D E L E M E N T S
|
|
62
|
+
|
|
63
|
+
=STANDARD ELEMENTS
|
|
64
|
+
+HEADINGS
|
|
65
|
+
+BASIC TEXT
|
|
66
|
+
|
|
67
|
+
=========================================================== =STANDARD ELEMENTS
|
|
68
|
+
|
|
69
|
+
body
|
|
70
|
+
:font
|
|
71
|
+
:size 13px
|
|
72
|
+
:family = !fs_plain_text
|
|
73
|
+
:line-height = 16/13
|
|
74
|
+
|
|
75
|
+
// Nudge down to get to 13px equivalent for these form elements
|
|
76
|
+
select,
|
|
77
|
+
input,
|
|
78
|
+
button,
|
|
79
|
+
textarea
|
|
80
|
+
:font
|
|
81
|
+
:size 99%
|
|
82
|
+
:family = !fs_plain_text
|
|
83
|
+
|
|
84
|
+
legend
|
|
85
|
+
:font-family= !fs_large_headings
|
|
86
|
+
|
|
87
|
+
strong
|
|
88
|
+
:font
|
|
89
|
+
:weight bold
|
|
90
|
+
|
|
91
|
+
table
|
|
92
|
+
:font-size inherit
|
|
93
|
+
|
|
94
|
+
pre,
|
|
95
|
+
code,
|
|
96
|
+
kbd,
|
|
97
|
+
samp,
|
|
98
|
+
tt
|
|
99
|
+
:font-family = !fs_code
|
|
100
|
+
:line-height 100%
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
//==================================================================== +HEADINGS
|
|
105
|
+
|
|
106
|
+
h1, h2, h3, h4, h5, h6
|
|
107
|
+
:letter-spacing 0
|
|
108
|
+
:margin-bottom 0.667em
|
|
109
|
+
|
|
110
|
+
h1, h2, h3
|
|
111
|
+
:font
|
|
112
|
+
:family = !fs_large_headings
|
|
113
|
+
:size = !px16
|
|
114
|
+
|
|
115
|
+
h4, h5, h6
|
|
116
|
+
:font
|
|
117
|
+
:family = !fs_small_headings
|
|
118
|
+
:size = !px16
|
|
119
|
+
|
|
120
|
+
h1
|
|
121
|
+
:font-size 5em
|
|
122
|
+
:margin-bottom 0
|
|
123
|
+
|
|
124
|
+
h2
|
|
125
|
+
:font-size 3em
|
|
126
|
+
|
|
127
|
+
h3
|
|
128
|
+
:font-size 2em
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
//================================================================== +BASIC TEXT
|
|
132
|
+
|
|
133
|
+
p
|
|
134
|
+
:font-size 93%
|
|
135
|
+
:line-height 1.889
|
|
136
|
+
:margin-bottom 1.916em
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
//
|
|
141
|
+
==============================================================================
|
|
142
|
+
|
|
143
|
+
P A G E E L E M E N T S
|
|
144
|
+
|
|
145
|
+
=PAGE ELEMENTS
|
|
146
|
+
+HEADER
|
|
147
|
+
-NAVIGATION
|
|
148
|
+
+MAIN CONTENT
|
|
149
|
+
+FOOTER
|
|
150
|
+
-CONTACT
|
|
151
|
+
-COPYRIGHT
|
|
152
|
+
|
|
153
|
+
=============================================================== =PAGE ELEMENTS
|
|
154
|
+
|
|
155
|
+
#doc
|
|
156
|
+
|
|
157
|
+
//====================================================================== +HEADER
|
|
158
|
+
|
|
159
|
+
#hd
|
|
160
|
+
|
|
161
|
+
h1
|
|
162
|
+
|
|
163
|
+
.beta
|
|
164
|
+
:font-size 40%
|
|
165
|
+
|
|
166
|
+
//================================================================ +MAIN CONTENT
|
|
167
|
+
|
|
168
|
+
#bd
|
|
169
|
+
|
|
170
|
+
.main
|
|
171
|
+
.content
|
|
172
|
+
|
|
173
|
+
h2, h3, h4, h5, h6
|
|
174
|
+
|
|
175
|
+
h2
|
|
176
|
+
:padding 0.2em
|
|
177
|
+
:margin
|
|
178
|
+
:left -0.67em
|
|
179
|
+
:right -0.67em
|
|
180
|
+
:bottom 0.25em
|
|
181
|
+
|
|
182
|
+
.sidebar
|
|
183
|
+
.content
|
|
184
|
+
|
|
185
|
+
h2, h3, h4, h5, h6
|
|
186
|
+
:padding
|
|
187
|
+
:top 0.4em
|
|
188
|
+
:bottom 0.4em
|
|
189
|
+
:left 0.8em
|
|
190
|
+
:margin
|
|
191
|
+
:left -0.4em
|
|
192
|
+
:right -0.4em
|
|
193
|
+
|
|
194
|
+
p, ul
|
|
195
|
+
|
|
196
|
+
h3
|
|
197
|
+
:font
|
|
198
|
+
:family = !fs_small_headings
|
|
199
|
+
:size = !px16
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
//====================================================================== +FOOTER
|
|
203
|
+
|
|
204
|
+
#ft
|
|
205
|
+
|
|
206
|
+
|
|
1
207
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rotten-generators
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Peter Coulton
|
|
@@ -64,6 +64,7 @@ files:
|
|
|
64
64
|
- rails_generators/rotten_layout/templates/js/jquery-ui-1.7.2.min.js
|
|
65
65
|
- rails_generators/rotten_layout/templates/layout.html.haml
|
|
66
66
|
- rails_generators/rotten_layout/templates/one_column.html.haml
|
|
67
|
+
- rails_generators/rotten_layout/templates/sass/blank.sass
|
|
67
68
|
- rails_generators/rotten_layout/templates/sass/colour.sass
|
|
68
69
|
- rails_generators/rotten_layout/templates/sass/form.sass
|
|
69
70
|
- rails_generators/rotten_layout/templates/sass/handheld.sass
|