diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 92609af..b6caaa6 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -210,7 +210,6 @@ module ApplicationHelper
end
link_to(content_tag('span', label), url, html_options.merge(:class => the_class ))
end
- alias icon_button button_without_text
def button_to_function(type, label, js_code, html_options = {})
html_options[:class] = "" unless html_options[:class]
diff --git a/app/views/search/_display_results.rhtml b/app/views/search/_display_results.rhtml
index 4aa5d6b..b403977 100644
--- a/app/views/search/_display_results.rhtml
+++ b/app/views/search/_display_results.rhtml
@@ -15,9 +15,9 @@
<% if @results.size != 1 %>
<%= @names[name] %>
- <%= icon_button :more, _('more...'), params.merge(:action => 'index', :find_in => [ name ]) %>
<% end %>
+ <%= link_to _('see more...'), params.merge(:action => 'index', :find_in => [ name ]), :class => 'see-more' %>
<% end %>
<% partial = partial_for_class results.first.class %>
diff --git a/public/designs/themes/ecosol/stylesheets/controller_search.css b/public/designs/themes/ecosol/stylesheets/controller_search.css
index a4a3563..3c18083 100644
--- a/public/designs/themes/ecosol/stylesheets/controller_search.css
+++ b/public/designs/themes/ecosol/stylesheets/controller_search.css
@@ -88,6 +88,20 @@ body.category4 .search-results-innerbox {
background: #CFDFF7;
}
+#content .search-results-box a.see-more {
+ -moz-border-radius-bottomleft: 7px;
+ -moz-border-radius-bottomright: 7px;
+}
+
+body.category1 #content .search-results-box a.see-more { background: #FDD79E; border-color: #FDD79E }
+body.category1 #content .search-results-box a.see-more:hover { background: #FDD79E }
+body.category2 #content .search-results-box a.see-more { background: #C4F099; border-color: #C4F099 }
+body.category2 #content .search-results-box a.see-more:hover { background: #8AE234 }
+body.category3 #content .search-results-box a.see-more { background: #D6BFD3; border-color: #D6BFD3 }
+body.category3 #content .search-results-box a.see-more:hover { background: #AD7FA8 }
+body.category4 #content .search-results-box a.see-more { background: #F79494; border-color: #F79494 }
+body.category4 #content .search-results-box a.see-more:hover { background: #EF2929 }
+
.search-results-type-empty div {
color: #729FCF;
}
@@ -97,20 +111,6 @@ body.category4 .search-results-innerbox {
padding: 0px 0px 5px 0px;
}
-/*
-.Xsearch-results-type-profile.common-profile-list-block a {
- width: 90px;
-}
-.Xsearch-results-type-profile.common-profile-list-block li div {
- width: 88px;
- height: 64px;
-}
-.Xsearch-results-type-profile.common-profile-list-block li span {
- display: block;
- width: 82px;
-}
-*/
-
.search-results-type-profile.common-profile-list-block li a {
color: #000;
}
diff --git a/public/designs/themes/zen3/stylesheets/controller_search.css b/public/designs/themes/zen3/stylesheets/controller_search.css
index bfcb342..8179a00 100644
--- a/public/designs/themes/zen3/stylesheets/controller_search.css
+++ b/public/designs/themes/zen3/stylesheets/controller_search.css
@@ -28,21 +28,6 @@
border: 1px solid #E26B00;
}
-/*
-.search-results-box {
- Xwidth: 32.5%;
-}
-
-.search-results-box.odd {
- Xmargin-left: 0px;
-}
-
-.search-results-box.col2_of3,
-.search-results-box.col3_of3 {
- Xmargin-left: 1.25%;
-}
-*/
-
.category-innerbox,
.search-results-innerbox {
padding: 10px 0px 10px 10px;
@@ -52,6 +37,16 @@
-moz-border-radius: 15px;
}
+#content .search-results-box a.see-more {
+ -moz-border-radius-bottomleft: 7px;
+ -moz-border-radius-bottomright: 7px;
+ background: #FD8;
+ border-color: #FD8;
+}
+#content .search-results-box a.see-more:hover {
+ background: #FC6;
+}
+
.search-results-type-product li li a {
color: #000;
}
diff --git a/public/stylesheets/controller_search.css b/public/stylesheets/controller_search.css
index 4f63695..fc344ce 100644
--- a/public/stylesheets/controller_search.css
+++ b/public/stylesheets/controller_search.css
@@ -24,19 +24,15 @@
}
#search-results h3 {
- margin: 20px 0px 0px 20px;
+ margin: 0px 0px 0px 20px;
position: relative;
}
-#search-results h3 .button {
- position: absolute;
- right: 0px;
- bottom: 0px;
-}
-
.search-results-box {
float: left;
width: 49%;
+ padding-bottom: 14px;
+ position: relative;
}
.only-one-result-box .search-results-box {
@@ -50,6 +46,24 @@
float: right;
}
+#content .search-results-box a.see-more {
+ position: absolute;
+ bottom: 0px;
+ right: 25px;
+ font-size: 11px;
+ line-height: 11px;
+ background: #B8CFE7;
+ border: 1px solid #B8CFE7;
+ border-top: none;
+ padding: 0px 5px 2px 5px;
+}
+#content .search-results-box a.see-more:hover {
+ background: #729FCF;
+ color: #FFF;
+ text-decoration: none;
+}
+
+
.search-results-innerbox {
border: 1px solid #2A5896;
padding: 10px 0px 10px 10px;
--
libgit2 0.21.2