diff --git a/index.php b/index.php index e41003c01..6ccc93ed3 100644 --- a/index.php +++ b/index.php @@ -219,6 +219,12 @@ if ( empty($page['is_external']) ) ); } + //We sort the array here because we want them sorted by counter and not alphabetically like before. + usort($related_tags, function($a, $b) { + return $b['counter'] <=> $a['counter']; + }); + + include_once(PHPWG_ROOT_PATH.'include/selected_tags.inc.php'); $template->assign( diff --git a/themes/default/css/clear-search.css b/themes/default/css/clear-search.css index dbebd7d45..ddb6ae99d 100644 --- a/themes/default/css/clear-search.css +++ b/themes/default/css/clear-search.css @@ -78,7 +78,7 @@ .filter-form { background: white; - box-shadow: 0px 5px 10px 0px rgba(0,0,0,0.6); + box-shadow: 0px 5px 10px 0px rgba(0,0,0,0.2); color: black; } diff --git a/themes/default/css/dark-search.css b/themes/default/css/dark-search.css index b1a79cf5c..0cf885759 100644 --- a/themes/default/css/dark-search.css +++ b/themes/default/css/dark-search.css @@ -79,7 +79,7 @@ .filter-form { background: #333; - box-shadow: 0px 5px 10px 0px rgba(0,0,0,0.6); + box-shadow: 0px 5px 10px 0px rgba(0,0,0,0.2); color: #bbb; } diff --git a/themes/default/template/include/selected_tags.inc.tpl b/themes/default/template/include/selected_tags.inc.tpl index 1f371f788..d6708b135 100644 --- a/themes/default/template/include/selected_tags.inc.tpl +++ b/themes/default/template/include/selected_tags.inc.tpl @@ -8,7 +8,8 @@ - {if !$TAG@last}+{/if} + +{* {if !$TAG@last}+{/if} *} {/foreach} diff --git a/themes/default/theme.css b/themes/default/theme.css index 245723726..204b0e26f 100644 --- a/themes/default/theme.css +++ b/themes/default/theme.css @@ -908,6 +908,7 @@ because of this it needs to specifically be added to each theme */ font-size: 10px; background: #777; } + .action-buttons{ display:flex; align-items:start; @@ -964,6 +965,7 @@ span.related-tags .tag-counter{ border-radius:15px; padding:2px 10px; padding-right:5px; + margin-right:15px; } #selected-tags-container .selected-related-tag a{ @@ -979,10 +981,8 @@ span.related-tags .tag-counter{ } .related-tag-condition{ - background-color:#FAFAFA; - border-bottom: 1px solid #D0D2D5; border-radius:5px; - margin:0 5px 0 15px; + margin:2px 5px 0 15px; font-weight:900; font-size:20px; padding:0 5px; @@ -993,3 +993,9 @@ span.related-tags .tag-counter{ display:flex; align-items: baseline; } + +@media (max-width: 600px) { + #breadcrumb{ + flex-direction:column; + } +} \ No newline at end of file