From 5e40450efd6e17cd27c07d5a009d95044f01744e Mon Sep 17 00:00:00 2001 From: Samantha Doherty Date: Wed, 16 Mar 2011 13:50:24 -0400 Subject: [PATCH] Quick style update for profile blocks. --- lib/profileblock.php | 2 +- .../ExtendedProfile/ExtendedProfilePlugin.php | 2 +- theme/neo/css/display.css | 27 +++++++++++++++++++ 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/lib/profileblock.php b/lib/profileblock.php index dca0814437..19e5a386ba 100644 --- a/lib/profileblock.php +++ b/lib/profileblock.php @@ -56,7 +56,7 @@ abstract class ProfileBlock extends Widget function show() { - $this->out->elementStart('div', 'profile_block'); + $this->out->elementStart('div', 'profile_block section'); $size = $this->avatarSize(); diff --git a/plugins/ExtendedProfile/ExtendedProfilePlugin.php b/plugins/ExtendedProfile/ExtendedProfilePlugin.php index b69c65df1f..127c91a543 100644 --- a/plugins/ExtendedProfile/ExtendedProfilePlugin.php +++ b/plugins/ExtendedProfile/ExtendedProfilePlugin.php @@ -114,7 +114,7 @@ class ExtendedProfilePlugin extends Plugin $user = User::staticGet('id', $profile->id); if ($user) { $url = common_local_url('profiledetail', array('nickname' => $user->nickname)); - $out->element('a', array('href' => $url), _m('More details...')); + $out->element('a', array('href' => $url, 'class' => 'profiledetail'), _m('More details...')); } return true; } diff --git a/theme/neo/css/display.css b/theme/neo/css/display.css index 7cb5e11911..92da5977ef 100644 --- a/theme/neo/css/display.css +++ b/theme/neo/css/display.css @@ -413,6 +413,33 @@ address { text-transform: uppercase; } +.profile_block_name { + font-size: 14px; + font-weight: bold; +} + +.profile_block_location { + font-weight: bold; +} + +.profile_block_description { + line-height: 1.2em; +} + +.profile_block .entity_actions { + float: left; + margin-left: 0px; +} + +.profile_block .entity_moderation:hover ul, +.profile_block .entity_role:hover ul { + left: 20px; +} + +.profile_block a.profiledetail { + display: block; +} + .section ul.entities { width: 220px; }