From 3f3480750ea5d492b579812d4319174149cd211f Mon Sep 17 00:00:00 2001 From: Melissa Wen Date: Wed, 30 Sep 2015 13:38:13 -0300 Subject: [PATCH] Fix community block image widht and aligment --- src/noosfero-spb-theme/css/community-pages.css | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/src/noosfero-spb-theme/css/community-pages.css b/src/noosfero-spb-theme/css/community-pages.css index c74c22e..ae3cbf3 100644 --- a/src/noosfero-spb-theme/css/community-pages.css +++ b/src/noosfero-spb-theme/css/community-pages.css @@ -481,19 +481,25 @@ float: left; /*Block with Community information - Need to develop solution - Only display on profile page */ -.profile-type-is-community .community-block{ +.profile-type-is-community .block.community-block{ display: none; } -.profile-type-is-community .action-profile_design-index #content .community-block, -.profile-type-is-community .action-profile-index #content .community-block{ +.profile-type-is-community .action-profile_design-index #content .block.community-block, +.profile-type-is-community .action-profile-index #content .block.community-block{ display: block; + margin-left: 10px; border: 1px solid #ECEDF1; border-radius: 4px; } .profile-type-is-community #content .community-block-logo{ border-bottom: 3px solid #3E67B1; + padding: 10px; + height: 100px; + width: 165px; + display: table-cell; + vertical-align: middle; } .profile-type-is-community #content .community-block-title{ @@ -509,24 +515,20 @@ float: left; line-height: 20px; } -.profile-type-is-community #content .community-block-logo{ - padding: 10px; -} - -.profile-type-is-community #content .community-block-logo img.logo{ - height: auto; - width: 100px; - min-width: 100px; - max-width: 170px; -} - .profile-type-is-community #content .community-block-logo a{ display: block; - height: 100px; + height: auto; overflow: hidden; text-align: center; } +.profile-type-is-community #content .community-block-logo img.logo{ + height: auto; + width: auto; + max-width: 160px; + max-height: 100px; +} + /* Wiki block - Need to develop solution - Only display on profile page */ .template-default #content .box-3 .wiki-block, .template-lefttopright #content .box-2 .wiki-block{ -- libgit2 0.21.2