From d6be7e30c29c50e333d6f78963d550233914295b Mon Sep 17 00:00:00 2001 From: AurelioAHeckert Date: Tue, 22 Jan 2008 20:12:10 +0000 Subject: [PATCH] ActionItem152: icones... parte 2 --- app/helpers/application_helper.rb | 4 ++-- public/designs/icons/default/style.css | 1 + public/images/icons-app/design-editor.png | Bin 0 -> 6115 bytes public/images/icons-app/edit-profile.png | Bin 0 -> 6674 bytes public/stylesheets/forms.css | 7 ++++++- public/stylesheets/login-box.css | 2 +- 6 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 public/images/icons-app/design-editor.png create mode 100644 public/images/icons-app/edit-profile.png diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 1371320..4b0af03 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -261,7 +261,7 @@ module ApplicationHelper end def button(type, label, url, html_options = {}) - the_class = "button with-text #{type}" + the_class = "button with-text icon-#{type}" if html_options.has_key?(:class) the_class << ' ' << html_options[:class] end @@ -273,7 +273,7 @@ module ApplicationHelper html_options[:class] = [html_options[:class], 'submit'].compact.join(' ') - the_class = "button with-text #{type}" + the_class = "button with-text icon-#{type}" if html_options.has_key?(:class) the_class << ' ' << html_options[:class] end diff --git a/public/designs/icons/default/style.css b/public/designs/icons/default/style.css index 4679b76..a1a45ec 100644 --- a/public/designs/icons/default/style.css +++ b/public/designs/icons/default/style.css @@ -19,3 +19,4 @@ .icon-search { background-image: url(gnome-search.png); } .icon-ok { background-image: url(gtk-ok.png); } .icon-login { background-image: url(key-HC.gif); } + diff --git a/public/images/icons-app/design-editor.png b/public/images/icons-app/design-editor.png new file mode 100644 index 0000000..3cec8f4 Binary files /dev/null and b/public/images/icons-app/design-editor.png differ diff --git a/public/images/icons-app/edit-profile.png b/public/images/icons-app/edit-profile.png new file mode 100644 index 0000000..5ad1129 Binary files /dev/null and b/public/images/icons-app/edit-profile.png differ diff --git a/public/stylesheets/forms.css b/public/stylesheets/forms.css index 14139ac..d995e7f 100644 --- a/public/stylesheets/forms.css +++ b/public/stylesheets/forms.css @@ -12,7 +12,7 @@ .formfield input, .formfield textarea { - background: transparent url("../images/input-bg.gif") top left no-repeat; + background: transparent url("../images/input-bg.gif") no-repeat top left; border: 1px solid #999; border-top: none; border-left: none; @@ -20,6 +20,11 @@ } .formfield input { text-indent: 5px; + padding: 2px 0px; +} +.msie .formfield input { + background-attachment: fixed; + padding-left: 2px; } .formfield textarea { padding: 2px 0px 0px 5px; diff --git a/public/stylesheets/login-box.css b/public/stylesheets/login-box.css index 861eaa3..4ec8b4f 100644 --- a/public/stylesheets/login-box.css +++ b/public/stylesheets/login-box.css @@ -13,7 +13,7 @@ #login-box form { margin: 0px; - padding: 0px; + padding: 0px 0px 10px 0px; } #login-box h2 { -- libgit2 0.21.2