bootstrap2-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. data/.gitignore +4 -0
  2. data/Gemfile +4 -0
  3. data/README.rdoc +54 -0
  4. data/Rakefile +1 -0
  5. data/app/views/layouts/application.html.erb +21 -0
  6. data/app/views/shared/_search.html.erb +4 -0
  7. data/app/views/shared/_search.html.erb~ +4 -0
  8. data/bootstrap2-rails.gemspec +25 -0
  9. data/lib/bootstrap2-rails.rb +19 -0
  10. data/lib/bootstrap2-rails/bootstrap_helper.rb +24 -0
  11. data/lib/bootstrap2-rails/menu_creator.rb +39 -0
  12. data/lib/bootstrap2-rails/version.rb +3 -0
  13. data/lib/generators/bootstrap/views_generator.rb +23 -0
  14. data/lib/templates/erb/scaffold/_form.html.erb +43 -0
  15. data/lib/templates/erb/scaffold/edit.html.erb +7 -0
  16. data/lib/templates/erb/scaffold/index.html.erb +53 -0
  17. data/lib/templates/erb/scaffold/new.html.erb +7 -0
  18. data/lib/templates/erb/scaffold/show.html.erb +21 -0
  19. data/lib/templates/rails/scaffold_controller/controller.rb +102 -0
  20. data/vendor/assets/images/close.gif +0 -0
  21. data/vendor/assets/images/error.png +0 -0
  22. data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
  23. data/vendor/assets/images/glyphicons-halflings.png +0 -0
  24. data/vendor/assets/images/left_arrow.png +0 -0
  25. data/vendor/assets/images/notice.png +0 -0
  26. data/vendor/assets/images/right_arrow.png +0 -0
  27. data/vendor/assets/images/success.png +0 -0
  28. data/vendor/assets/images/warning.png +0 -0
  29. data/vendor/assets/javascripts/bootstrap.js +1722 -0
  30. data/vendor/assets/javascripts/jquery.toastmessage.js +161 -0
  31. data/vendor/assets/stylesheets/bootstrap.css +3363 -0
  32. data/vendor/assets/stylesheets/jquery.toastmessage.css +142 -0
  33. metadata +88 -0
@@ -0,0 +1,142 @@
1
+ .toast-container {
2
+ width: 280px;
3
+ z-index: 99999;
4
+ }
5
+
6
+
7
+ * html .toast-container {
8
+ position: absolute;
9
+ }
10
+
11
+ .toast-item {
12
+ height: auto;
13
+ background: #333;
14
+ opacity: 0.9;
15
+ -moz-border-radius: 10px;
16
+ -webkit-border-radius: 10px;
17
+ color: #eee;
18
+ padding-top: 20px;
19
+ padding-bottom: 20px;
20
+ padding-left: 6px;
21
+ padding-right: 6px;
22
+ font-family: lucida Grande;
23
+ font-size: 14px;
24
+ border: 2px solid #999;
25
+ display: block;
26
+ position: relative;
27
+ margin: 0 0 12px 0;
28
+ }
29
+
30
+ .toast-item p {
31
+ text-align: left;
32
+ margin-left: 50px;
33
+ }
34
+
35
+ .toast-item-close {
36
+ background:url(close.gif);
37
+ width:22px;
38
+ height:22px;
39
+ position: absolute;
40
+ top:7px;
41
+ right:7px;
42
+ }
43
+
44
+ .toast-item-image {
45
+ width:32px;
46
+ height: 32px;
47
+ margin-left: 10px;
48
+ margin-top: 0px;
49
+ margin-right: 10px;
50
+ float:left;
51
+ }
52
+
53
+ .toast-item-image-notice {
54
+ background:url(notice.png);
55
+ }
56
+
57
+ .toast-item-image-success {
58
+ background:url(success.png);
59
+ }
60
+
61
+ .toast-item-image-warning {
62
+ background:url(warning.png);
63
+ }
64
+
65
+ .toast-item-image-error {
66
+ background:url(error.png);
67
+ }
68
+
69
+
70
+ /**
71
+ * toast types
72
+ *
73
+ * pattern: toast-type-[value]
74
+ * where 'value' is the real value of the plugin option 'type'
75
+ *
76
+ */
77
+ .toast-type-notice {
78
+ color: white;
79
+ }
80
+
81
+ .toast-type-success {
82
+ color: white;
83
+ }
84
+
85
+ .toast-type-warning {
86
+ color: white;
87
+ border-color: #FCBD57;
88
+ }
89
+
90
+ .toast-type-error {
91
+ color: white;
92
+ border-color: #B32B2B;
93
+ }
94
+
95
+ /**
96
+ * positions
97
+ *
98
+ * pattern: toast-position-[value]
99
+ * where 'value' is the real value of the plugin option 'position'
100
+ *
101
+ */
102
+ .toast-position-top-left {
103
+ position: fixed;
104
+ left: 20px;
105
+ top: 20px;
106
+ }
107
+
108
+ .toast-position-top-center {
109
+ position: fixed;
110
+ top: 20px;
111
+ left: 50%;
112
+ margin-left: -140px;
113
+ }
114
+
115
+ .toast-position-top-right {
116
+ position: fixed;
117
+ top: 20px;
118
+ right: 20px;
119
+ }
120
+
121
+ .toast-position-middle-left {
122
+ position: fixed;
123
+ left: 20px;
124
+ top: 50%;
125
+ margin-top: -40px;
126
+ }
127
+
128
+ .toast-position-middle-center {
129
+ position: fixed;
130
+ left: 50%;
131
+ margin-left: -140px;
132
+ margin-top: -40px;
133
+ top: 50%;
134
+ }
135
+
136
+ .toast-position-middle-right {
137
+ position: fixed;
138
+ right: 20px;
139
+ margin-left: -140px;
140
+ margin-top: -40px;
141
+ top: 50%;
142
+ }
metadata ADDED
@@ -0,0 +1,88 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bootstrap2-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Fabio Stapait
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-02-03 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: will_paginate
16
+ requirement: &80901540 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *80901540
25
+ description: This is a scaffold replacement with a Twitter Bootstrap look
26
+ email:
27
+ - stapait@gmail.com
28
+ executables: []
29
+ extensions: []
30
+ extra_rdoc_files: []
31
+ files:
32
+ - .gitignore
33
+ - Gemfile
34
+ - README.rdoc
35
+ - Rakefile
36
+ - app/views/layouts/application.html.erb
37
+ - app/views/shared/_search.html.erb
38
+ - app/views/shared/_search.html.erb~
39
+ - bootstrap2-rails.gemspec
40
+ - lib/bootstrap2-rails.rb
41
+ - lib/bootstrap2-rails/bootstrap_helper.rb
42
+ - lib/bootstrap2-rails/menu_creator.rb
43
+ - lib/bootstrap2-rails/version.rb
44
+ - lib/generators/bootstrap/views_generator.rb
45
+ - lib/templates/erb/scaffold/_form.html.erb
46
+ - lib/templates/erb/scaffold/edit.html.erb
47
+ - lib/templates/erb/scaffold/index.html.erb
48
+ - lib/templates/erb/scaffold/new.html.erb
49
+ - lib/templates/erb/scaffold/show.html.erb
50
+ - lib/templates/rails/scaffold_controller/controller.rb
51
+ - vendor/assets/images/close.gif
52
+ - vendor/assets/images/error.png
53
+ - vendor/assets/images/glyphicons-halflings-white.png
54
+ - vendor/assets/images/glyphicons-halflings.png
55
+ - vendor/assets/images/left_arrow.png
56
+ - vendor/assets/images/notice.png
57
+ - vendor/assets/images/right_arrow.png
58
+ - vendor/assets/images/success.png
59
+ - vendor/assets/images/warning.png
60
+ - vendor/assets/javascripts/bootstrap.js
61
+ - vendor/assets/javascripts/jquery.toastmessage.js
62
+ - vendor/assets/stylesheets/bootstrap.css
63
+ - vendor/assets/stylesheets/jquery.toastmessage.css
64
+ homepage: https://github.com/stapait/bootstrap2-rails
65
+ licenses: []
66
+ post_install_message:
67
+ rdoc_options: []
68
+ require_paths:
69
+ - lib
70
+ required_ruby_version: !ruby/object:Gem::Requirement
71
+ none: false
72
+ requirements:
73
+ - - ! '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ required_rubygems_version: !ruby/object:Gem::Requirement
77
+ none: false
78
+ requirements:
79
+ - - ! '>='
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ requirements: []
83
+ rubyforge_project: bootstrap2-rails
84
+ rubygems_version: 1.8.15
85
+ signing_key:
86
+ specification_version: 3
87
+ summary: This is a scaffold replacement with a Twitter Bootstrap look
88
+ test_files: []