bootstrap_devise_base 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +54 -0
- data/Gemfile.lock +237 -0
- data/Rakefile +7 -0
- data/app/.svn/all-wcprops +5 -0
- data/app/.svn/entries +31 -0
- data/app/assets/images/rails.png +0 -0
- data/app/assets/javascripts/application.js +16 -0
- data/app/assets/javascripts/registrations.js.coffee +3 -0
- data/app/assets/stylesheets/application.css +23 -0
- data/app/assets/stylesheets/bootstrap.scss +29 -0
- data/app/assets/stylesheets/forms.scss +481 -0
- data/app/assets/stylesheets/mixins.scss +220 -0
- data/app/assets/stylesheets/patterns.scss +1061 -0
- data/app/assets/stylesheets/registrations.css.scss +3 -0
- data/app/assets/stylesheets/reset.scss +144 -0
- data/app/assets/stylesheets/scaffolding.scss +144 -0
- data/app/assets/stylesheets/tables.scss +226 -0
- data/app/assets/stylesheets/type.scss +190 -0
- data/app/assets/stylesheets/variables.scss +60 -0
- data/app/controllers/.svn/all-wcprops +11 -0
- data/app/controllers/.svn/entries +62 -0
- data/app/controllers/.svn/text-base/assets_offline_controller.rb.svn-base +85 -0
- data/app/controllers/application_controller.rb +6 -0
- data/app/controllers/authentications_controller.rb +34 -0
- data/app/controllers/home_controller.rb +83 -0
- data/app/controllers/registrations_controller.rb +18 -0
- data/app/helpers/application_helper.rb +2 -0
- data/app/helpers/authentications_helper.rb +2 -0
- data/app/helpers/devise_helper.rb +29 -0
- data/app/helpers/home_helper.rb +2 -0
- data/app/helpers/registrations_helper.rb +2 -0
- data/app/mailers/.gitkeep +0 -0
- data/app/models/.gitkeep +0 -0
- data/app/models/authentication.rb +3 -0
- data/app/models/user.rb +20 -0
- data/app/views/authentications/_form.html.erb +16 -0
- data/app/views/authentications/edit.html.erb +8 -0
- data/app/views/authentications/index.html.erb +22 -0
- data/app/views/authentications/new.html.erb +5 -0
- data/app/views/authentications/show.html.erb +20 -0
- data/app/views/devise/confirmations/new.html.erb +12 -0
- data/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
- data/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
- data/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
- data/app/views/devise/passwords/edit.html.erb +16 -0
- data/app/views/devise/passwords/new.html.erb +12 -0
- data/app/views/devise/sessions/new.html.erb +58 -0
- data/app/views/devise/shared/_links.erb +25 -0
- data/app/views/devise/unlocks/new.html.erb +12 -0
- data/app/views/home/_form.html.erb +17 -0
- data/app/views/home/edit.html.erb +6 -0
- data/app/views/home/index.html.erb +21 -0
- data/app/views/home/new.html.erb +5 -0
- data/app/views/home/show.html.erb +5 -0
- data/app/views/layouts/application.html.erb +112 -0
- data/app/views/registrations/edit.html.erb +25 -0
- data/app/views/registrations/new.html.erb +47 -0
- data/bootstrap_devise_base.gemspec +20 -0
- data/config.ru +4 -0
- data/config/.svn/all-wcprops +11 -0
- data/config/.svn/entries +62 -0
- data/config/.svn/text-base/routes.rb.svn-base +3 -0
- data/config/application.rb +48 -0
- data/config/boot.rb +6 -0
- data/config/cucumber.yml +8 -0
- data/config/database.yml +45 -0
- data/config/environment.rb +5 -0
- data/config/environments/development.rb +30 -0
- data/config/environments/production.rb +60 -0
- data/config/environments/test.rb +39 -0
- data/config/initializers/backtrace_silencers.rb +7 -0
- data/config/initializers/devise.rb +208 -0
- data/config/initializers/inflections.rb +10 -0
- data/config/initializers/mime_types.rb +5 -0
- data/config/initializers/omniauth.rb +3 -0
- data/config/initializers/secret_token.rb +7 -0
- data/config/initializers/session_store.rb +8 -0
- data/config/initializers/wrap_parameters.rb +14 -0
- data/config/locales/devise.en.yml +58 -0
- data/config/locales/en.yml +13 -0
- data/config/routes.rb +64 -0
- data/db/migrate/20111121201415_create_users.rb +8 -0
- data/db/migrate/20111121201511_add_devise_to_users.rb +31 -0
- data/db/migrate/20111127100158_create_authentications.rb +14 -0
- data/db/schema.rb +42 -0
- data/db/seeds.rb +7 -0
- data/doc/README_FOR_APP +2 -0
- data/features/manage_sign_ups.feature +28 -0
- data/features/step_definitions/sign_up_steps.rb +27 -0
- data/features/step_definitions/web_steps.rb +254 -0
- data/features/support/env.rb +56 -0
- data/features/support/paths.rb +39 -0
- data/features/support/selectors.rb +39 -0
- data/init.rb +1 -0
- data/lib/.svn/all-wcprops +11 -0
- data/lib/.svn/entries +65 -0
- data/lib/.svn/text-base/assets_offline.rb.svn-base +6 -0
- data/lib/assets/.gitkeep +0 -0
- data/lib/bootstap_devise_base.rb~ +6 -0
- data/lib/bootstrap_devise_base.rb +6 -0
- data/lib/bootstrap_devise_base/.svn/all-wcprops +11 -0
- data/lib/bootstrap_devise_base/.svn/entries +62 -0
- data/lib/bootstrap_devise_base/.svn/text-base/version.rb.svn-base +3 -0
- data/lib/bootstrap_devise_base/version.rb +3 -0
- data/lib/tasks/.gitkeep +0 -0
- data/lib/tasks/cucumber.rake +65 -0
- data/log/.gitkeep +0 -0
- data/log/development.log +977 -0
- data/log/production.log +44 -0
- data/log/test.log +799 -0
- data/public/404.html +26 -0
- data/public/422.html +26 -0
- data/public/500.html +26 -0
- data/public/assets/application-902e25928a309d43246c45cd2facd7d3.js +19 -0
- data/public/assets/application-902e25928a309d43246c45cd2facd7d3.js.gz +0 -0
- data/public/assets/application-a5e3fc47c863d5a64c7380ed33b187b6.css +1 -0
- data/public/assets/application-a5e3fc47c863d5a64c7380ed33b187b6.css.gz +0 -0
- data/public/assets/application.css +1 -0
- data/public/assets/application.css.gz +0 -0
- data/public/assets/application.js +19 -0
- data/public/assets/application.js.gz +0 -0
- data/public/assets/manifest.yml +4 -0
- data/public/assets/rails-e4b51606cd77fda2615e7439907bfc92.png +0 -0
- data/public/assets/rails.png +0 -0
- data/public/favicon.ico +0 -0
- data/public/robots.txt +5 -0
- data/script/cucumber +10 -0
- data/script/rails +6 -0
- data/test/fixtures/.gitkeep +0 -0
- data/test/functional/.gitkeep +0 -0
- data/test/integration/.gitkeep +0 -0
- data/test/performance/browsing_test.rb +12 -0
- data/test/test_helper.rb +13 -0
- data/test/unit/.gitkeep +0 -0
- data/vendor/assets/stylesheets/.gitkeep +0 -0
- data/vendor/plugins/.gitkeep +0 -0
- metadata +181 -0
data/Gemfile
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
source 'http://rubygems.org'
|
2
|
+
|
3
|
+
gem 'rails', '3.1.1'
|
4
|
+
|
5
|
+
# Bundle edge Rails instead:
|
6
|
+
# gem 'rails', :git => 'git://github.com/rails/rails.git'
|
7
|
+
|
8
|
+
gem 'mysql2', '0.3.10'
|
9
|
+
gem 'css-bootstrap-rails'
|
10
|
+
gem 'devise'
|
11
|
+
gem 'nifty-generators'
|
12
|
+
gem 'omniauth'
|
13
|
+
gem 'omniauth-twitter'
|
14
|
+
gem 'omniauth-facebook'
|
15
|
+
gem 'omniauth-github'
|
16
|
+
|
17
|
+
|
18
|
+
# Gems used only for assets and not required
|
19
|
+
# in production environments by default.
|
20
|
+
group :assets do
|
21
|
+
gem 'sass-rails', '~> 3.1.4'
|
22
|
+
gem 'coffee-rails', '~> 3.1.1'
|
23
|
+
gem 'uglifier', '>= 1.0.3'
|
24
|
+
gem 'less'
|
25
|
+
end
|
26
|
+
|
27
|
+
gem 'jquery-rails'
|
28
|
+
gem 'rake', '0.9.2'
|
29
|
+
# To use ActiveModel has_secure_password
|
30
|
+
# gem 'bcrypt-ruby', '~> 3.0.0'
|
31
|
+
|
32
|
+
# Use unicorn as the web server
|
33
|
+
# gem 'unicorn'
|
34
|
+
|
35
|
+
# Deploy with Capistrano
|
36
|
+
# gem 'capistrano'
|
37
|
+
|
38
|
+
# To use debugger
|
39
|
+
# gem 'ruby-debug19', :require => 'ruby-debug'
|
40
|
+
|
41
|
+
group :test do
|
42
|
+
# Pretty printed test output
|
43
|
+
gem 'turn', :require => false
|
44
|
+
end
|
45
|
+
gem "mocha", :group => :test
|
46
|
+
|
47
|
+
group :development,:test do
|
48
|
+
gem 'minitest'
|
49
|
+
gem 'rspec-rails', '>= 2.8.0.rc1'
|
50
|
+
gem 'factory_girl_rails', '>= 1.4.0'
|
51
|
+
gem 'capybara', '>= 1.1.2'
|
52
|
+
gem 'cucumber-rails', '1.2.0'
|
53
|
+
gem 'database_cleaner'
|
54
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,237 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
actionmailer (3.1.1)
|
5
|
+
actionpack (= 3.1.1)
|
6
|
+
mail (~> 2.3.0)
|
7
|
+
actionpack (3.1.1)
|
8
|
+
activemodel (= 3.1.1)
|
9
|
+
activesupport (= 3.1.1)
|
10
|
+
builder (~> 3.0.0)
|
11
|
+
erubis (~> 2.7.0)
|
12
|
+
i18n (~> 0.6)
|
13
|
+
rack (~> 1.3.2)
|
14
|
+
rack-cache (~> 1.1)
|
15
|
+
rack-mount (~> 0.8.2)
|
16
|
+
rack-test (~> 0.6.1)
|
17
|
+
sprockets (~> 2.0.2)
|
18
|
+
activemodel (3.1.1)
|
19
|
+
activesupport (= 3.1.1)
|
20
|
+
builder (~> 3.0.0)
|
21
|
+
i18n (~> 0.6)
|
22
|
+
activerecord (3.1.1)
|
23
|
+
activemodel (= 3.1.1)
|
24
|
+
activesupport (= 3.1.1)
|
25
|
+
arel (~> 2.2.1)
|
26
|
+
tzinfo (~> 0.3.29)
|
27
|
+
activeresource (3.1.1)
|
28
|
+
activemodel (= 3.1.1)
|
29
|
+
activesupport (= 3.1.1)
|
30
|
+
activesupport (3.1.1)
|
31
|
+
multi_json (~> 1.0)
|
32
|
+
addressable (2.2.6)
|
33
|
+
ansi (1.4.1)
|
34
|
+
arel (2.2.1)
|
35
|
+
bcrypt-ruby (3.0.1)
|
36
|
+
builder (3.0.0)
|
37
|
+
capybara (1.1.2)
|
38
|
+
mime-types (>= 1.16)
|
39
|
+
nokogiri (>= 1.3.3)
|
40
|
+
rack (>= 1.0.0)
|
41
|
+
rack-test (>= 0.5.4)
|
42
|
+
selenium-webdriver (~> 2.0)
|
43
|
+
xpath (~> 0.1.4)
|
44
|
+
childprocess (0.2.3)
|
45
|
+
ffi (~> 1.0.6)
|
46
|
+
coffee-rails (3.1.1)
|
47
|
+
coffee-script (>= 2.2.0)
|
48
|
+
railties (~> 3.1.0)
|
49
|
+
coffee-script (2.2.0)
|
50
|
+
coffee-script-source
|
51
|
+
execjs
|
52
|
+
coffee-script-source (1.1.3)
|
53
|
+
commonjs (0.2.0)
|
54
|
+
therubyracer (~> 0.9.9)
|
55
|
+
css-bootstrap-rails (0.0.6)
|
56
|
+
railties (~> 3.1)
|
57
|
+
thor (~> 0.14)
|
58
|
+
cucumber (1.1.3)
|
59
|
+
builder (>= 2.1.2)
|
60
|
+
diff-lcs (>= 1.1.2)
|
61
|
+
gherkin (~> 2.6.7)
|
62
|
+
json (>= 1.4.6)
|
63
|
+
term-ansicolor (>= 1.0.6)
|
64
|
+
cucumber-rails (1.2.0)
|
65
|
+
capybara (>= 1.1.1)
|
66
|
+
cucumber (>= 1.1.1)
|
67
|
+
nokogiri (>= 1.5.0)
|
68
|
+
database_cleaner (0.7.0)
|
69
|
+
devise (1.5.2)
|
70
|
+
bcrypt-ruby (~> 3.0)
|
71
|
+
orm_adapter (~> 0.0.3)
|
72
|
+
warden (~> 1.1)
|
73
|
+
diff-lcs (1.1.3)
|
74
|
+
erubis (2.7.0)
|
75
|
+
execjs (1.2.9)
|
76
|
+
multi_json (~> 1.0)
|
77
|
+
factory_girl (2.3.2)
|
78
|
+
activesupport
|
79
|
+
factory_girl_rails (1.4.0)
|
80
|
+
factory_girl (~> 2.3.0)
|
81
|
+
railties (>= 3.0.0)
|
82
|
+
faraday (0.7.5)
|
83
|
+
addressable (~> 2.2.6)
|
84
|
+
multipart-post (~> 1.1.3)
|
85
|
+
rack (< 2, >= 1.1.0)
|
86
|
+
ffi (1.0.11)
|
87
|
+
gherkin (2.6.8)
|
88
|
+
json (>= 1.4.6)
|
89
|
+
hashie (1.2.0)
|
90
|
+
hike (1.2.1)
|
91
|
+
i18n (0.6.0)
|
92
|
+
jquery-rails (1.0.19)
|
93
|
+
railties (~> 3.0)
|
94
|
+
thor (~> 0.14)
|
95
|
+
json (1.6.2)
|
96
|
+
less (2.0.8)
|
97
|
+
commonjs (~> 0.2.0)
|
98
|
+
therubyracer (~> 0.9.9)
|
99
|
+
libv8 (3.3.10.4)
|
100
|
+
mail (2.3.0)
|
101
|
+
i18n (>= 0.4.0)
|
102
|
+
mime-types (~> 1.16)
|
103
|
+
treetop (~> 1.4.8)
|
104
|
+
metaclass (0.0.1)
|
105
|
+
mime-types (1.17.2)
|
106
|
+
minitest (2.8.1)
|
107
|
+
mocha (0.10.0)
|
108
|
+
metaclass (~> 0.0.1)
|
109
|
+
multi_json (1.0.4)
|
110
|
+
multipart-post (1.1.4)
|
111
|
+
mysql2 (0.3.10)
|
112
|
+
nifty-generators (0.4.6)
|
113
|
+
nokogiri (1.5.0)
|
114
|
+
oauth (0.4.5)
|
115
|
+
oauth2 (0.5.1)
|
116
|
+
faraday (~> 0.7.4)
|
117
|
+
multi_json (~> 1.0.3)
|
118
|
+
omniauth (1.0.1)
|
119
|
+
hashie (~> 1.2)
|
120
|
+
rack
|
121
|
+
omniauth-facebook (1.0.0)
|
122
|
+
omniauth-oauth2 (~> 1.0.0)
|
123
|
+
omniauth-github (1.0.0)
|
124
|
+
omniauth (~> 1.0)
|
125
|
+
omniauth-oauth2 (~> 1.0)
|
126
|
+
omniauth-oauth (1.0.0)
|
127
|
+
oauth
|
128
|
+
omniauth (~> 1.0)
|
129
|
+
omniauth-oauth2 (1.0.0)
|
130
|
+
oauth2 (~> 0.5.0)
|
131
|
+
omniauth (~> 1.0)
|
132
|
+
omniauth-twitter (0.0.7)
|
133
|
+
omniauth-oauth (~> 1.0)
|
134
|
+
orm_adapter (0.0.5)
|
135
|
+
polyglot (0.3.3)
|
136
|
+
rack (1.3.5)
|
137
|
+
rack-cache (1.1)
|
138
|
+
rack (>= 0.4)
|
139
|
+
rack-mount (0.8.3)
|
140
|
+
rack (>= 1.0.0)
|
141
|
+
rack-ssl (1.3.2)
|
142
|
+
rack
|
143
|
+
rack-test (0.6.1)
|
144
|
+
rack (>= 1.0)
|
145
|
+
rails (3.1.1)
|
146
|
+
actionmailer (= 3.1.1)
|
147
|
+
actionpack (= 3.1.1)
|
148
|
+
activerecord (= 3.1.1)
|
149
|
+
activeresource (= 3.1.1)
|
150
|
+
activesupport (= 3.1.1)
|
151
|
+
bundler (~> 1.0)
|
152
|
+
railties (= 3.1.1)
|
153
|
+
railties (3.1.1)
|
154
|
+
actionpack (= 3.1.1)
|
155
|
+
activesupport (= 3.1.1)
|
156
|
+
rack-ssl (~> 1.3.2)
|
157
|
+
rake (>= 0.8.7)
|
158
|
+
rdoc (~> 3.4)
|
159
|
+
thor (~> 0.14.6)
|
160
|
+
rake (0.9.2)
|
161
|
+
rdoc (3.11)
|
162
|
+
json (~> 1.4)
|
163
|
+
rspec (2.8.0.rc1)
|
164
|
+
rspec-core (= 2.8.0.rc1)
|
165
|
+
rspec-expectations (= 2.8.0.rc1)
|
166
|
+
rspec-mocks (= 2.8.0.rc1)
|
167
|
+
rspec-core (2.8.0.rc1)
|
168
|
+
rspec-expectations (2.8.0.rc1)
|
169
|
+
diff-lcs (~> 1.1.2)
|
170
|
+
rspec-mocks (2.8.0.rc1)
|
171
|
+
rspec-rails (2.8.0.rc1)
|
172
|
+
actionpack (~> 3.0)
|
173
|
+
activesupport (~> 3.0)
|
174
|
+
railties (~> 3.0)
|
175
|
+
rspec (= 2.8.0.rc1)
|
176
|
+
rubyzip (0.9.5)
|
177
|
+
sass (3.1.11)
|
178
|
+
sass-rails (3.1.5)
|
179
|
+
actionpack (~> 3.1.0)
|
180
|
+
railties (~> 3.1.0)
|
181
|
+
sass (~> 3.1.10)
|
182
|
+
tilt (~> 1.3.2)
|
183
|
+
selenium-webdriver (2.14.0)
|
184
|
+
childprocess (>= 0.2.1)
|
185
|
+
ffi (~> 1.0.9)
|
186
|
+
multi_json (~> 1.0.4)
|
187
|
+
rubyzip
|
188
|
+
sprockets (2.0.3)
|
189
|
+
hike (~> 1.2)
|
190
|
+
rack (~> 1.0)
|
191
|
+
tilt (!= 1.3.0, ~> 1.1)
|
192
|
+
term-ansicolor (1.0.7)
|
193
|
+
therubyracer (0.9.9)
|
194
|
+
libv8 (~> 3.3.10)
|
195
|
+
thor (0.14.6)
|
196
|
+
tilt (1.3.3)
|
197
|
+
treetop (1.4.10)
|
198
|
+
polyglot
|
199
|
+
polyglot (>= 0.3.1)
|
200
|
+
turn (0.8.3)
|
201
|
+
ansi
|
202
|
+
tzinfo (0.3.31)
|
203
|
+
uglifier (1.1.0)
|
204
|
+
execjs (>= 0.3.0)
|
205
|
+
multi_json (>= 1.0.2)
|
206
|
+
warden (1.1.0)
|
207
|
+
rack (>= 1.0)
|
208
|
+
xpath (0.1.4)
|
209
|
+
nokogiri (~> 1.3)
|
210
|
+
|
211
|
+
PLATFORMS
|
212
|
+
ruby
|
213
|
+
|
214
|
+
DEPENDENCIES
|
215
|
+
capybara (>= 1.1.2)
|
216
|
+
coffee-rails (~> 3.1.1)
|
217
|
+
css-bootstrap-rails
|
218
|
+
cucumber-rails (= 1.2.0)
|
219
|
+
database_cleaner
|
220
|
+
devise
|
221
|
+
factory_girl_rails (>= 1.4.0)
|
222
|
+
jquery-rails
|
223
|
+
less
|
224
|
+
minitest
|
225
|
+
mocha
|
226
|
+
mysql2 (= 0.3.10)
|
227
|
+
nifty-generators
|
228
|
+
omniauth
|
229
|
+
omniauth-facebook
|
230
|
+
omniauth-github
|
231
|
+
omniauth-twitter
|
232
|
+
rails (= 3.1.1)
|
233
|
+
rake (= 0.9.2)
|
234
|
+
rspec-rails (>= 2.8.0.rc1)
|
235
|
+
sass-rails (~> 3.1.4)
|
236
|
+
turn
|
237
|
+
uglifier (>= 1.0.3)
|
data/Rakefile
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
3
|
+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
4
|
+
|
5
|
+
require File.expand_path('../config/application', __FILE__)
|
6
|
+
|
7
|
+
Template::Application.load_tasks
|
data/app/.svn/entries
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
10
|
2
|
+
|
3
|
+
dir
|
4
|
+
3734
|
5
|
+
https://svn.torex.com/svn/TorexNG/trunk/gems/assets_offline/app
|
6
|
+
https://svn.torex.com/svn/TorexNG
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
2011-12-02T15:46:33.442319Z
|
11
|
+
3734
|
12
|
+
Anthony.Broome
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
45178cb0-7fed-444c-b58d-06e1424a9ccb
|
28
|
+
|
29
|
+
controllers
|
30
|
+
dir
|
31
|
+
|
Binary file
|
@@ -0,0 +1,16 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into including all the files listed below.
|
2
|
+
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
|
3
|
+
// be included in the compiled file accessible from http://example.com/assets/application.js
|
4
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
5
|
+
// the compiled file.
|
6
|
+
//
|
7
|
+
//= require jquery
|
8
|
+
//= require jquery_ujs
|
9
|
+
//= require_tree .
|
10
|
+
//= require bootstrap/alerts
|
11
|
+
//= require bootstrap/dropdown
|
12
|
+
//= require bootstrap/modal
|
13
|
+
//= require bootstrap/popover
|
14
|
+
//= require bootstrap/scrollspy
|
15
|
+
//= require bootstrap/tabs
|
16
|
+
//= require bootstrap/twipsy
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll automatically include all the stylesheets available in this directory
|
3
|
+
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
|
4
|
+
* the top of the compiled file, but it's generally better to create a new file per style scope.
|
5
|
+
*= require_self
|
6
|
+
*= require_tree .
|
7
|
+
*= require bootstrap
|
8
|
+
*= require variables
|
9
|
+
*= require forms
|
10
|
+
*= require mixins
|
11
|
+
*= require patterns
|
12
|
+
*= require reset
|
13
|
+
*= require scaffolding
|
14
|
+
*= require tables
|
15
|
+
*= require type
|
16
|
+
|
17
|
+
*/
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
@@ -0,0 +1,29 @@
|
|
1
|
+
/*!
|
2
|
+
* Bootstrap v1.3.0
|
3
|
+
*
|
4
|
+
* Copyright 2011 Twitter, Inc
|
5
|
+
* Licensed under the Apache License v2.0
|
6
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
*
|
8
|
+
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
9
|
+
*
|
10
|
+
* Converted to Sass by @johnwlong.
|
11
|
+
*
|
12
|
+
* Date: @DATE
|
13
|
+
*/
|
14
|
+
|
15
|
+
// CSS Reset
|
16
|
+
@import "reset.scss";
|
17
|
+
|
18
|
+
// Core
|
19
|
+
@import "variables.scss";
|
20
|
+
@import "mixins.scss";
|
21
|
+
|
22
|
+
// Grid system and page structure
|
23
|
+
@import "scaffolding.scss";
|
24
|
+
|
25
|
+
// Styled patterns and elements
|
26
|
+
@import "type.scss";
|
27
|
+
@import "forms.scss";
|
28
|
+
@import "tables.scss";
|
29
|
+
@import "patterns.scss";
|
@@ -0,0 +1,481 @@
|
|
1
|
+
/* Forms.scss
|
2
|
+
* Base styles for various input types, form layouts, and states
|
3
|
+
* ------------------------------------------------------------- */
|
4
|
+
|
5
|
+
|
6
|
+
// FORM STYLES
|
7
|
+
// -----------
|
8
|
+
|
9
|
+
@import "variables.scss";
|
10
|
+
@import "mixins.scss";
|
11
|
+
|
12
|
+
form {
|
13
|
+
margin-bottom: $baseline;
|
14
|
+
}
|
15
|
+
|
16
|
+
// Groups of fields with labels on top (legends)
|
17
|
+
fieldset {
|
18
|
+
margin-bottom: $baseline;
|
19
|
+
padding-top: $baseline;
|
20
|
+
legend {
|
21
|
+
display: block;
|
22
|
+
padding-left: 150px;
|
23
|
+
font-size: $basefont * 1.5;
|
24
|
+
line-height: 1;
|
25
|
+
color: $grayDark;
|
26
|
+
*padding: 0 0 5px 145px; /* IE6-7 */
|
27
|
+
*line-height: 1.5; /* IE6-7 */
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
// Parent element that clears floats and wraps labels and fields together
|
32
|
+
form .clearfix {
|
33
|
+
margin-bottom: $baseline;
|
34
|
+
@include clearfix();
|
35
|
+
}
|
36
|
+
|
37
|
+
// Set font for forms
|
38
|
+
label,
|
39
|
+
input,
|
40
|
+
select,
|
41
|
+
textarea {
|
42
|
+
@include sans-serif-font(normal,13px,normal);
|
43
|
+
}
|
44
|
+
|
45
|
+
// Float labels left
|
46
|
+
label {
|
47
|
+
padding-top: 6px;
|
48
|
+
font-size: $basefont;
|
49
|
+
line-height: $baseline;
|
50
|
+
float: left;
|
51
|
+
width: 130px;
|
52
|
+
text-align: right;
|
53
|
+
color: $grayDark;
|
54
|
+
}
|
55
|
+
|
56
|
+
// Shift over the inside div to align all label's relevant content
|
57
|
+
form .input {
|
58
|
+
margin-left: 150px;
|
59
|
+
}
|
60
|
+
|
61
|
+
// Checkboxs and radio buttons
|
62
|
+
input[type=checkbox],
|
63
|
+
input[type=radio] {
|
64
|
+
cursor: pointer;
|
65
|
+
}
|
66
|
+
|
67
|
+
// Inputs, Textareas, Selects
|
68
|
+
input,
|
69
|
+
textarea,
|
70
|
+
select,
|
71
|
+
.uneditable-input {
|
72
|
+
display: inline-block;
|
73
|
+
width: 210px;
|
74
|
+
height: $baseline;
|
75
|
+
padding: 4px;
|
76
|
+
font-size: $basefont;
|
77
|
+
line-height: $baseline;
|
78
|
+
color: $gray;
|
79
|
+
border: 1px solid #ccc;
|
80
|
+
@include border-radius(3px);
|
81
|
+
}
|
82
|
+
|
83
|
+
// remove padding from select
|
84
|
+
select {
|
85
|
+
padding: initial;
|
86
|
+
}
|
87
|
+
|
88
|
+
// mini reset for non-html5 file types
|
89
|
+
input[type=checkbox],
|
90
|
+
input[type=radio] {
|
91
|
+
width: auto;
|
92
|
+
height: auto;
|
93
|
+
padding: 0;
|
94
|
+
margin: 3px 0;
|
95
|
+
*margin-top: 0; /* IE6-7 */
|
96
|
+
line-height: normal;
|
97
|
+
border: none;
|
98
|
+
}
|
99
|
+
|
100
|
+
input[type=file] {
|
101
|
+
background-color: $white;
|
102
|
+
padding: initial;
|
103
|
+
border: initial;
|
104
|
+
line-height: initial;
|
105
|
+
@include box-shadow(none);
|
106
|
+
}
|
107
|
+
|
108
|
+
input[type=button],
|
109
|
+
input[type=reset],
|
110
|
+
input[type=submit] {
|
111
|
+
width: auto;
|
112
|
+
height: auto;
|
113
|
+
}
|
114
|
+
|
115
|
+
select,
|
116
|
+
input[type=file] {
|
117
|
+
height: $baseline * 1.5; // In IE7, the height of the select element cannot be changed by height, only font-size
|
118
|
+
*height: auto; // Reset for IE7
|
119
|
+
line-height: $baseline * 1.5;
|
120
|
+
*margin-top: 4px; /* For IE7, add top margin to align select with labels */
|
121
|
+
}
|
122
|
+
|
123
|
+
// Make multiple select elements height not fixed
|
124
|
+
select[multiple] {
|
125
|
+
height: inherit;
|
126
|
+
background-color: $white; // Fixes Chromium bug of unreadable items
|
127
|
+
}
|
128
|
+
|
129
|
+
textarea {
|
130
|
+
height: auto;
|
131
|
+
}
|
132
|
+
|
133
|
+
// For text that needs to appear as an input but should not be an input
|
134
|
+
.uneditable-input {
|
135
|
+
background-color: $white;
|
136
|
+
display: block;
|
137
|
+
border-color: #eee;
|
138
|
+
@include box-shadow(inset 0 1px 2px rgba(0,0,0,.025));
|
139
|
+
cursor: not-allowed;
|
140
|
+
}
|
141
|
+
|
142
|
+
// Placeholder text gets special styles; can't be bundled together though for some reason
|
143
|
+
:-moz-placeholder {
|
144
|
+
color: $grayLight;
|
145
|
+
}
|
146
|
+
::-webkit-input-placeholder {
|
147
|
+
color: $grayLight;
|
148
|
+
}
|
149
|
+
|
150
|
+
// Focus states
|
151
|
+
input,
|
152
|
+
textarea {
|
153
|
+
$transition: border linear .2s, box-shadow linear .2s;
|
154
|
+
@include transition($transition);
|
155
|
+
@include box-shadow(inset 0 1px 3px rgba(0,0,0,.1));
|
156
|
+
}
|
157
|
+
input:focus,
|
158
|
+
textarea:focus {
|
159
|
+
outline: 0;
|
160
|
+
border-color: rgba(82,168,236,.8);
|
161
|
+
$shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);
|
162
|
+
@include box-shadow($shadow);
|
163
|
+
}
|
164
|
+
input[type=file]:focus,
|
165
|
+
input[type=checkbox]:focus,
|
166
|
+
select:focus {
|
167
|
+
@include box-shadow(none); // override for file inputs
|
168
|
+
outline: 1px dotted #666; // Select elements don't get box-shadow styles, so instead we do outline
|
169
|
+
}
|
170
|
+
|
171
|
+
// FORM FIELD FEEDBACK STATES
|
172
|
+
// --------------------------
|
173
|
+
|
174
|
+
// Mixin for form field states
|
175
|
+
@mixin formFieldState($textColor: #555, $borderColor: #ccc, $backgroundColor: #f5f5f5) {
|
176
|
+
// Set the text color
|
177
|
+
> label,
|
178
|
+
.help-block,
|
179
|
+
.help-inline {
|
180
|
+
color: $textColor;
|
181
|
+
}
|
182
|
+
// Style inputs accordingly
|
183
|
+
input,
|
184
|
+
textarea {
|
185
|
+
color: $textColor;
|
186
|
+
border-color: $borderColor;
|
187
|
+
&:focus {
|
188
|
+
border-color: darken($borderColor, 10%);
|
189
|
+
@include box-shadow(0 0 6px lighten($borderColor, 20%));
|
190
|
+
}
|
191
|
+
}
|
192
|
+
// Give a small background color for input-prepend/-append
|
193
|
+
.input-prepend .add-on,
|
194
|
+
.input-append .add-on {
|
195
|
+
color: $textColor;
|
196
|
+
background-color: $backgroundColor;
|
197
|
+
border-color: $textColor;
|
198
|
+
}
|
199
|
+
}
|
200
|
+
// Error
|
201
|
+
form .clearfix.error {
|
202
|
+
@include formFieldState(#b94a48, #ee5f5b, lighten(#ee5f5b, 30%));
|
203
|
+
}
|
204
|
+
// Warning
|
205
|
+
form .clearfix.warning {
|
206
|
+
@include formFieldState(#c09853, #ccae64, lighten(#CCAE64, 5%));
|
207
|
+
}
|
208
|
+
// Success
|
209
|
+
form .clearfix.success {
|
210
|
+
@include formFieldState(#468847, #57a957, lighten(#57a957, 30%));
|
211
|
+
}
|
212
|
+
|
213
|
+
|
214
|
+
// Form element sizes
|
215
|
+
// TODO v2: remove duplication here and just stick to .input-[size] in light of adding .spanN sizes
|
216
|
+
.input-mini,
|
217
|
+
input.mini,
|
218
|
+
textarea.mini,
|
219
|
+
select.mini {
|
220
|
+
width: 60px;
|
221
|
+
}
|
222
|
+
.input-small,
|
223
|
+
input.small,
|
224
|
+
textarea.small,
|
225
|
+
select.small {
|
226
|
+
width: 90px;
|
227
|
+
}
|
228
|
+
.input-medium,
|
229
|
+
input.medium,
|
230
|
+
textarea.medium,
|
231
|
+
select.medium {
|
232
|
+
width: 150px;
|
233
|
+
}
|
234
|
+
.input-large,
|
235
|
+
input.large,
|
236
|
+
textarea.large,
|
237
|
+
select.large {
|
238
|
+
width: 210px;
|
239
|
+
}
|
240
|
+
.input-xlarge,
|
241
|
+
input.xlarge,
|
242
|
+
textarea.xlarge,
|
243
|
+
select.xlarge {
|
244
|
+
width: 270px;
|
245
|
+
}
|
246
|
+
.input-xxlarge,
|
247
|
+
input.xxlarge,
|
248
|
+
textarea.xxlarge,
|
249
|
+
select.xxlarge {
|
250
|
+
width: 530px;
|
251
|
+
}
|
252
|
+
textarea.xxlarge {
|
253
|
+
overflow-y: auto;
|
254
|
+
}
|
255
|
+
|
256
|
+
// Grid style input sizes
|
257
|
+
// This is a duplication of the main grid .columns() mixin, but subtracts 10px to account for input padding and border
|
258
|
+
@mixin formColumns($columnSpan: 1 ) {
|
259
|
+
display: inline-block;
|
260
|
+
float: none;
|
261
|
+
width: (($gridColumnWidth) * $columnSpan) + ($gridGutterWidth * ($columnSpan - 1)) - 10;
|
262
|
+
margin-left: 0;
|
263
|
+
|
264
|
+
}
|
265
|
+
input,
|
266
|
+
textarea {
|
267
|
+
// Default columns
|
268
|
+
&.span1 { @include formColumns(1); }
|
269
|
+
&.span2 { @include formColumns(2); }
|
270
|
+
&.span3 { @include formColumns(3); }
|
271
|
+
&.span4 { @include formColumns(4); }
|
272
|
+
&.span5 { @include formColumns(5); }
|
273
|
+
&.span6 { @include formColumns(6); }
|
274
|
+
&.span7 { @include formColumns(7); }
|
275
|
+
&.span8 { @include formColumns(8); }
|
276
|
+
&.span9 { @include formColumns(9); }
|
277
|
+
&.span10 { @include formColumns(10); }
|
278
|
+
&.span11 { @include formColumns(11); }
|
279
|
+
&.span12 { @include formColumns(12); }
|
280
|
+
&.span13 { @include formColumns(13); }
|
281
|
+
&.span14 { @include formColumns(14); }
|
282
|
+
&.span15 { @include formColumns(15); }
|
283
|
+
&.span16 { @include formColumns(16); }
|
284
|
+
}
|
285
|
+
|
286
|
+
// Disabled and read-only inputs
|
287
|
+
input[disabled],
|
288
|
+
select[disabled],
|
289
|
+
textarea[disabled],
|
290
|
+
input[readonly],
|
291
|
+
select[readonly],
|
292
|
+
textarea[readonly] {
|
293
|
+
background-color: #f5f5f5;
|
294
|
+
border-color: #ddd;
|
295
|
+
cursor: not-allowed;
|
296
|
+
}
|
297
|
+
|
298
|
+
// Actions (the buttons)
|
299
|
+
.actions {
|
300
|
+
background: #f5f5f5;
|
301
|
+
margin-top: $baseline;
|
302
|
+
margin-bottom: $baseline;
|
303
|
+
padding: ($baseline - 1) 20px $baseline 150px;
|
304
|
+
border-top: 1px solid #ddd;
|
305
|
+
@include border-radius(0 0 3px 3px);
|
306
|
+
.secondary-action {
|
307
|
+
float: right;
|
308
|
+
a {
|
309
|
+
line-height: 30px;
|
310
|
+
&:hover {
|
311
|
+
text-decoration: underline;
|
312
|
+
}
|
313
|
+
}
|
314
|
+
}
|
315
|
+
}
|
316
|
+
|
317
|
+
// Help Text
|
318
|
+
.help-inline,
|
319
|
+
.help-block {
|
320
|
+
font-size: $basefont;
|
321
|
+
line-height: $baseline;
|
322
|
+
color: $grayLight;
|
323
|
+
}
|
324
|
+
.help-inline {
|
325
|
+
padding-left: 5px;
|
326
|
+
*position: relative; /* IE6-7 */
|
327
|
+
*top: -5px; /* IE6-7 */
|
328
|
+
}
|
329
|
+
|
330
|
+
// Big blocks of help text
|
331
|
+
.help-block {
|
332
|
+
display: block;
|
333
|
+
max-width: 600px;
|
334
|
+
}
|
335
|
+
|
336
|
+
// Inline Fields (input fields that appear as inline objects
|
337
|
+
.inline-inputs {
|
338
|
+
color: $gray;
|
339
|
+
span {
|
340
|
+
padding: 0 2px 0 1px;
|
341
|
+
}
|
342
|
+
}
|
343
|
+
|
344
|
+
// Allow us to put symbols and text within the input field for a cleaner look
|
345
|
+
.input-prepend,
|
346
|
+
.input-append {
|
347
|
+
input {
|
348
|
+
@include border-radius(0 3px 3px 0);
|
349
|
+
}
|
350
|
+
.add-on {
|
351
|
+
position: relative;
|
352
|
+
background: #f5f5f5;
|
353
|
+
border: 1px solid #ccc;
|
354
|
+
z-index: 2;
|
355
|
+
float: left;
|
356
|
+
display: block;
|
357
|
+
width: auto;
|
358
|
+
min-width: 16px;
|
359
|
+
height: 18px;
|
360
|
+
padding: 4px 4px 4px 5px;
|
361
|
+
margin-right: -1px;
|
362
|
+
font-weight: normal;
|
363
|
+
line-height: 18px;
|
364
|
+
color: $grayLight;
|
365
|
+
text-align: center;
|
366
|
+
text-shadow: 0 1px 0 $white;
|
367
|
+
@include border-radius(3px 0 0 3px);
|
368
|
+
}
|
369
|
+
.active {
|
370
|
+
background: lighten($green, 30);
|
371
|
+
border-color: $green;
|
372
|
+
}
|
373
|
+
}
|
374
|
+
.input-prepend {
|
375
|
+
.add-on {
|
376
|
+
*margin-top: 1px; /* IE6-7 */
|
377
|
+
}
|
378
|
+
}
|
379
|
+
.input-append {
|
380
|
+
input {
|
381
|
+
float: left;
|
382
|
+
@include border-radius(3px 0 0 3px);
|
383
|
+
}
|
384
|
+
.add-on {
|
385
|
+
@include border-radius(0 3px 3px 0);
|
386
|
+
margin-right: 0;
|
387
|
+
margin-left: -1px;
|
388
|
+
}
|
389
|
+
}
|
390
|
+
|
391
|
+
// Stacked options for forms (radio buttons or checkboxes)
|
392
|
+
.inputs-list {
|
393
|
+
margin: 0 0 5px;
|
394
|
+
width: 100%;
|
395
|
+
li {
|
396
|
+
display: block;
|
397
|
+
padding: 0;
|
398
|
+
width: 100%;
|
399
|
+
}
|
400
|
+
label {
|
401
|
+
display: block;
|
402
|
+
float: none;
|
403
|
+
width: auto;
|
404
|
+
padding: 0;
|
405
|
+
margin-left: 20px;
|
406
|
+
line-height: $baseline;
|
407
|
+
text-align: left;
|
408
|
+
white-space: normal;
|
409
|
+
strong {
|
410
|
+
color: $gray;
|
411
|
+
}
|
412
|
+
small {
|
413
|
+
font-size: $basefont - 2;
|
414
|
+
font-weight: normal;
|
415
|
+
}
|
416
|
+
}
|
417
|
+
.inputs-list {
|
418
|
+
margin-left: 25px;
|
419
|
+
margin-bottom: 10px;
|
420
|
+
padding-top: 0;
|
421
|
+
}
|
422
|
+
&:first-child {
|
423
|
+
padding-top: 5px;
|
424
|
+
}
|
425
|
+
li + li {
|
426
|
+
padding-top: 2px;
|
427
|
+
}
|
428
|
+
input[type=radio],
|
429
|
+
input[type=checkbox] {
|
430
|
+
margin-bottom: 0;
|
431
|
+
margin-left: -20px;
|
432
|
+
float: left;
|
433
|
+
}
|
434
|
+
}
|
435
|
+
|
436
|
+
// Stacked forms
|
437
|
+
.form-stacked {
|
438
|
+
padding-left: 20px;
|
439
|
+
fieldset {
|
440
|
+
padding-top: $baseline / 2;
|
441
|
+
}
|
442
|
+
legend {
|
443
|
+
margin-left: 0;
|
444
|
+
}
|
445
|
+
label {
|
446
|
+
display: block;
|
447
|
+
float: none;
|
448
|
+
width: auto;
|
449
|
+
font-weight: bold;
|
450
|
+
text-align: left;
|
451
|
+
line-height: 20px;
|
452
|
+
padding-top: 0;
|
453
|
+
}
|
454
|
+
.clearfix {
|
455
|
+
margin-bottom: $baseline / 2;
|
456
|
+
div.input {
|
457
|
+
margin-left: 0;
|
458
|
+
}
|
459
|
+
}
|
460
|
+
.inputs-list {
|
461
|
+
margin-bottom: 0;
|
462
|
+
li {
|
463
|
+
padding-top: 0;
|
464
|
+
label {
|
465
|
+
font-weight: normal;
|
466
|
+
padding-top: 0;
|
467
|
+
}
|
468
|
+
}
|
469
|
+
}
|
470
|
+
div.clearfix.error {
|
471
|
+
padding-top: 10px;
|
472
|
+
padding-bottom: 10px;
|
473
|
+
padding-left: 10px;
|
474
|
+
margin-top: 0;
|
475
|
+
margin-left: -10px;
|
476
|
+
}
|
477
|
+
.actions {
|
478
|
+
margin-left: -20px;
|
479
|
+
padding-left: 20px;
|
480
|
+
}
|
481
|
+
}
|