mack 0.6.1.2 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +49 -3
- data/README +4 -4
- data/bin/mack +1 -2
- data/lib/mack/controller/controller.rb +1 -1
- data/lib/mack/controller/cookie_jar.rb +4 -0
- data/lib/mack/controller/request.rb +55 -3
- data/lib/mack/controller/session.rb +9 -0
- data/lib/mack/controller/tell.rb +13 -0
- data/lib/mack/core_extensions/kernel.rb +39 -11
- data/lib/mack/core_extensions/symbol.rb +107 -0
- data/lib/mack/generators/controller_generator/controller_generator.rb +64 -0
- data/lib/mack/generators/controller_generator/manifest.yml +18 -0
- data/lib/mack/generators/controller_generator/templates/app/controllers/controller.rb.template +7 -0
- data/lib/mack/generators/controller_generator/templates/test/controllers/rspec.rb.template +15 -0
- data/lib/mack/generators/controller_generator/templates/test/controllers/test_case.rb.template +15 -0
- data/lib/mack/generators/controller_helper_generator/controller_helper_generator.rb +16 -0
- data/lib/mack/generators/controller_helper_generator/manifest.yml +15 -0
- data/lib/mack/generators/controller_helper_generator/templates/app/helpers/controllers/helper.rb.template +7 -0
- data/lib/mack/generators/controller_helper_generator/templates/test/helpers/controllers/rspec.rb.template +6 -0
- data/lib/mack/generators/controller_helper_generator/templates/test/helpers/controllers/test_case.rb.template +10 -0
- data/lib/mack/generators/mack_application_generator/mack_application_generator.rb +1 -0
- data/lib/mack/generators/mack_application_generator/manifest.yml +26 -10
- data/lib/mack/generators/mack_application_generator/templates/Rakefile.template +1 -1
- data/lib/mack/generators/mack_application_generator/templates/app/controllers/default_controller.rb.template +7 -1
- data/lib/mack/generators/mack_application_generator/templates/app/helpers/controllers/default_controller_helper.rb.template +1 -1
- data/lib/mack/generators/mack_application_generator/templates/app/helpers/views/application_helper.rb.template +3 -0
- data/lib/mack/generators/mack_application_generator/templates/app/views/default/index.html.erb.template +60 -2
- data/lib/mack/generators/mack_application_generator/templates/app/views/layouts/application.html.erb.template +10 -2
- data/lib/mack/generators/mack_application_generator/templates/config/app_config/default.yml.template +21 -0
- data/lib/mack/generators/mack_application_generator/templates/config/app_config/development.yml.template +1 -0
- data/lib/mack/generators/mack_application_generator/templates/config/app_config/production.yml.template +1 -0
- data/lib/mack/generators/mack_application_generator/templates/config/app_config/test.yml.template +1 -0
- data/lib/mack/generators/mack_application_generator/templates/config/database.yml.template +24 -0
- data/lib/mack/generators/mack_application_generator/templates/config/initializers/inflections.rb.template +13 -0
- data/lib/mack/generators/mack_application_generator/templates/config/initializers/mime_types.rb.template +1 -0
- data/lib/mack/generators/mack_application_generator/templates/public/stylesheets/scaffold.css.template +125 -29
- data/lib/mack/generators/mack_application_generator/templates/test/{functional → controllers}/default_controller_spec.rb.template +2 -0
- data/lib/mack/generators/mack_application_generator/templates/test/{functional → controllers}/default_controller_test.rb.template +2 -0
- data/lib/mack/generators/mack_application_generator/templates/test/helpers/controllers/default_controller_helper_spec.rb.template +6 -0
- data/lib/mack/generators/mack_application_generator/templates/test/helpers/controllers/default_controller_helper_test.rb.template +10 -0
- data/lib/mack/generators/mack_application_generator/templates/test/helpers/views/application_helper_spec.rb.template +6 -0
- data/lib/mack/generators/mack_application_generator/templates/test/helpers/views/application_helper_test.rb.template +10 -0
- data/lib/mack/generators/view_helper_generator/manifest.yml +15 -0
- data/lib/mack/generators/view_helper_generator/templates/app/helpers/views/helper.rb.template +7 -0
- data/lib/mack/generators/view_helper_generator/templates/test/helpers/views/rspec.rb.template +6 -0
- data/lib/mack/generators/view_helper_generator/templates/test/helpers/views/test_case.rb.template +10 -0
- data/lib/mack/generators/view_helper_generator/view_helper_generator.rb +16 -0
- data/lib/mack/initialization/application.rb +6 -6
- data/lib/mack/initialization/configuration.rb +17 -9
- data/lib/mack/initialization/helpers.rb +3 -3
- data/lib/mack/initialization/logging.rb +30 -20
- data/lib/mack/rendering/view_template.rb +1 -0
- data/lib/mack/routing/route_map.rb +10 -12
- data/lib/mack/routing/urls.rb +0 -40
- data/lib/mack/runner.rb +7 -2
- data/lib/mack/runner_helpers/request_logger.rb +1 -1
- data/lib/mack/runner_helpers/session.rb +13 -6
- data/lib/mack/tasks/mack_dump_tasks.rake +1 -8
- data/lib/mack/tasks/mack_tasks.rake +1 -1
- data/lib/mack/tasks/test_tasks.rake +2 -2
- data/lib/mack/testing/file.rb +28 -0
- data/lib/mack/testing/helpers.rb +59 -4
- data/lib/mack/testing/rspec.rb +19 -7
- data/lib/mack/utils/mime_types.yml +1 -0
- data/lib/mack/utils/server.rb +1 -1
- data/lib/mack/version.rb +3 -0
- data/lib/mack/view_helpers/date_time_helpers.rb +106 -0
- data/lib/mack/view_helpers/form_helpers.rb +282 -0
- data/lib/mack/view_helpers/html_helpers.rb +4 -88
- data/lib/mack/view_helpers/link_helpers.rb +171 -0
- data/lib/mack/view_helpers/object_helpers.rb +14 -0
- data/lib/mack/view_helpers/string_helpers.rb +41 -0
- data/lib/mack_app.rb +1 -0
- data/lib/mack_core.rb +3 -7
- data/lib/mack_tasks.rb +8 -16
- metadata +36 -27
- data/bin/mack_ring_server +0 -33
- data/lib/mack/core_extensions/string.rb +0 -21
- data/lib/mack/distributed/errors/errors.rb +0 -27
- data/lib/mack/distributed/routing/urls.rb +0 -44
- data/lib/mack/distributed/utils/rinda.rb +0 -45
- data/lib/mack/initialization/orm_support.rb +0 -20
- data/lib/mack/tasks/mack_ring_server_tasks.rake +0 -33
- data/lib/mack/utils/crypt/default_worker.rb +0 -28
- data/lib/mack/utils/crypt/keeper.rb +0 -46
@@ -0,0 +1,18 @@
|
|
1
|
+
controller_template:
|
2
|
+
type: file
|
3
|
+
template_path: <%= File.join(templates_directory_path, "app", "controllers", "controller.rb.template") %>
|
4
|
+
output_path: <%= File.join("app", "controllers", "#{@name_plural}_controller.rb") %>
|
5
|
+
views_migrations:
|
6
|
+
type: directory
|
7
|
+
output_path: <%= File.join("app", "views", @name_plural) %>
|
8
|
+
<% if app_config.mack.testing_framework == "test_case" -%>
|
9
|
+
test_template:
|
10
|
+
type: file
|
11
|
+
template_path: <%= File.join(templates_directory_path, "test", "controllers", "test_case.rb.template") %>
|
12
|
+
output_path: <%= File.join("test", "controllers", "#{@name_plural}_controller_test.rb") %>
|
13
|
+
<% elsif app_config.mack.testing_framework == "rspec" -%>
|
14
|
+
test_template:
|
15
|
+
type: file
|
16
|
+
template_path: <%= File.join(templates_directory_path, "test", "controllers", "rspec.rb.template") %>
|
17
|
+
output_path: <%= File.join("test", "controllers", "#{@name_plural}_controller_spec.rb") %>
|
18
|
+
<% end -%>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), "..", "spec_helper.rb")
|
2
|
+
|
3
|
+
describe <%= @name_plural_camel %>Controller do
|
4
|
+
<% @actions.each do |action| %>
|
5
|
+
describe "<%= action %>" do
|
6
|
+
|
7
|
+
it "should get the <%= action %> action" do
|
8
|
+
get <%= @name_plural %>_<%= action %>_url
|
9
|
+
response.should be_successful
|
10
|
+
response.body.should match(/<%= @name_plural_camel %>Controller#<%= action %>/)
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
<% end %>
|
15
|
+
end
|
data/lib/mack/generators/controller_generator/templates/test/controllers/test_case.rb.template
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), "..", "test_helper.rb")
|
2
|
+
|
3
|
+
class <%= @name_plural_camel %>ControllerTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
def test_truth
|
6
|
+
assert true
|
7
|
+
end
|
8
|
+
<% @actions.each do |action| %>
|
9
|
+
def test_<%= action %>
|
10
|
+
get <%= @name_plural %>_<%= action %>_url
|
11
|
+
assert response.successful?
|
12
|
+
assert_match /<%= @name_plural_camel %>Controller#<%= action %>/, response.body
|
13
|
+
end
|
14
|
+
<% end %>
|
15
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Generates controller helpers for Mack applications.
|
2
|
+
#
|
3
|
+
# Example:
|
4
|
+
# rake generate:controller_helper name=post
|
5
|
+
class ControllerHelperGenerator < Genosaurus
|
6
|
+
|
7
|
+
require_param :name
|
8
|
+
|
9
|
+
def setup # :nodoc:
|
10
|
+
@name_singular = param(:name).singular.underscore
|
11
|
+
@name_plural = param(:name).plural.underscore
|
12
|
+
@name_singular_camel = @name_singular.camelcase
|
13
|
+
@name_plural_camel = @name_plural.camelcase
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
helper_template:
|
2
|
+
type: file
|
3
|
+
template_path: <%= File.join(templates_directory_path, "app", "helpers", "controllers", "helper.rb.template") %>
|
4
|
+
output_path: <%= File.join("app", "helpers", "controllers", "#{@name_plural}_controller_helper.rb") %>
|
5
|
+
<% if app_config.mack.testing_framework == "test_case" -%>
|
6
|
+
helper_test_template:
|
7
|
+
type: file
|
8
|
+
template_path: <%= File.join(templates_directory_path, "test", "helpers", "controllers", "test_case.rb.template") %>
|
9
|
+
output_path: <%= File.join("test", "helpers", "controllers", "#{@name_plural}_controller_helper_test.rb") %>
|
10
|
+
<% elsif app_config.mack.testing_framework == "rspec" -%>
|
11
|
+
helper_test_template:
|
12
|
+
type: file
|
13
|
+
template_path: <%= File.join(templates_directory_path, "test", "helpers", "controllers", "rspec.rb.template") %>
|
14
|
+
output_path: <%= File.join("test", "helpers", "controllers", "#{@name_plural}_controller_helper_spec.rb") %>
|
15
|
+
<% end -%>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), '..', '..', 'test_helper')
|
2
|
+
|
3
|
+
class <%= @name_plural_camel %>ControllerHelperTest < Test::Unit::TestCase
|
4
|
+
include Mack::ControllerHelpers::<%= @name_plural_camel %>Controller
|
5
|
+
|
6
|
+
def test_truth
|
7
|
+
assert true
|
8
|
+
end
|
9
|
+
|
10
|
+
end
|
@@ -74,16 +74,24 @@ test_helper:
|
|
74
74
|
type: file
|
75
75
|
template_path: <%= File.join(templates_directory_path, "test", "test_helper.rb.template") %>
|
76
76
|
output_path: <%= File.join(app_name, "test", "test_helper.rb") %>
|
77
|
-
|
77
|
+
test_controllers:
|
78
78
|
type: directory
|
79
|
-
output_path: <%= File.join(app_name, "test", "
|
79
|
+
output_path: <%= File.join(app_name, "test", "controllers") %>
|
80
80
|
test_example:
|
81
81
|
type: file
|
82
|
-
template_path: <%= File.join(templates_directory_path, "test", "
|
83
|
-
output_path: <%= File.join(app_name, "test", "
|
84
|
-
|
82
|
+
template_path: <%= File.join(templates_directory_path, "test", "controllers", "default_controller_test.rb.template") %>
|
83
|
+
output_path: <%= File.join(app_name, "test", "controllers", "default_controller_test.rb") %>
|
84
|
+
test_models:
|
85
85
|
type: directory
|
86
|
-
output_path: <%= File.join(app_name, "test", "
|
86
|
+
output_path: <%= File.join(app_name, "test", "models") %>
|
87
|
+
helper_test_example:
|
88
|
+
type: file
|
89
|
+
template_path: <%= File.join(templates_directory_path, "test", "helpers", "controllers", "default_controller_helper_test.rb.template") %>
|
90
|
+
output_path: <%= File.join(app_name, "test", "helpers", "controllers", "default_controller_helper_test.rb") %>
|
91
|
+
app_helper_test_example:
|
92
|
+
type: file
|
93
|
+
template_path: <%= File.join(templates_directory_path, "test", "helpers", "views", "application_helper_test.rb.template") %>
|
94
|
+
output_path: <%= File.join(app_name, "test", "helpers", "view", "application_helper_test.rb") %>
|
87
95
|
<% elsif testing_framework == "rspec" %>
|
88
96
|
test_spec_helper:
|
89
97
|
type: file
|
@@ -95,11 +103,19 @@ test_spec_opts:
|
|
95
103
|
output_path: <%= File.join(app_name, "test", "spec.opts") %>
|
96
104
|
test_spec_example:
|
97
105
|
type: file
|
98
|
-
template_path: <%= File.join(templates_directory_path, "test", "
|
99
|
-
output_path: <%= File.join(app_name, "test", "
|
100
|
-
|
106
|
+
template_path: <%= File.join(templates_directory_path, "test", "controllers", "default_controller_spec.rb.template") %>
|
107
|
+
output_path: <%= File.join(app_name, "test", "controllers", "default_controller_spec.rb") %>
|
108
|
+
helper_test_spec_example:
|
109
|
+
type: file
|
110
|
+
template_path: <%= File.join(templates_directory_path, "test", "helpers", "controllers", "default_controller_helper_spec.rb.template") %>
|
111
|
+
output_path: <%= File.join(app_name, "test", "helpers", "controllers", "default_controller_helper_spec.rb") %>
|
112
|
+
app_helper_test_spec_example:
|
113
|
+
type: file
|
114
|
+
template_path: <%= File.join(templates_directory_path, "test", "helpers", "views", "application_helper_spec.rb.template") %>
|
115
|
+
output_path: <%= File.join(app_name, "test", "helpers", "views", "application_helper_spec.rb") %>
|
116
|
+
test_spec_models:
|
101
117
|
type: directory
|
102
|
-
output_path: <%= File.join(app_name, "test", "
|
118
|
+
output_path: <%= File.join(app_name, "test", "models") %>
|
103
119
|
<% end %>
|
104
120
|
|
105
121
|
# Plugins
|
@@ -1,7 +1,13 @@
|
|
1
|
+
# This controller has been generated so we can give you a 'pretty' and dynamic welcome page.
|
2
|
+
# You are under no obligation to extend from this controller, as some other frameworks would
|
3
|
+
# you too. :) If you do decide to extend this controller, you'll be happy to know that it
|
4
|
+
# will get loaded first, before your other controllers, so it will be present for their use.
|
1
5
|
class DefaultController
|
2
6
|
include Mack::Controller
|
3
7
|
|
4
|
-
# /
|
8
|
+
# '/'
|
9
|
+
# Note: You do not need to actually have an empty action like this defined for Mack to
|
10
|
+
# find the view on disk. This is only included here for the sake of 'completeness'.
|
5
11
|
def index
|
6
12
|
end
|
7
13
|
|
@@ -1,4 +1,7 @@
|
|
1
1
|
module Mack
|
2
|
+
# Any modules below Mack::ViewHelpers will automatically be included into all views.
|
3
|
+
# If you would like to include all Mack::ViewHelpers modules into another class you
|
4
|
+
# can do so by simply including Mack::ViewHelpers
|
2
5
|
module ViewHelpers
|
3
6
|
module ApplicationHelper
|
4
7
|
# Anything in this module will be included into all views
|
@@ -1,3 +1,61 @@
|
|
1
|
-
<
|
1
|
+
<div>
|
2
|
+
<h1>Welcome to your Mack application!</h1>
|
2
3
|
|
3
|
-
<
|
4
|
+
<h4>If you are seeing this page, it means that your Mack application has been generated properly!</h4>
|
5
|
+
</div>
|
6
|
+
|
7
|
+
<div id="general_info_div">
|
8
|
+
<h4>General Information:</h4>
|
9
|
+
<table>
|
10
|
+
<tr>
|
11
|
+
<td align="right">Generated with Mack Version:</td>
|
12
|
+
<td><%= Mack::VERSION %></td>
|
13
|
+
</tr>
|
14
|
+
<tr>
|
15
|
+
<td align="right">Running with Mack Version:</td>
|
16
|
+
<td><%%= Mack::VERSION %></td>
|
17
|
+
</tr>
|
18
|
+
<tr>
|
19
|
+
<td align="right">Mack Root:</td>
|
20
|
+
<td><%%= Mack.root %></td>
|
21
|
+
</tr>
|
22
|
+
<tr>
|
23
|
+
<td align="right">Current Environment:</td>
|
24
|
+
<td><%%= Mack.env %></td>
|
25
|
+
</tr>
|
26
|
+
</table>
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<%% unless required_gem_list.empty? -%>
|
30
|
+
<div id="gems_div">
|
31
|
+
<h4>Gems:</h4>
|
32
|
+
<%% required_gem_list.each do |g| -%>
|
33
|
+
<p>-- <%%= g %></p>
|
34
|
+
<%% end -%>
|
35
|
+
</div>
|
36
|
+
<%% end -%>
|
37
|
+
|
38
|
+
<div id="request_div">
|
39
|
+
<h4>Request:</h4>
|
40
|
+
<%%= debug request %>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="cookies_div">
|
44
|
+
<h4>Cookies:</h4>
|
45
|
+
<%%= debug cookies %>
|
46
|
+
</div>
|
47
|
+
|
48
|
+
<div id="parameters_div">
|
49
|
+
<h4>Parameters:</h4>
|
50
|
+
<%%= debug params %>
|
51
|
+
</div>
|
52
|
+
|
53
|
+
<div id="session_div">
|
54
|
+
<h4>Session:</h4>
|
55
|
+
<%%= debug session %>
|
56
|
+
</div>
|
57
|
+
|
58
|
+
<div id="config_div">
|
59
|
+
<h4>Configuration:</h4>
|
60
|
+
<%%= debug Mack::Configuration.dump %>
|
61
|
+
</div>
|
@@ -5,11 +5,19 @@
|
|
5
5
|
<head>
|
6
6
|
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
7
7
|
<title><%%= controller.controller_name %>: <%%= controller.action_name %></title>
|
8
|
-
|
8
|
+
<%%= stylesheet 'scaffold.css' %>
|
9
9
|
</head>
|
10
10
|
<body>
|
11
11
|
|
12
|
-
|
12
|
+
<div id="wrapper">
|
13
|
+
|
14
|
+
<%% if tell[:notice] -%>
|
15
|
+
<div id="tell_notice"><%%= tell[:notice] %></div>
|
16
|
+
<%% end -%>
|
17
|
+
|
18
|
+
<div><%%= yield_to :view %></div>
|
19
|
+
|
20
|
+
</div>
|
13
21
|
|
14
22
|
</body>
|
15
23
|
</html>
|
data/lib/mack/generators/mack_application_generator/templates/config/app_config/default.yml.template
CHANGED
@@ -1,3 +1,24 @@
|
|
1
|
+
# This is where you would override any of the default Mack configuration settings,
|
2
|
+
# as well as create your own settings. The configuration settings for your environment
|
3
|
+
# can be dumped out using this rake task:
|
4
|
+
#
|
5
|
+
# rake mack:dump:config#<environment>
|
6
|
+
#
|
7
|
+
# Configuration parameters can be used in your application like such:
|
8
|
+
#
|
9
|
+
# app_config.<setting_name>
|
10
|
+
#
|
11
|
+
# Nested parameters can be defined using ::.
|
12
|
+
#
|
13
|
+
# Examples:
|
14
|
+
# default.yml:
|
15
|
+
# default_time_limit: <%%= 15.minutes %>
|
16
|
+
# api::timeout_limit: <%%= 15.seconds %>
|
17
|
+
#
|
18
|
+
# app_config.default_time_limit # => 900
|
19
|
+
# app_config.api.timeout_limit # => 15
|
20
|
+
|
21
|
+
|
1
22
|
whiny_config_missing: false
|
2
23
|
|
3
24
|
mack::session_id: _<%= @options["app"].downcase %>_session_id
|
@@ -0,0 +1 @@
|
|
1
|
+
# Any settings in here will override the settings in default.yml for the development environment.
|
@@ -0,0 +1 @@
|
|
1
|
+
# Any settings in here will override the settings in default.yml for the production environment.
|
data/lib/mack/generators/mack_application_generator/templates/config/app_config/test.yml.template
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
# Any settings in here will override the settings in default.yml for the test environment.
|
@@ -26,6 +26,30 @@ when "data_mapper"
|
|
26
26
|
# username: root
|
27
27
|
# password:
|
28
28
|
|
29
|
+
# development:
|
30
|
+
# default:
|
31
|
+
# adapter: postgres
|
32
|
+
# database: <%= @options["app"].downcase %>_development
|
33
|
+
# host: localhost
|
34
|
+
# username: root
|
35
|
+
# password:
|
36
|
+
#
|
37
|
+
# test:
|
38
|
+
# default:
|
39
|
+
# adapter: postgres
|
40
|
+
# database: <%= @options["app"].downcase %>_test
|
41
|
+
# host: localhost
|
42
|
+
# username: root
|
43
|
+
# password:
|
44
|
+
#
|
45
|
+
# production:
|
46
|
+
# default:
|
47
|
+
# adapter: postgres
|
48
|
+
# database: <%= @options["app"].downcase %>_production
|
49
|
+
# host: localhost
|
50
|
+
# username: root
|
51
|
+
# password:
|
52
|
+
|
29
53
|
development:
|
30
54
|
default:
|
31
55
|
adapter: sqlite3
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# You can define your own rules for the Inflector here.
|
2
|
+
Mack::Utils::Inflector.inflections do |inflect|
|
3
|
+
|
4
|
+
# Example of defining a plural rule:
|
5
|
+
# inflect.plural('ox', 'oxen')
|
6
|
+
|
7
|
+
# Example of defining a singular rule:
|
8
|
+
# inflect.singular('oxen', 'ox')
|
9
|
+
|
10
|
+
# Example of defining an 'irregular' rule:
|
11
|
+
# inflect.irregular('person', 'people')
|
12
|
+
|
13
|
+
end
|
@@ -1,4 +1,65 @@
|
|
1
|
-
|
1
|
+
/* http://meyerweb.com/eric/tools/css/reset/ v1.0 | 20080212 */
|
2
|
+
|
3
|
+
html, body, div, span, applet, object, iframe,
|
4
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
5
|
+
a, abbr, acronym, address, big, cite, code,
|
6
|
+
del, dfn, em, font, img, ins, kbd, q, s, samp,
|
7
|
+
small, strike, strong, sub, sup, tt, var,
|
8
|
+
b, u, i, center,
|
9
|
+
dl, dt, dd, ol, ul, li,
|
10
|
+
fieldset, form, label, legend,
|
11
|
+
table, caption, tbody, tfoot, thead, tr, th, td {
|
12
|
+
margin: 0;
|
13
|
+
padding: 0;
|
14
|
+
border: 0;
|
15
|
+
outline: 0;
|
16
|
+
font-size: 100%;
|
17
|
+
vertical-align: baseline;
|
18
|
+
background: transparent;
|
19
|
+
}
|
20
|
+
body {
|
21
|
+
line-height: 1;
|
22
|
+
}
|
23
|
+
ol, ul {
|
24
|
+
list-style: none;
|
25
|
+
}
|
26
|
+
blockquote, q {
|
27
|
+
quotes: none;
|
28
|
+
}
|
29
|
+
blockquote:before, blockquote:after,
|
30
|
+
q:before, q:after {
|
31
|
+
content: '';
|
32
|
+
content: none;
|
33
|
+
}
|
34
|
+
|
35
|
+
/* remember to define focus styles! */
|
36
|
+
:focus {
|
37
|
+
outline: 0;
|
38
|
+
}
|
39
|
+
|
40
|
+
/* remember to highlight inserts somehow! */
|
41
|
+
ins {
|
42
|
+
text-decoration: none;
|
43
|
+
}
|
44
|
+
del {
|
45
|
+
text-decoration: line-through;
|
46
|
+
}
|
47
|
+
|
48
|
+
/* tables still need 'cellspacing="0"' in the markup */
|
49
|
+
table {
|
50
|
+
border-collapse: collapse;
|
51
|
+
border-spacing: 0;
|
52
|
+
}
|
53
|
+
|
54
|
+
|
55
|
+
/* @override public/stylesheets/scaffold.css */
|
56
|
+
|
57
|
+
body {
|
58
|
+
background-color: #e6e6e6; color: #333;
|
59
|
+
text-align: center;
|
60
|
+
min-width: 1px;
|
61
|
+
padding: 10px;
|
62
|
+
}
|
2
63
|
|
3
64
|
body, p, ol, ul, td {
|
4
65
|
font-family: verdana, arial, helvetica, sans-serif;
|
@@ -12,9 +73,49 @@ pre {
|
|
12
73
|
font-size: 11px;
|
13
74
|
}
|
14
75
|
|
15
|
-
|
16
|
-
|
17
|
-
|
76
|
+
h1 {
|
77
|
+
font-size: xx-large;
|
78
|
+
}
|
79
|
+
|
80
|
+
h2 {
|
81
|
+
font-size: x-large;
|
82
|
+
}
|
83
|
+
|
84
|
+
h3 {
|
85
|
+
font-size: large;
|
86
|
+
}
|
87
|
+
|
88
|
+
h1, h2, h3 {
|
89
|
+
padding: 5px 0px 10px 0px;
|
90
|
+
}
|
91
|
+
|
92
|
+
td, th {
|
93
|
+
padding: 2px;
|
94
|
+
}
|
95
|
+
|
96
|
+
div {
|
97
|
+
padding: 2px;
|
98
|
+
margin: 2px;
|
99
|
+
border: 1px dotted #999;
|
100
|
+
}
|
101
|
+
|
102
|
+
a {
|
103
|
+
color: #000;
|
104
|
+
}
|
105
|
+
|
106
|
+
a:visited {
|
107
|
+
color: #666;
|
108
|
+
}
|
109
|
+
|
110
|
+
a:hover {
|
111
|
+
color: #fff;
|
112
|
+
background-color:#000;
|
113
|
+
}
|
114
|
+
|
115
|
+
label {
|
116
|
+
font-weight: bold;
|
117
|
+
display: block;
|
118
|
+
}
|
18
119
|
|
19
120
|
.fieldWithErrors {
|
20
121
|
padding: 2px;
|
@@ -22,13 +123,23 @@ a:hover { color: #fff; background-color:#000; }
|
|
22
123
|
display: table;
|
23
124
|
}
|
24
125
|
|
126
|
+
#wrapper {
|
127
|
+
background-color: #fff;
|
128
|
+
border-style: dotted;
|
129
|
+
border-width: 1px;
|
130
|
+
margin: 0 auto;
|
131
|
+
text-align: left;
|
132
|
+
width: 80%;
|
133
|
+
padding: 4px;
|
134
|
+
}
|
135
|
+
|
25
136
|
#errorExplanation {
|
26
137
|
width: 400px;
|
27
|
-
border: 2px solid
|
28
|
-
padding: 7px;
|
138
|
+
border: 2px solid #c00;
|
29
139
|
padding-bottom: 12px;
|
30
140
|
margin-bottom: 20px;
|
31
141
|
background-color: #f0f0f0;
|
142
|
+
padding: 2px;
|
32
143
|
}
|
33
144
|
|
34
145
|
#errorExplanation h2 {
|
@@ -36,39 +147,24 @@ a:hover { color: #fff; background-color:#000; }
|
|
36
147
|
font-weight: bold;
|
37
148
|
padding: 5px 5px 5px 15px;
|
38
149
|
font-size: 12px;
|
39
|
-
margin: -
|
150
|
+
margin: -4px;
|
40
151
|
background-color: #c00;
|
41
152
|
color: #fff;
|
42
153
|
}
|
43
154
|
|
44
|
-
#errorExplanation p {
|
45
|
-
color: #333;
|
46
|
-
margin-bottom: 0;
|
47
|
-
padding: 5px;
|
48
|
-
}
|
49
|
-
|
50
155
|
#errorExplanation ul li {
|
51
156
|
font-size: 12px;
|
52
157
|
list-style: square;
|
53
158
|
}
|
54
159
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
div.progressBar {
|
60
|
-
margin: 5px;
|
61
|
-
}
|
62
|
-
|
63
|
-
div.progressBar div.border {
|
64
|
-
background-color: #fff;
|
65
|
-
border: 1px solid gray;
|
66
|
-
width: 100%;
|
160
|
+
#errorExplanation ol, ul {
|
161
|
+
padding-left: 27px;
|
162
|
+
padding-top: 15px;
|
163
|
+
padding-bottom: 7px;
|
67
164
|
}
|
68
165
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
width: 0%;
|
166
|
+
#tell_notice {
|
167
|
+
color: green;
|
168
|
+
display: inline-block;
|
73
169
|
}
|
74
170
|
|