zen 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.gems +34 -0
- data/.travis.yml +7 -0
- data/AUTHORS +5 -0
- data/CHANGELOG +14 -0
- data/{license.txt → LICENSE} +0 -0
- data/MANIFEST +67 -51
- data/README.md +18 -25
- data/Rakefile +2 -3
- data/bin/zen +2 -2
- data/lib/zen.rb +93 -57
- data/lib/zen/asset.rb +7 -8
- data/lib/zen/bin/app.rb +0 -2
- data/lib/zen/controller/admin_controller.rb +4 -9
- data/lib/zen/controller/base_controller.rb +0 -25
- data/lib/zen/controller/main_controller.rb +5 -5
- data/lib/zen/controller/preview.rb +50 -0
- data/lib/zen/helper/common.rb +4 -68
- data/lib/zen/helper/message.rb +82 -0
- data/lib/zen/helper/theme.rb +2 -2
- data/lib/zen/language.rb +68 -38
- data/lib/zen/language/en/zen_general.yml +1 -4
- data/lib/zen/language/nl/zen_general.yml +28 -0
- data/lib/zen/language/nl/zen_models.yml +13 -0
- data/lib/zen/layout/admin.xhtml +1 -1
- data/lib/zen/layout/login.xhtml +1 -1
- data/lib/zen/model/settings.rb +2 -0
- data/lib/zen/package.rb +29 -25
- data/lib/zen/package/all.rb +1 -1
- data/lib/zen/package/categories/lib/categories/controller/categories.rb +51 -63
- data/lib/zen/package/categories/lib/categories/controller/category_groups.rb +45 -52
- data/lib/zen/package/categories/lib/categories/language/en/categories.yml +2 -2
- data/lib/zen/package/categories/lib/categories/language/nl/categories.yml +39 -0
- data/lib/zen/package/categories/lib/categories/language/nl/category_groups.yml +33 -0
- data/lib/zen/package/categories/lib/categories/plugin/categories.rb +2 -2
- data/lib/zen/package/comments/lib/comments.rb +31 -2
- data/lib/zen/package/comments/lib/comments/controller/comments.rb +42 -57
- data/lib/zen/package/comments/lib/comments/controller/comments_form.rb +36 -51
- data/lib/zen/package/comments/lib/comments/language/en/comments.yml +7 -3
- data/lib/zen/package/comments/lib/comments/language/nl/comments.yml +48 -0
- data/lib/zen/package/comments/lib/comments/model/comment.rb +45 -4
- data/lib/zen/package/comments/lib/comments/plugin/anti_spam.rb +152 -0
- data/lib/zen/package/comments/lib/comments/plugin/comments.rb +5 -6
- data/lib/zen/package/comments/lib/comments/view/admin/comments/index.xhtml +2 -2
- data/lib/zen/package/custom_fields/lib/custom_fields/controller/custom_field_groups.rb +43 -52
- data/lib/zen/package/custom_fields/lib/custom_fields/controller/custom_fields.rb +68 -67
- data/lib/zen/package/custom_fields/lib/custom_fields/language/en/custom_fields.yml +1 -1
- data/lib/zen/package/custom_fields/lib/custom_fields/language/nl/custom_field_groups.yml +32 -0
- data/lib/zen/package/custom_fields/lib/custom_fields/language/nl/custom_fields.yml +52 -0
- data/lib/zen/package/custom_fields/lib/custom_fields/model/custom_field.rb +3 -3
- data/lib/zen/package/custom_fields/lib/custom_fields/model/custom_field_group.rb +4 -7
- data/lib/zen/package/custom_fields/lib/custom_fields/model/custom_field_value.rb +3 -3
- data/lib/zen/package/menus/lib/menus/controller/menu_items.rb +37 -44
- data/lib/zen/package/menus/lib/menus/controller/menus.rb +33 -43
- data/lib/zen/package/menus/lib/menus/helper/menu_item.rb +5 -10
- data/lib/zen/package/menus/lib/menus/language/nl/menu_items.yml +41 -0
- data/lib/zen/package/menus/lib/menus/language/nl/menus.yml +39 -0
- data/lib/zen/package/menus/lib/menus/model/menu.rb +3 -3
- data/lib/zen/package/menus/lib/menus/model/menu_item.rb +3 -3
- data/lib/zen/package/menus/lib/menus/plugin/menus.rb +5 -6
- data/lib/zen/package/menus/migrations/1297184342_create_schema.rb +1 -1
- data/lib/zen/package/sections/lib/sections.rb +20 -0
- data/lib/zen/package/sections/lib/sections/controller/section_entries.rb +85 -79
- data/lib/zen/package/sections/lib/sections/controller/sections.rb +58 -66
- data/lib/zen/package/sections/lib/sections/language/en/sections.yml +0 -1
- data/lib/zen/package/sections/lib/sections/language/nl/section_entries.yml +43 -0
- data/lib/zen/package/sections/lib/sections/language/nl/sections.yml +47 -0
- data/lib/zen/package/sections/lib/sections/model/section.rb +11 -15
- data/lib/zen/package/sections/lib/sections/model/section_entry.rb +9 -5
- data/lib/zen/package/sections/lib/sections/plugin/section_entries.rb +7 -8
- data/lib/zen/package/sections/lib/sections/plugin/sections.rb +3 -4
- data/lib/zen/package/sections/lib/sections/view/admin/section-entries/form.xhtml +0 -4
- data/lib/zen/package/sections/lib/sections/view/admin/section-entries/index.xhtml +8 -2
- data/lib/zen/package/sections/migrations/1306772479_remove_unique_slug.rb +28 -0
- data/lib/zen/package/settings/lib/settings.rb +21 -34
- data/lib/zen/package/settings/lib/settings/controller/settings.rb +29 -22
- data/lib/zen/package/settings/lib/settings/language/en/settings.yml +7 -5
- data/lib/zen/package/settings/lib/settings/language/nl/settings.yml +39 -0
- data/lib/zen/package/settings/lib/settings/model/setting.rb +3 -5
- data/lib/zen/package/settings/lib/settings/plugin/group_base.rb +3 -4
- data/lib/zen/package/settings/lib/settings/plugin/setting_base.rb +3 -5
- data/lib/zen/package/settings/lib/settings/plugin/settings.rb +11 -4
- data/lib/zen/package/settings/lib/settings/view/admin/settings/index.xhtml +5 -5
- data/lib/zen/package/settings/migrations/1299538742_add_language_key.rb +8 -8
- data/lib/zen/package/settings/migrations/1303196915_settings_plugin.rb +2 -5
- data/lib/zen/package/users/lib/users/controller/access_rules.rb +54 -61
- data/lib/zen/package/users/lib/users/controller/user_groups.rb +49 -57
- data/lib/zen/package/users/lib/users/controller/users.rb +58 -73
- data/lib/zen/package/users/lib/users/language/en/users.yml +6 -0
- data/lib/zen/package/users/lib/users/language/nl/access_rules.yml +37 -0
- data/lib/zen/package/users/lib/users/language/nl/user_groups.yml +31 -0
- data/lib/zen/package/users/lib/users/language/nl/users.yml +56 -0
- data/lib/zen/package/users/lib/users/model/user.rb +16 -1
- data/lib/zen/package/users/lib/users/view/admin/users/form.xhtml +27 -2
- data/lib/zen/package/users/lib/users/view/admin/users/index.xhtml +15 -3
- data/lib/zen/package/users/migrations/1304939855_user_settings.rb +15 -0
- data/lib/zen/plugin.rb +7 -9
- data/lib/zen/public/admin/css/{buttons.css → zen/buttons.css} +11 -7
- data/lib/zen/public/admin/css/{datepicker.css → zen/datepicker.css} +0 -0
- data/lib/zen/public/admin/css/{editor.css → zen/editor.css} +10 -5
- data/lib/zen/public/admin/css/{forms.css → zen/forms.css} +1 -1
- data/lib/zen/public/admin/css/{general.css → zen/general.css} +7 -7
- data/lib/zen/public/admin/css/{grid.css → zen/grid.css} +0 -0
- data/lib/zen/public/admin/css/{layout.css → zen/layout.css} +4 -5
- data/lib/zen/public/admin/css/zen/messages.css +61 -0
- data/lib/zen/public/admin/css/{notifications.css → zen/notifications.css} +4 -4
- data/lib/zen/public/admin/css/{reset.css → zen/reset.css} +0 -0
- data/lib/zen/public/admin/css/{tables.css → zen/tables.css} +3 -3
- data/lib/zen/public/admin/css/{tabs.css → zen/tabs.css} +5 -5
- data/lib/zen/public/admin/css/zen/window.css +79 -0
- data/lib/zen/public/admin/images/{icons → zen/icons}/accept.png +0 -0
- data/lib/zen/public/admin/images/{icons → zen/icons}/add.png +0 -0
- data/lib/zen/public/admin/images/{icons → zen/icons}/back.png +0 -0
- data/lib/zen/public/admin/images/{icons → zen/icons}/bold.png +0 -0
- data/lib/zen/public/admin/images/zen/icons/close.png +0 -0
- data/lib/zen/public/admin/images/{icons → zen/icons}/delete.png +0 -0
- data/lib/zen/public/admin/images/{icons → zen/icons}/edit.png +0 -0
- data/lib/zen/public/admin/images/{icons → zen/icons}/error.png +0 -0
- data/lib/zen/public/admin/images/{icons → zen/icons}/help.png +0 -0
- data/lib/zen/public/admin/images/{icons → zen/icons}/info.png +0 -0
- data/lib/zen/public/admin/images/{icons → zen/icons}/italic.png +0 -0
- data/lib/zen/public/admin/images/{icons → zen/icons}/large/error.png +0 -0
- data/lib/zen/public/admin/images/{icons → zen/icons}/large/notice.png +0 -0
- data/lib/zen/public/admin/images/{icons → zen/icons}/large/success.png +0 -0
- data/lib/zen/public/admin/images/{icons → zen/icons}/link.png +0 -0
- data/lib/zen/public/admin/images/{icons → zen/icons}/logout.png +0 -0
- data/lib/zen/public/admin/images/{icons → zen/icons}/ol.png +0 -0
- data/lib/zen/public/admin/images/{icons → zen/icons}/pdf.png +0 -0
- data/lib/zen/public/admin/images/zen/icons/preview.png +0 -0
- data/lib/zen/public/admin/images/{icons → zen/icons}/ul.png +0 -0
- data/lib/zen/public/admin/images/{icons → zen/icons}/user.png +0 -0
- data/lib/zen/public/admin/images/{icons → zen/icons}/view.png +0 -0
- data/lib/zen/public/admin/js/zen/core.js +73 -0
- data/lib/zen/public/admin/js/zen/editor.js +527 -0
- data/lib/zen/public/admin/js/zen/editor/markdown.js +84 -0
- data/lib/zen/public/admin/js/zen/editor/textile.js +84 -0
- data/lib/zen/public/admin/js/zen/init.js +12 -66
- data/lib/zen/public/admin/js/zen/tabs.js +5 -0
- data/lib/zen/public/admin/js/zen/window.js +206 -0
- data/lib/zen/task/build.rake +23 -6
- data/lib/zen/task/clean.rake +6 -7
- data/lib/zen/task/db.rake +7 -9
- data/lib/zen/task/package.rake +6 -6
- data/lib/zen/task/test.rake +6 -0
- data/lib/zen/task/theme.rake +3 -3
- data/lib/zen/theme.rb +3 -4
- data/lib/zen/validation.rb +7 -9
- data/lib/zen/version.rb +3 -4
- data/lib/zen/view/bottom.xhtml +0 -5
- data/lib/zen/view/main.xhtml +2 -0
- data/proto/app/app.rb +6 -4
- data/proto/app/config/config.rb +1 -7
- data/proto/app/config/database.rb +47 -43
- data/proto/app/config/middlewares.rb +0 -40
- data/proto/app/start.rb +1 -6
- data/proto/app/{vendor → theme}/.gitkeep +0 -0
- data/proto/migration.rb +3 -3
- data/proto/package/lib/package.rb +0 -1
- data/proto/package/lib/package/controller/controllers.rb +7 -40
- data/proto/package/lib/package/model/model.rb +3 -3
- metadata +106 -79
- data/CHANGELOG.md +0 -27
- data/ROADMAP.md +0 -53
- data/lib/zen/database.rb +0 -112
- data/lib/zen/logger.rb +0 -56
- data/lib/zen/public/admin/css/modals.css +0 -63
- data/lib/zen/public/admin/images/icons/close.png +0 -0
- data/lib/zen/public/admin/js/vendor/yepnope.js +0 -1
- data/lib/zen/public/admin/js/zen/editor/base.js +0 -262
- data/lib/zen/public/admin/js/zen/editor/drivers/html.js +0 -89
- data/lib/zen/public/admin/js/zen/editor/drivers/markdown.js +0 -87
- data/lib/zen/public/admin/js/zen/editor/drivers/textile.js +0 -87
- data/lib/zen/public/admin/js/zen/modal.js +0 -146
- data/lib/zen/public/admin/js/zen/notification.js +0 -211
- data/proto/app/config/requires.rb +0 -10
- data/proto/app/vendor/theme/.gitkeep +0 -0
- data/proto/package/lib/package/view/admin/package/edit.xhtml +0 -0
- data/proto/package/lib/package/view/admin/package/form.xhtml +0 -0
- data/proto/package/lib/package/view/admin/package/new.xhtml +0 -0
@@ -48,9 +48,21 @@
|
|
48
48
|
<?r end ?>
|
49
49
|
|
50
50
|
<td>#{lang("users.special.status_hash.#{user.status}")}</td>
|
51
|
-
<td>#{user.created_at}</td>
|
52
|
-
<td
|
53
|
-
|
51
|
+
<td>#{user.created_at.strftime(session[:user].date_format)}</td>
|
52
|
+
<td>
|
53
|
+
#{
|
54
|
+
if user.updated_at
|
55
|
+
user.updated_at.strftime(session[:user].date_format)
|
56
|
+
end
|
57
|
+
}
|
58
|
+
</td>
|
59
|
+
<td>
|
60
|
+
#{
|
61
|
+
if user.last_login
|
62
|
+
user.last_login.strftime(session[:user].date_format)
|
63
|
+
end
|
64
|
+
}
|
65
|
+
</td>
|
54
66
|
</tr>
|
55
67
|
<?r end ?>
|
56
68
|
</tbody>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
Sequel.migration do
|
2
|
+
|
3
|
+
up do
|
4
|
+
add_column(:users, :language , String, :default => 'en')
|
5
|
+
add_column(:users, :frontend_language, String, :default => 'en')
|
6
|
+
add_column(:users, :date_format , String, :default => '%Y-%m-%d %H:%I:%S')
|
7
|
+
end
|
8
|
+
|
9
|
+
down do
|
10
|
+
drop_column(:users, :language)
|
11
|
+
drop_column(:users, :date_format)
|
12
|
+
drop_column(:users, :frontend_language)
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
data/lib/zen/plugin.rb
CHANGED
@@ -6,8 +6,8 @@ module Zen
|
|
6
6
|
##
|
7
7
|
# Plugins in Zen are quite similar to packages except for a few differences. The biggest
|
8
8
|
# difference is that plugins won't update any Ramaze root directories or language
|
9
|
-
# directories. This means that they can't have controllers, models and so on.
|
10
|
-
# Plugins are useful for supporting multiple markup formats (Markdown, Textile, etc)
|
9
|
+
# directories. This means that they can't have controllers, models and so on.
|
10
|
+
# Plugins are useful for supporting multiple markup formats (Markdown, Textile, etc)
|
11
11
|
# and other small tasks such as replacing Email addresses and so on.
|
12
12
|
#
|
13
13
|
# ## Creating Plugins
|
@@ -57,7 +57,7 @@ module Zen
|
|
57
57
|
# ## Registering Plugins
|
58
58
|
#
|
59
59
|
# Now that the plugin is created it's time to tell Zen it actually is a plugin and not
|
60
|
-
# some random class that doesn't belong somewhere. This can be done by calling
|
60
|
+
# some random class that doesn't belong somewhere. This can be done by calling
|
61
61
|
# Zen::Plugin.add and specifying a block with the details of the plugin. Example:
|
62
62
|
#
|
63
63
|
# Zen::Plugin.add do |plugin|
|
@@ -67,7 +67,7 @@ module Zen
|
|
67
67
|
# plugin.plugin = MyPlugin
|
68
68
|
# end
|
69
69
|
#
|
70
|
-
# The name and plugin setter are the most important. Names should always match the
|
70
|
+
# The name and plugin setter are the most important. Names should always match the
|
71
71
|
# regular expression /[a-z0-9_\-]+/. This is done to ensure names are consistent and
|
72
72
|
# easy to remember. It's also used for calling plugins and making sure there are no
|
73
73
|
# duplicates.
|
@@ -89,7 +89,6 @@ module Zen
|
|
89
89
|
# @since 0.2.4
|
90
90
|
#
|
91
91
|
module Plugin
|
92
|
-
|
93
92
|
##
|
94
93
|
# Hash containing all registered plugins. The keys are the names of the plugins and
|
95
94
|
# the values are instances of Zen::Plugin::Base.
|
@@ -104,7 +103,7 @@ module Zen
|
|
104
103
|
#
|
105
104
|
# @author Yorick Peterse
|
106
105
|
# @since 0.2.4
|
107
|
-
# @raise [Zen::PluginError] Error raised whenever the plugin already exists or is
|
106
|
+
# @raise [Zen::PluginError] Error raised whenever the plugin already exists or is
|
108
107
|
# missing a certain setter.
|
109
108
|
#
|
110
109
|
def self.add
|
@@ -173,6 +172,5 @@ module Zen
|
|
173
172
|
return ::Zen::Plugin[name].plugin.new(*data, &block).call
|
174
173
|
end
|
175
174
|
end
|
176
|
-
|
177
|
-
|
178
|
-
end
|
175
|
+
end # Plugin
|
176
|
+
end # Zen
|
@@ -9,9 +9,10 @@
|
|
9
9
|
.button
|
10
10
|
{
|
11
11
|
border: 1px solid #bbb;
|
12
|
-
|
12
|
+
display: inline-block;
|
13
13
|
margin-right: 10px;
|
14
14
|
}
|
15
|
+
|
15
16
|
.button a, .button input[type="submit"], .button button
|
16
17
|
{
|
17
18
|
background: #ddd;
|
@@ -23,24 +24,27 @@
|
|
23
24
|
cursor: pointer;
|
24
25
|
display: block;
|
25
26
|
font-size: 13px;
|
26
|
-
font-family: 'Helvetica Neue', Helvetica, Arial,
|
27
|
+
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
27
28
|
margin: 0px;
|
28
29
|
min-width: 80px;
|
29
|
-
padding:
|
30
|
+
padding: 3px;
|
30
31
|
text-decoration: none;
|
31
32
|
text-shadow: 1px 1px #fff;
|
32
33
|
text-align: center;
|
33
34
|
}
|
35
|
+
|
34
36
|
.button a
|
35
37
|
{
|
36
|
-
padding:
|
38
|
+
padding: 5px;
|
37
39
|
}
|
40
|
+
|
38
41
|
.button input[type="submit"]
|
39
42
|
{
|
40
|
-
padding:
|
43
|
+
padding: 5px 4px 6px 4px;
|
41
44
|
}
|
45
|
+
|
42
46
|
.button a:active, .button input[type="submit"]:active, .button button:active
|
43
47
|
{
|
44
|
-
background:
|
45
|
-
background:
|
48
|
+
background: #eee -webkit-gradient(linear, left bottom, left top, from(#eee), to(#ddd));
|
49
|
+
background: #eee -moz-linear-gradient(bottom, top, #eee, #ddd);
|
46
50
|
}
|
File without changes
|
@@ -55,27 +55,32 @@
|
|
55
55
|
/* Individual toolbar buttons */
|
56
56
|
.editor_container .editor_toolbar ul li.bold
|
57
57
|
{
|
58
|
-
background: url("
|
58
|
+
background: url("../../images/zen/icons/bold.png") no-repeat 6px 5px;
|
59
59
|
}
|
60
60
|
|
61
61
|
.editor_container .editor_toolbar ul li.italic
|
62
62
|
{
|
63
|
-
background: url("
|
63
|
+
background: url("../../images/zen/icons/italic.png") no-repeat 6px 5px;
|
64
64
|
}
|
65
65
|
|
66
66
|
.editor_container .editor_toolbar ul li.link
|
67
67
|
{
|
68
|
-
background: url("
|
68
|
+
background: url("../../images/zen/icons/link.png") no-repeat 7px 5px;
|
69
69
|
}
|
70
70
|
|
71
71
|
.editor_container .editor_toolbar ul li.ul
|
72
72
|
{
|
73
|
-
background: url("
|
73
|
+
background: url("../../images/zen/icons/ul.png") no-repeat 6px 5px;
|
74
74
|
}
|
75
75
|
|
76
76
|
.editor_container .editor_toolbar ul li.ol
|
77
77
|
{
|
78
|
-
background: url("
|
78
|
+
background: url("../../images/zen/icons/ol.png") no-repeat 6px 5px;
|
79
|
+
}
|
80
|
+
|
81
|
+
.editor_container .editor_toolbar ul li.preview
|
82
|
+
{
|
83
|
+
background: url('../../images/zen/icons/preview.png') no-repeat 7px 6px;
|
79
84
|
}
|
80
85
|
|
81
86
|
.editor_container .editor_toolbar ul li:hover
|
@@ -91,10 +91,10 @@ a:hover
|
|
91
91
|
padding: 5px 3px 5px 25px;
|
92
92
|
}
|
93
93
|
|
94
|
-
.icon_edit { background: url("../images/icons/edit.png") no-repeat center left; }
|
95
|
-
.icon_delete { background: url("../images/icons/delete.png") no-repeat center left; }
|
96
|
-
.icon_add { background: url("../images/icons/add.png") no-repeat center left; }
|
97
|
-
.icon_success{ background: url("../images/icons/success.png") no-repeat center left; }
|
98
|
-
.icon_error { background: url("../images/icons/error.png") no-repeat center left; }
|
99
|
-
.icon_info { background: url("../images/icons/info.png") no-repeat center left; }
|
100
|
-
.icon_view { background: url("../images/icons/view.png") no-repeat center left; }
|
94
|
+
.icon_edit { background: url("../images/zen/icons/edit.png") no-repeat center left; }
|
95
|
+
.icon_delete { background: url("../images/zen/icons/delete.png") no-repeat center left; }
|
96
|
+
.icon_add { background: url("../images/zen/icons/add.png") no-repeat center left; }
|
97
|
+
.icon_success{ background: url("../images/zen/icons/success.png") no-repeat center left; }
|
98
|
+
.icon_error { background: url("../images/zen/icons/error.png") no-repeat center left; }
|
99
|
+
.icon_info { background: url("../images/zen/icons/info.png") no-repeat center left; }
|
100
|
+
.icon_view { background: url("../images/zen/icons/view.png") no-repeat center left; }
|
File without changes
|
@@ -6,6 +6,10 @@
|
|
6
6
|
* @author Yorick Peterse
|
7
7
|
* @since 0.1a
|
8
8
|
*/
|
9
|
+
#login
|
10
|
+
{
|
11
|
+
margin-top: 50px;
|
12
|
+
}
|
9
13
|
|
10
14
|
/**
|
11
15
|
* Top part of the admin panel that contains the user bar along with the main navigation menu.
|
@@ -103,11 +107,6 @@
|
|
103
107
|
margin: 20px auto;
|
104
108
|
width: 500px;
|
105
109
|
}
|
106
|
-
|
107
|
-
#login #container
|
108
|
-
{
|
109
|
-
margin-top: 50px;
|
110
|
-
}
|
111
110
|
|
112
111
|
/**
|
113
112
|
* Bottom part of the admin panel containing the footer
|
@@ -0,0 +1,61 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
/**
|
4
|
+
* Stylesheet used for the messages (such as errors) in the backend.
|
5
|
+
*
|
6
|
+
* @author Yorick Peterse
|
7
|
+
* @since 0.2.6
|
8
|
+
*/
|
9
|
+
#message_container
|
10
|
+
{
|
11
|
+
margin-top: 20px;
|
12
|
+
}
|
13
|
+
|
14
|
+
#login #message_container
|
15
|
+
{
|
16
|
+
margin: 20px auto;
|
17
|
+
width: 510px;
|
18
|
+
}
|
19
|
+
|
20
|
+
#message_container .message
|
21
|
+
{
|
22
|
+
text-align: center;
|
23
|
+
}
|
24
|
+
|
25
|
+
#message_container .message p
|
26
|
+
{
|
27
|
+
margin-bottom: 10px;
|
28
|
+
}
|
29
|
+
|
30
|
+
#message_container .message p:last-child
|
31
|
+
{
|
32
|
+
margin-bottom: 0px;
|
33
|
+
}
|
34
|
+
|
35
|
+
.message
|
36
|
+
{
|
37
|
+
padding: 5px 10px;
|
38
|
+
}
|
39
|
+
|
40
|
+
.message.error
|
41
|
+
{
|
42
|
+
background: #BD132A;
|
43
|
+
border: 1px solid #910F20;
|
44
|
+
color: #fff;
|
45
|
+
text-shadow: 1px 1px #910F20;
|
46
|
+
}
|
47
|
+
|
48
|
+
.message.success
|
49
|
+
{
|
50
|
+
background: #ABCC6A;
|
51
|
+
border: 1px solid #758C46;
|
52
|
+
color: #fff;
|
53
|
+
text-shadow: 1px 1px #758C46;
|
54
|
+
}
|
55
|
+
|
56
|
+
.message.info
|
57
|
+
{
|
58
|
+
background: #F7D76D;
|
59
|
+
border: 1px solid #F7BB6D;
|
60
|
+
color: #000;
|
61
|
+
}
|
@@ -8,19 +8,19 @@
|
|
8
8
|
*/
|
9
9
|
#success
|
10
10
|
{
|
11
|
-
background: #B3D760 url("
|
11
|
+
background: #B3D760 url("../../images/zen/icons/success.png") no-repeat 5px center;
|
12
12
|
border: 1px solid #599929;
|
13
13
|
}
|
14
14
|
|
15
15
|
#error
|
16
16
|
{
|
17
|
-
background: #F57E62 url("
|
17
|
+
background: #F57E62 url("../../images/zen/icons/error.png") no-repeat 5px center;
|
18
18
|
border: 1px solid #FF3100;
|
19
19
|
}
|
20
20
|
|
21
21
|
#notice
|
22
22
|
{
|
23
|
-
background: #FFF58C url("
|
23
|
+
background: #FFF58C url("../../images/zen/icons/info.png") no-repeat 5px center;
|
24
24
|
border: 1px solid #FFDA05;
|
25
25
|
}
|
26
26
|
|
@@ -55,7 +55,7 @@
|
|
55
55
|
|
56
56
|
.notification .close
|
57
57
|
{
|
58
|
-
background: url("
|
58
|
+
background: url("../../images/zen/icons/close.png") no-repeat center left;
|
59
59
|
display: none;
|
60
60
|
height: 33px;
|
61
61
|
left: 0px;
|
File without changes
|
@@ -36,17 +36,17 @@ table
|
|
36
36
|
|
37
37
|
table thead tr th, table tbody tr td
|
38
38
|
{
|
39
|
-
padding:
|
39
|
+
padding: 4px 10px 2px 10px;
|
40
40
|
}
|
41
41
|
|
42
42
|
.table thead tr th:first-child, .table tbody tr td:first-child
|
43
43
|
{
|
44
|
-
width:
|
44
|
+
width: 15px;
|
45
45
|
}
|
46
46
|
|
47
47
|
.table thead tr th:first-child input[type="checkbox"], .table tbody tr td:first-child input[type="checkbox"]
|
48
48
|
{
|
49
|
-
margin-top:
|
49
|
+
margin-top: 3px;
|
50
50
|
}
|
51
51
|
|
52
52
|
table tr.odd
|
@@ -9,7 +9,7 @@
|
|
9
9
|
.tabs
|
10
10
|
{
|
11
11
|
border: 1px solid #aaa;
|
12
|
-
height:
|
12
|
+
height: 30px;
|
13
13
|
margin-bottom: 20px;
|
14
14
|
}
|
15
15
|
.tabs ul
|
@@ -17,7 +17,7 @@
|
|
17
17
|
background: #ddd -webkit-gradient(linear, left bottom, left top, from(#ddd), to(#eee));
|
18
18
|
background: #ddd -moz-linear-gradient(bottom, top, #ddd, #eee);
|
19
19
|
border-top: 1px solid #fff;
|
20
|
-
height:
|
20
|
+
height: 29px;
|
21
21
|
list-style-type: none;
|
22
22
|
margin: 0px;
|
23
23
|
}
|
@@ -40,14 +40,14 @@
|
|
40
40
|
background: #eee -webkit-gradient(linear, left bottom, left top, from(#eee), to(#ddd));
|
41
41
|
background: #eee -moz-linear-gradient(bottom, top, #eee, #ddd);
|
42
42
|
border-bottom: 1px solid #aaa;
|
43
|
-
height:
|
43
|
+
height: 19px;
|
44
44
|
}
|
45
45
|
.tabs ul li a
|
46
46
|
{
|
47
47
|
color: #000;
|
48
48
|
display: block;
|
49
|
-
height:
|
50
|
-
padding:
|
49
|
+
height: 20px;
|
50
|
+
padding: 6px 15px 4px 15px;
|
51
51
|
text-decoration: none;
|
52
52
|
text-shadow: 0px 1px #fff;
|
53
53
|
}
|
@@ -0,0 +1,79 @@
|
|
1
|
+
/**
|
2
|
+
* Stylesheet used for the Javascript class Zen.Window.
|
3
|
+
*
|
4
|
+
* @author Yorick Peterse
|
5
|
+
* @since 0.2.6
|
6
|
+
*/
|
7
|
+
.window
|
8
|
+
{
|
9
|
+
background: #fff;
|
10
|
+
border: 1px solid #aaa;
|
11
|
+
left: 50%;
|
12
|
+
min-width: 350px;
|
13
|
+
min-height: 100px;
|
14
|
+
position: absolute;
|
15
|
+
padding-bottom: 10px;
|
16
|
+
top: 80px;
|
17
|
+
}
|
18
|
+
|
19
|
+
.window.move
|
20
|
+
{
|
21
|
+
cursor: move;
|
22
|
+
}
|
23
|
+
|
24
|
+
.window.resize
|
25
|
+
{
|
26
|
+
cursor: nwse-resize;
|
27
|
+
}
|
28
|
+
|
29
|
+
.window, .window header
|
30
|
+
{
|
31
|
+
border-radius: 5px 5px 0px 0px;
|
32
|
+
-webkit-border-radius: 5px 5px 0px 0px;
|
33
|
+
-moz-border-radius: 5px 5px 0px 0px;
|
34
|
+
}
|
35
|
+
|
36
|
+
.window header
|
37
|
+
{
|
38
|
+
background: #ddd -webkit-gradient(linear, left bottom, left top, from(#ddd), to(#eee));
|
39
|
+
background: #ddd -moz-linear-gradient(bottom, top, #ddd, #eee);
|
40
|
+
border-top: 1px solid #fff;
|
41
|
+
border-bottom: 1px solid #aaa;
|
42
|
+
padding: 3px;
|
43
|
+
}
|
44
|
+
|
45
|
+
.window header h1
|
46
|
+
{
|
47
|
+
font-size: 13px;
|
48
|
+
font-weight: normal;
|
49
|
+
float: right;
|
50
|
+
margin: 0px;
|
51
|
+
padding: 0px;
|
52
|
+
text-shadow: 0px 1px #fff;
|
53
|
+
text-align: center;
|
54
|
+
width: 96%;
|
55
|
+
}
|
56
|
+
|
57
|
+
.window header .close
|
58
|
+
{
|
59
|
+
background: url('../../images/zen/icons/close.png') no-repeat center left;
|
60
|
+
cursor: pointer;
|
61
|
+
float: left;
|
62
|
+
height: 16px;
|
63
|
+
width: 16px;
|
64
|
+
}
|
65
|
+
|
66
|
+
.window .body, .window .buttons
|
67
|
+
{
|
68
|
+
padding: 10px;
|
69
|
+
}
|
70
|
+
|
71
|
+
.window .buttons
|
72
|
+
{
|
73
|
+
float: right;
|
74
|
+
}
|
75
|
+
|
76
|
+
.window .buttons .button:last-child
|
77
|
+
{
|
78
|
+
margin-right: 0px;
|
79
|
+
}
|