aboutsummaryrefslogtreecommitdiffstats
path: root/themes
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2012-12-06 11:31:12 +0000
committerplegall <plg@piwigo.org>2012-12-06 11:31:12 +0000
commitb70a6d7709a9b4a222764b8b14145e5f657b5666 (patch)
tree6673bc59441376e7ca3be3a5d1ac86db566e8fa1 /themes
parentec9072c302c86e668e307235eb593719eaaef24a (diff)
improved template/css: create .tag_search_results and .category_search_results
CSS class to avoid inline CSS and make customization easier (ability to hide these blocks with LocalFiles Editor) git-svn-id: http://piwigo.org/svn/trunk@19302 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'themes')
-rw-r--r--themes/default/template/index.tpl4
-rw-r--r--themes/default/theme.css6
2 files changed, 8 insertions, 2 deletions
diff --git a/themes/default/template/index.tpl b/themes/default/template/index.tpl
index bd46a829e..aa92a215f 100644
--- a/themes/default/template/index.tpl
+++ b/themes/default/template/index.tpl
@@ -135,7 +135,7 @@ jQuery("#derivativeSwitchBox").on("mouseleave", function() {
{if !empty($PLUGIN_INDEX_CONTENT_BEGIN)}{$PLUGIN_INDEX_CONTENT_BEGIN}{/if}
{if !empty($category_search_results)}
-<div style="font-size:16px;margin:10px 16px">{'Album results for'|@translate} <strong>{$QUERY_SEARCH}</strong> :
+<div class="category_search_results">{'Album results for'|@translate} <strong>{$QUERY_SEARCH}</strong> :
<em><strong>
{foreach from=$category_search_results item=res name=res_loop}
{if !$smarty.foreach.res_loop.first} &mdash; {/if}
@@ -146,7 +146,7 @@ jQuery("#derivativeSwitchBox").on("mouseleave", function() {
{/if}
{if !empty($tag_search_results)}
-<div style="font-size:16px;margin:10px 16px">{'Tag results for'|@translate} <strong>{$QUERY_SEARCH}</strong> :
+<div class="tag_search_results">{'Tag results for'|@translate} <strong>{$QUERY_SEARCH}</strong> :
<em><strong>
{foreach from=$tag_search_results item=tag name=res_loop}
{if !$smarty.foreach.res_loop.first} &mdash; {/if} <a href="{$tag.URL}">{$tag.name}</a>
diff --git a/themes/default/theme.css b/themes/default/theme.css
index e05fb1a8c..b3ae0f1b5 100644
--- a/themes/default/theme.css
+++ b/themes/default/theme.css
@@ -115,6 +115,12 @@
padding:0 25px;
}
+/* category and tag results paragraphs on a quick search */
+.content .category_search_results, .content .tag_search_results {
+ font-size: 16px;
+ margin: 10px 16px;
+}
+
/* actions */
.categoryActions {
margin: 0 2px;