mondo-generators 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/mondo-generators.gemspec +3 -2
- data/rails_generators/mondo_layout/mondo_layout_generator.rb +1 -0
- data/rails_generators/mondo_layout/templates/_flash_message.html.haml +1 -1
- data/rails_generators/mondo_layout/templates/images/help_triangle.gif +0 -0
- data/rails_generators/mondo_layout/templates/layout.html.haml +2 -3
- data/rails_generators/mondo_layout/templates/stylesheets/_colors.sass +14 -1
- data/rails_generators/mondo_layout/templates/stylesheets/_constants.sass +2 -11
- data/rails_generators/mondo_layout/templates/stylesheets/partials/_base.sass +23 -3
- data/rails_generators/mondo_layout/templates/stylesheets/partials/_content.sass +7 -5
- data/rails_generators/mondo_layout/templates/stylesheets/partials/_footer.sass +2 -1
- data/rails_generators/mondo_layout/templates/stylesheets/partials/_forms.sass +8 -2
- data/rails_generators/mondo_layout/templates/stylesheets/partials/_header.sass +5 -2
- data/rails_generators/mondo_layout/templates/stylesheets/partials/_links.sass +10 -8
- data/rails_generators/mondo_layout/templates/stylesheets/partials/_tables.sass +3 -1
- data/rails_generators/mondo_layout/templates/stylesheets/partials/_typography.sass +18 -0
- data/rails_generators/mondo_layout/templates/stylesheets/screen.sass +3 -2
- metadata +3 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.2
|
data/mondo-generators.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{mondo-generators}
|
8
|
-
s.version = "0.6.
|
8
|
+
s.version = "0.6.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Luca Tironi"]
|
12
|
-
s.date = %q{2010-02-
|
12
|
+
s.date = %q{2010-02-04}
|
13
13
|
s.description = %q{A collection of useful generator scripts for Rails.}
|
14
14
|
s.email = %q{luca.tironi@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -52,6 +52,7 @@ Gem::Specification.new do |s|
|
|
52
52
|
"rails_generators/mondo_layout/templates/images/delete.gif",
|
53
53
|
"rails_generators/mondo_layout/templates/images/edit.gif",
|
54
54
|
"rails_generators/mondo_layout/templates/images/error.gif",
|
55
|
+
"rails_generators/mondo_layout/templates/images/help_triangle.gif",
|
55
56
|
"rails_generators/mondo_layout/templates/images/navbar_bkg.gif",
|
56
57
|
"rails_generators/mondo_layout/templates/images/new.gif",
|
57
58
|
"rails_generators/mondo_layout/templates/images/no.gif",
|
@@ -50,6 +50,7 @@ class MondoLayoutGenerator < Rails::Generator::Base
|
|
50
50
|
m.file "images/edit.gif", "public/images/icons/edit.gif"
|
51
51
|
m.file "images/delete.gif", "public/images/icons/delete.gif"
|
52
52
|
m.file "images/bullet_black.gif", "public/images/icons/bullet_black.gif"
|
53
|
+
m.file "images/help_triangle.gif", "public/images/help_triangle.gif"
|
53
54
|
end
|
54
55
|
end
|
55
56
|
|
Binary file
|
@@ -12,8 +12,7 @@
|
|
12
12
|
%body{:id => yield(:page)}
|
13
13
|
#wrap
|
14
14
|
#header
|
15
|
-
%h1
|
16
|
-
<%= app_name %>
|
15
|
+
%h1 <%= app_name %>
|
17
16
|
#navbar
|
18
17
|
%ul
|
19
18
|
- if logged_in?
|
@@ -31,7 +30,7 @@
|
|
31
30
|
= link_to "Login", login_path
|
32
31
|
#flash_box{:onclick => "new Effect.Fade(this, {duration: 0.1, from: 0.7});", :style => "display: none;"}
|
33
32
|
- flash_message
|
34
|
-
#content
|
33
|
+
#content.container
|
35
34
|
%h2= yield(:title)
|
36
35
|
= yield
|
37
36
|
.push
|
@@ -6,4 +6,17 @@
|
|
6
6
|
|
7
7
|
!font_color = #464646
|
8
8
|
!link_color = #4183c4
|
9
|
-
!link_hover_color = #08f
|
9
|
+
!link_hover_color = #08f
|
10
|
+
|
11
|
+
!feedback_border_color ||= #DDD
|
12
|
+
!success_color ||= #264409
|
13
|
+
!success_bg_color ||= #E6EFC2
|
14
|
+
!success_border_color ||= #C6D880
|
15
|
+
|
16
|
+
!notice_color ||= #514721
|
17
|
+
!notice_bg_color ||= #FFF6BF
|
18
|
+
!notice_border_color ||= #FFD324
|
19
|
+
|
20
|
+
!error_color ||= #8A1F11
|
21
|
+
!error_bg_color ||= #FBE3E4
|
22
|
+
!error_border_color ||= #FBC2C4
|
@@ -1,14 +1,5 @@
|
|
1
|
-
!blueprint_grid_columns = 24
|
2
|
-
!blueprint_container_size = 950px
|
3
|
-
!blueprint_grid_margin = 10px
|
4
|
-
|
5
|
-
!blueprint_grid_width = (!blueprint_container_size + !blueprint_grid_margin) / !blueprint_grid_columns - !blueprint_grid_margin
|
6
|
-
|
7
|
-
!container_width = !blueprint_container_size
|
8
|
-
!left_column_width = 350px
|
9
|
-
!right_column_width = !container_width - !left_column_width - 10px
|
10
1
|
!footer_height = 2.5em
|
11
2
|
|
12
|
-
!font_size =
|
3
|
+
!font_size = 13px
|
13
4
|
!headline_fonts = "Helvetica Neue", "HelveticaNeue", "Helvetica", "Arial"
|
14
|
-
!normal_fonts = "
|
5
|
+
!normal_fonts = "Arial", "Helvetica Neue", "HelveticaNeue", "Helvetica"
|
@@ -18,6 +18,16 @@ body
|
|
18
18
|
.push
|
19
19
|
:height = !footer_height
|
20
20
|
|
21
|
+
.box
|
22
|
+
:background #efefef
|
23
|
+
:padding 1.5em 1.5em 0.1em 1.5em
|
24
|
+
:margin-bottom 1em
|
25
|
+
|
26
|
+
.box_bordered
|
27
|
+
:border 2px dashed #999
|
28
|
+
:padding 1.5em 1.5em 0.1em 1.5em
|
29
|
+
:margin-bottom 1em
|
30
|
+
|
21
31
|
a
|
22
32
|
img
|
23
33
|
:border 0
|
@@ -25,13 +35,23 @@ a
|
|
25
35
|
img.icon
|
26
36
|
:vertical-align text-bottom
|
27
37
|
|
38
|
+
.float_left
|
39
|
+
+float
|
40
|
+
.float_right
|
41
|
+
+float("right")
|
42
|
+
|
28
43
|
br.clear
|
29
44
|
:clear both
|
30
45
|
|
31
|
-
|
32
|
-
:font-size 90%
|
46
|
+
span.handle
|
33
47
|
:cursor move
|
34
|
-
|
48
|
+
|
49
|
+
span.hide_container
|
50
|
+
span.hide_element
|
51
|
+
:display none
|
52
|
+
span.hide_container:hover
|
53
|
+
span.hide_element
|
54
|
+
:display inline
|
35
55
|
|
36
56
|
@import header.sass
|
37
57
|
@import content.sass
|
@@ -6,16 +6,22 @@ textarea
|
|
6
6
|
:font-family courier
|
7
7
|
:font-size 14px
|
8
8
|
:line-height 18px
|
9
|
+
:width 90%
|
9
10
|
.bigfield
|
10
11
|
:padding 0.1em 0.2em
|
11
|
-
:font-size
|
12
|
+
:font-size 160%
|
13
|
+
.help
|
14
|
+
:padding 0.8em 0.8em 0.8em 1.6em
|
15
|
+
:margin-bottom 1em
|
16
|
+
:background #fff6bf url("../../images/help_triangle.gif") top left no-repeat
|
17
|
+
:color #514721
|
12
18
|
|
13
19
|
.required
|
14
20
|
+weak
|
15
21
|
|
16
22
|
p.buttons
|
17
23
|
+clearfix
|
18
|
-
:margin-bottom
|
24
|
+
:margin-bottom 1.5em
|
19
25
|
|
20
26
|
a.button
|
21
27
|
// you can pass "left" or "right" to +anchor-button to float it in that direction
|
@@ -1,6 +1,7 @@
|
|
1
1
|
#header
|
2
2
|
+clearfix
|
3
|
-
:
|
3
|
+
:min-width 910px
|
4
|
+
:padding 0 20px
|
4
5
|
:background = !header_background_color
|
5
6
|
h1
|
6
7
|
:margin-top 0.3em
|
@@ -14,7 +15,8 @@
|
|
14
15
|
|
15
16
|
#navbar
|
16
17
|
+clearfix
|
17
|
-
:
|
18
|
+
:min-width 910px
|
19
|
+
:padding 5px 20px
|
18
20
|
:background
|
19
21
|
:color = !navbar_background_color
|
20
22
|
:image url('../../images/navbar_bkg.gif')
|
@@ -31,6 +33,7 @@
|
|
31
33
|
:font-family = !headline_fonts
|
32
34
|
:border-left 1px solid #ccc
|
33
35
|
li
|
36
|
+
:background-image none
|
34
37
|
:border
|
35
38
|
:left 1px solid #fff
|
36
39
|
:right 1px solid #ccc
|
@@ -1,17 +1,19 @@
|
|
1
|
-
span.
|
1
|
+
span.file
|
2
2
|
a
|
3
3
|
:display inline-block
|
4
4
|
:padding-left 20px
|
5
|
-
:background transparent url("../../images/icons/attachment.
|
5
|
+
:background transparent url("../../images/icons/attachment.gif") top left no-repeat
|
6
|
+
a[href^="http:"]
|
7
|
+
:background transparent url("../../images/icons/external.gif") top left no-repeat
|
6
8
|
a[href$=".pdf"]
|
7
|
-
:background transparent url("../../images/icons/page_white_acrobat.
|
9
|
+
:background transparent url("../../images/icons/page_white_acrobat.gif") top left no-repeat
|
8
10
|
a[href$=".zip"], a[href$=".gzip"], a[href$=".rar"], a[href$=".gz"]
|
9
|
-
:background transparent url("../../images/icons/compress.
|
11
|
+
:background transparent url("../../images/icons/compress.gif") top left no-repeat
|
10
12
|
a[href$=".xls"], a[href$=".csv"], a[href$=".xlt"], a[href$=".xlw"], a[href$=".xml"], a[href$=".xlsx"]
|
11
|
-
:background transparent url("../../images/icons/page_white_excel.
|
13
|
+
:background transparent url("../../images/icons/page_white_excel.gif") top left no-repeat
|
12
14
|
a[href$=".txt"], a[href$=".rtf"], a[href$=".doc"], a[href$=".docx"]
|
13
|
-
:background transparent url("../../images/icons/page_white_word.
|
15
|
+
:background transparent url("../../images/icons/page_white_word.gif") top left no-repeat
|
14
16
|
a[href$=".pps"], a[href$=".ppt"], a[href$=".pptx"]
|
15
|
-
:background transparent url("../../images/icons/page_white_powerpoint.
|
17
|
+
:background transparent url("../../images/icons/page_white_powerpoint.gif") top left no-repeat
|
16
18
|
a[href$=".jpg"], a[href$=".jpeg"], a[href$=".png"], a[href$=".gif"], a[href$=".bmp"]
|
17
|
-
:background transparent url("../../images/icons/picture.
|
19
|
+
:background transparent url("../../images/icons/picture.gif") top left no-repeat
|
@@ -6,10 +6,25 @@ body
|
|
6
6
|
|
7
7
|
h2,h3,h4,h5,h6
|
8
8
|
:font-family = !headline_fonts
|
9
|
+
:color = !headline_color
|
9
10
|
:font-weight bold
|
10
11
|
:padding-left 0.1em
|
12
|
+
.alt
|
13
|
+
:font-size 70%
|
14
|
+
:color #aaa
|
15
|
+
|
11
16
|
p, ul
|
12
17
|
:padding-left 0.1em
|
18
|
+
ul
|
19
|
+
+no-bullets
|
20
|
+
:margin-left 0
|
21
|
+
li
|
22
|
+
:padding-left 20px
|
23
|
+
:background transparent url("../../images/icons/bullet_black.gif") center left no-repeat
|
24
|
+
ul.no_bullets
|
25
|
+
li
|
26
|
+
:padding-left 0
|
27
|
+
:background-image none
|
13
28
|
|
14
29
|
a, a:focus, a:visited
|
15
30
|
:color = !link_color
|
@@ -19,3 +34,6 @@ a, a:focus, a:visited
|
|
19
34
|
a:hover
|
20
35
|
:text-decoration none
|
21
36
|
:color = !link_hover_color
|
37
|
+
|
38
|
+
.quiet, small
|
39
|
+
+weak
|
@@ -1,9 +1,10 @@
|
|
1
|
+
@import compass/reset.sass
|
1
2
|
@import blueprint.sass
|
2
|
-
@import blueprint/modules/reset.sass
|
3
3
|
@import blueprint/modules/buttons.sass
|
4
|
+
@import blueprint/modules/liquid.sass
|
4
5
|
@import compass/utilities.sass
|
5
6
|
|
6
|
-
+blueprint-grid
|
7
|
+
+blueprint-liquid-grid
|
7
8
|
|
8
9
|
@import constants.sass
|
9
10
|
@import mixins.sass
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mondo-generators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Tironi
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-02-
|
12
|
+
date: 2010-02-04 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -58,6 +58,7 @@ files:
|
|
58
58
|
- rails_generators/mondo_layout/templates/images/delete.gif
|
59
59
|
- rails_generators/mondo_layout/templates/images/edit.gif
|
60
60
|
- rails_generators/mondo_layout/templates/images/error.gif
|
61
|
+
- rails_generators/mondo_layout/templates/images/help_triangle.gif
|
61
62
|
- rails_generators/mondo_layout/templates/images/navbar_bkg.gif
|
62
63
|
- rails_generators/mondo_layout/templates/images/new.gif
|
63
64
|
- rails_generators/mondo_layout/templates/images/no.gif
|